|
|
@ -342,9 +342,9 @@ export default { |
|
|
form: { |
|
|
form: { |
|
|
...form, |
|
|
...form, |
|
|
AGENCY_ID: '', |
|
|
AGENCY_ID: '', |
|
|
AGENCY_IDS: '', |
|
|
AGENCY_IDS: [], |
|
|
GRID_ID: '', |
|
|
GRID_ID: '', |
|
|
GRID_IDS:'', |
|
|
GRID_IDS:[], |
|
|
VILLAGE_ID: '', |
|
|
VILLAGE_ID: '', |
|
|
BUILD_ID: '', |
|
|
BUILD_ID: '', |
|
|
UNIT_ID: '', |
|
|
UNIT_ID: '', |
|
|
@ -520,23 +520,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleChangeAgency(val) { |
|
|
handleChangeAgency(val) { |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
|
|
console.log('val====',val); |
|
|
|
|
|
console.log('obj====',obj); |
|
|
if (obj) { |
|
|
if (obj) { |
|
|
//市北定制化需求,组织与网格多选 |
|
|
//市北定制化需求,组织与网格多选 |
|
|
if(obj.level === 'grid'){ |
|
|
this.form.GRID_IDS.push(obj.agencyId); |
|
|
// this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; |
|
|
this.form.AGENCY_IDS.push( obj.pid); |
|
|
this.form.GRID_IDS = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; |
|
|
|
|
|
this.form.AGENCY_ID='' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.form.AGENCY_IDS = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; |
|
|
|
|
|
// this.form.AGENCY_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; |
|
|
|
|
|
this.form.GRID_ID = '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
// this.form.AGENCY_ID='' |
|
|
this.form.AGENCY_IDS=[] |
|
|
// this.form.GRID_ID = '' |
|
|
this.form.GRID_IDS = [] |
|
|
this.form.AGENCY_IDS='' |
|
|
|
|
|
this.form.GRID_IDS = '' |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.form.VILLAGE_ID = '' |
|
|
this.form.VILLAGE_ID = '' |
|
|
|