From 59c8d135490655f90c3861b5f526f8abc4a420d0 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 2 Dec 2024 14:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=A0=91=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 8 ++++++++ src/views/modules/base/resi.vue | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 37e634951..bcf041504 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -993,6 +993,14 @@ export default { } else if (val.type === 'building') { this.form.buildId = val.id; await this.handleChangeB(val.id); + }else if (val.type === 'grid') { + this.cascaderAgencyId = val.id; + this.optionsV = []; + this.form.villageId = ''; + this.form.buildId = ''; + this.form.grid = val.id; + this.form.agencyId = val.id; + await this.getValiheList(); } }, 300)); // 300ms 防抖时间 }, diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 6138264bb..a26711fd0 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -1221,17 +1221,16 @@ export default { this.selTreeObj = obj; await nextTick(1000); this.$nextTick(async ()=>{ - if(obj.level === "building" || obj.level === "neighborHood"){ + if(obj.level === "building" || obj.level === "neighborHood"|| obj.level === "grid"){ const gridNode = this.traverseTree([node]); const gridResult = gridNode.find(item => item.level === 'grid'); const neighborHoodResult = gridNode.find(item => item.level === "neighborHood"); const buildingResult = gridNode.find(item => item.level === "building"); - const gridId = gridResult ? gridResult.id : null; const neighborHoodId = neighborHoodResult ? neighborHoodResult.id : null; const buildingId = buildingResult ? buildingResult.id : null; if (gridId) { - await this.$EventBus.$emit('handleClickResiTree', { type: 'agency', id: gridId }); + await this.$EventBus.$emit('handleClickResiTree', { type: 'grid', id: gridId }); } await nextTick(500); if (neighborHoodId) {