queryHouseByName无经纬度不展示点标记
This commit is contained in:
		| @@ -47,11 +47,11 @@ | ||||
|         </div> | ||||
|         <div class="info-flex"> | ||||
|           <span class="label">所属网格</span> | ||||
|           <span class="value">{{ detailInfo.gird.girdName || '' }}</span> | ||||
|           <span class="value" v-if="detailInfo.gird">{{ detailInfo.gird.girdName || '' }}</span> | ||||
|         </div> | ||||
|         <div class="info-flex"> | ||||
|           <span class="label">网格管理员</span> | ||||
|           <span class="value">{{ detailInfo.gird.girdMemberNames || '' }}</span> | ||||
|           <span class="value" v-if="detailInfo.gird">{{ detailInfo.gird.girdMemberNames || '' }}</span> | ||||
|         </div> | ||||
|         <div class="info-flex"> | ||||
|           <span class="label">楼栋长</span> | ||||
| @@ -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 | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user