| | |
| | | <a-col :md="5" :sm="5"> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <!-- <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>--> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.groupList = res.result |
| | | that.handleGroupSelectChange(res.result && res.result.length > 0 && isInitLoad ? [res.result[0].value] : []) |
| | | if (!isInitLoad) return |
| | | that.handleGroupSelectChange([res.result[0].value]) |
| | | that.loadData() |
| | | } |
| | | }) |
| | |
| | | * @param value 改变后的中心Id |
| | | */ |
| | | handleCenterSelectChange(value) { |
| | | if (this.productionIds.length > 0) { |
| | | this.groupList = [] |
| | | this.productionIds = [] |
| | | delete this.queryParam.productionIds |
| | | } |
| | | this.getGroupListByApi(value) |
| | | }, |
| | | |
| | |
| | | */ |
| | | handleGroupSelectChange(value) { |
| | | this.productionIds = value |
| | | if (value.length === 0) { |
| | | delete this.queryParam.productionIds |
| | | return |
| | | } |
| | | this.queryParam.productionIds = value.join(',') |
| | | }, |
| | | |