From 6073b8a4cb6897906a8c2f43eb0efc007258a3a0 Mon Sep 17 00:00:00 2001 From: luyan Date: Thu, 6 Apr 2023 17:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 721c3bf75..5769a0ebc 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -342,9 +342,9 @@ export default { form: { ...form, AGENCY_ID: '', - AGENCY_IDS: '', + AGENCY_IDS: [], GRID_ID: '', - GRID_IDS:'', + GRID_IDS:[], VILLAGE_ID: '', BUILD_ID: '', UNIT_ID: '', @@ -520,23 +520,15 @@ export default { }, handleChangeAgency(val) { let obj = this.$refs["myCascader"].getCheckedNodes()[0].data + console.log('val====',val); + console.log('obj====',obj); if (obj) { //市北定制化需求,组织与网格多选 - if(obj.level === 'grid'){ - // this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; - 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 = '' - } - + this.form.GRID_IDS.push(obj.agencyId); + this.form.AGENCY_IDS.push( obj.pid); }else{ - // this.form.AGENCY_ID='' - // this.form.GRID_ID = '' - this.form.AGENCY_IDS='' - this.form.GRID_IDS = '' + this.form.AGENCY_IDS=[] + this.form.GRID_IDS = [] } this.form.VILLAGE_ID = ''