| | |
| | | <!-- 查询区域 --> |
| | | <a-form layout="inline" class="j-inline-form"> |
| | | <!-- 固定条件 --> |
| | | <a-form-item :label="(queryParamText||name)"> |
| | | <!-- <a-form-item :label="(queryParamText||name)"> |
| | | <a-input v-model="queryParam[queryParamCode||valueKey]" :placeholder="'请输入' + (queryParamText||name)" @pressEnter="searchQuery"/> |
| | | </a-form-item> |
| | | </a-form-item> --> |
| | | <!-- 动态生成的查询条件 --> |
| | | <j-select-biz-query-item v-if="queryConfig.length>0" v-show="showMoreQueryItems" :queryParam="queryParam" :queryConfig="queryConfig" @pressEnter="searchQuery"/> |
| | | <j-select-biz-query-item v-if="queryConfig.length>0" :queryParam="queryParam" :queryConfig="queryConfig" @pressEnter="searchQuery"/> |
| | | <!-- 按钮 --> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | <a v-if="queryConfig.length>0" @click="showMoreQueryItems=!showMoreQueryItems" style="margin-left: 8px"> |
| | | <!-- <a v-if="queryConfig.length>0" @click="showMoreQueryItems=!showMoreQueryItems" style="margin-left: 8px"> |
| | | {{ showMoreQueryItems ? '收起' : '展开' }} |
| | | <a-icon :type="showMoreQueryItems ? 'up' : 'down'"/> |
| | | </a> |
| | | </a> --> |
| | | </a-form> |
| | | |
| | | <a-table |
| | |
| | | } |
| | | }, |
| | | |
| | | searchQuery() { |
| | | this.loadData(1); |
| | | this.selectedRowKeys = [] |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.loadData(1); |
| | | this.selectedRowKeys = [] |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |