|
@@ -31,7 +31,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="5">
|
|
<a-col :span="5">
|
|
<a-form-model-item prop="districtCode" label=" " :colon="false" :label-col="{ span:0 }" :wrapper-col="{ span:20}">
|
|
<a-form-model-item prop="districtCode" label=" " :colon="false" :label-col="{ span:0 }" :wrapper-col="{ span:20}">
|
|
- <a-select allowClear id="rubbishTotal-districtCode" v-model="queryParam.districtCode" placeholder="请选择区/县">
|
|
|
|
|
|
+ <a-select allowClear id="rubbishTotal-districtCode" v-model="queryParam.districtCode" @change="getDistrictCode" placeholder="请选择区/县">
|
|
<a-select-option v-for="item in addrDistrictList" :value="item.id" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
<a-select-option v-for="item in addrDistrictList" :value="item.id" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -47,6 +47,7 @@
|
|
v-model="queryParam.stationNo"
|
|
v-model="queryParam.stationNo"
|
|
:showSearch="true"
|
|
:showSearch="true"
|
|
option-filter-prop="children"
|
|
option-filter-prop="children"
|
|
|
|
+ @change="stationNoChange"
|
|
:filter-option="filterOption">
|
|
:filter-option="filterOption">
|
|
<a-select-option v-for="item in optionData" :key="item.stationNo" :value="item.stationNo">{{ item.name }}</a-select-option>
|
|
<a-select-option v-for="item in optionData" :key="item.stationNo" :value="item.stationNo">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
@@ -123,10 +124,14 @@ export default {
|
|
queryParam: {
|
|
queryParam: {
|
|
beginDate: null, // 开始时间
|
|
beginDate: null, // 开始时间
|
|
endDate: null, // 结束时间
|
|
endDate: null, // 结束时间
|
|
- stationNo: undefined, // 网点名称
|
|
|
|
|
|
+ stationNo: undefined, // 网点no
|
|
|
|
+ name: '', // 网点名称
|
|
provinceCode: undefined, // 省
|
|
provinceCode: undefined, // 省
|
|
|
|
+ provinceName: '',
|
|
cityCode: undefined, // 市
|
|
cityCode: undefined, // 市
|
|
- districtCode: undefined // 区
|
|
|
|
|
|
+ cityName: '', // 市名称
|
|
|
|
+ districtCode: undefined, // 区
|
|
|
|
+ districtName: '' // 区名称
|
|
},
|
|
},
|
|
addrProvinceList: [], // 省下拉
|
|
addrProvinceList: [], // 省下拉
|
|
addrCityList: [], // 市下拉
|
|
addrCityList: [], // 市下拉
|
|
@@ -297,6 +302,7 @@ export default {
|
|
getCityList (val) {
|
|
getCityList (val) {
|
|
this.addrCityList = []
|
|
this.addrCityList = []
|
|
this.addrDistrictList = []
|
|
this.addrDistrictList = []
|
|
|
|
+ this.queryParam.provinceName = val ? this.addrProvinceList.find(item => item.code == this.queryParam.provinceCode).name : ''
|
|
this.queryParam.cityCode = undefined
|
|
this.queryParam.cityCode = undefined
|
|
this.queryParam.districtCode = undefined
|
|
this.queryParam.districtCode = undefined
|
|
this.getCityListRequest(val)
|
|
this.getCityListRequest(val)
|
|
@@ -315,6 +321,7 @@ export default {
|
|
// 获取区县列表
|
|
// 获取区县列表
|
|
getAreaList (val) {
|
|
getAreaList (val) {
|
|
this.addrDistrictList = []
|
|
this.addrDistrictList = []
|
|
|
|
+ this.queryParam.cityName = val ? this.addrCityList.find(item => item.code == this.queryParam.cityCode).name : ''
|
|
this.queryParam.districtCode = undefined
|
|
this.queryParam.districtCode = undefined
|
|
this.getAreaListRequest(val)
|
|
this.getAreaListRequest(val)
|
|
},
|
|
},
|
|
@@ -329,6 +336,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 选择区
|
|
|
|
+ getDistrictCode (val) {
|
|
|
|
+ this.queryParam.districtName = val ? this.addrDistrictList.find(item => item.code == this.queryParam.districtCode).name : ''
|
|
|
|
+ },
|
|
|
|
+ // 选择网点
|
|
|
|
+ stationNoChange (val) {
|
|
|
|
+ this.queryParam.name = val ? this.optionData.find(item => item.stationNo == val).name : ''
|
|
|
|
+ },
|
|
// 导出
|
|
// 导出
|
|
handleExport () {
|
|
handleExport () {
|
|
const params = this.queryParam
|
|
const params = this.queryParam
|