queryHouseByName无经纬度不展示点标记
This commit is contained in:
@@ -47,11 +47,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="info-flex">
|
<div class="info-flex">
|
||||||
<span class="label">所属网格</span>
|
<span class="label">所属网格</span>
|
||||||
<span class="value">{{ detailInfo.gird.girdName || '' }}</span>
|
<span class="value" v-if="detailInfo.gird">{{ detailInfo.gird.girdName || '' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-flex">
|
<div class="info-flex">
|
||||||
<span class="label">网格管理员</span>
|
<span class="label">网格管理员</span>
|
||||||
<span class="value">{{ detailInfo.gird.girdMemberNames || '' }}</span>
|
<span class="value" v-if="detailInfo.gird">{{ detailInfo.gird.girdMemberNames || '' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-flex">
|
<div class="info-flex">
|
||||||
<span class="label">楼栋长</span>
|
<span class="label">楼栋长</span>
|
||||||
@@ -295,17 +295,17 @@ export default {
|
|||||||
if (res.code == 0 && res.data.length) {
|
if (res.code == 0 && res.data.length) {
|
||||||
this.show = true
|
this.show = true
|
||||||
this.buildList = res.data
|
this.buildList = res.data
|
||||||
const points = res.data.map(item => {
|
// const points = res.data.map(item => {
|
||||||
return {
|
// return {
|
||||||
lnglat: [item.lng, item.lat],
|
// lnglat: [item.lng, item.lat],
|
||||||
id: item.id,
|
// id: item.id,
|
||||||
corpId: item.corpId,
|
// corpId: item.corpId,
|
||||||
areaName: item.areaName,
|
// areaName: item.areaName,
|
||||||
buildingNumber: item.name || item.buildingNumber,
|
// buildingNumber: item.residentName || item.buildingNumber,
|
||||||
communityName: item.name || item.communityName,
|
// communityName: item.residentName || item.communityName,
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
this.getMarkerCluster(points)
|
// this.getMarkerCluster(points)
|
||||||
} else {
|
} else {
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$u.toast('未搜索到结果,请换个关键字重试!')
|
this.$u.toast('未搜索到结果,请换个关键字重试!')
|
||||||
@@ -314,10 +314,11 @@ export default {
|
|||||||
},
|
},
|
||||||
getBuildingInfo(item) {
|
getBuildingInfo(item) {
|
||||||
this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => {
|
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.show = false
|
||||||
this.showPop = true
|
|
||||||
this.detailInfo = res.data
|
this.detailInfo = res.data
|
||||||
|
this.showPop = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user