From ac44422fc5afcaadcd143d7333354672daf5fda2 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 26 Oct 2022 15:34:01 +0800 Subject: [PATCH] =?UTF-8?q?queryHouseByName=E6=97=A0=E7=BB=8F=E7=BA=AC?= =?UTF-8?q?=E5=BA=A6=E4=B8=8D=E5=B1=95=E7=A4=BA=E7=82=B9=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppBuilding/components/searchMap.vue | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/apps/AppBuilding/components/searchMap.vue b/src/apps/AppBuilding/components/searchMap.vue index 02e8fad9..1b24e1a9 100644 --- a/src/apps/AppBuilding/components/searchMap.vue +++ b/src/apps/AppBuilding/components/searchMap.vue @@ -47,11 +47,11 @@
所属网格 - {{ detailInfo.gird.girdName || '' }} + {{ detailInfo.gird.girdName || '' }}
网格管理员 - {{ detailInfo.gird.girdMemberNames || '' }} + {{ detailInfo.gird.girdMemberNames || '' }}
楼栋长 @@ -295,17 +295,17 @@ export default { if (res.code == 0 && res.data.length) { this.show = true this.buildList = res.data - const points = res.data.map(item => { - return { - lnglat: [item.lng, item.lat], - id: item.id, - corpId: item.corpId, - areaName: item.areaName, - buildingNumber: item.name || item.buildingNumber, - communityName: item.name || item.communityName, - } - }) - this.getMarkerCluster(points) + // const points = res.data.map(item => { + // return { + // lnglat: [item.lng, item.lat], + // id: item.id, + // corpId: item.corpId, + // areaName: item.areaName, + // buildingNumber: item.residentName || item.buildingNumber, + // communityName: item.residentName || item.communityName, + // } + // }) + // this.getMarkerCluster(points) } else { this.show = false this.$u.toast('未搜索到结果,请换个关键字重试!') @@ -314,10 +314,11 @@ export default { }, getBuildingInfo(item) { this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => { - if (res?.data) { + if (res.code == 0) { + console.log(res) this.show = false - this.showPop = true this.detailInfo = res.data + this.showPop = true } }) },