Commit 80968c93 authored by 郭铭瑶's avatar 郭铭瑶 🤘

楼宇撒点

parent a6cc9055
......@@ -280,9 +280,11 @@ function addEventListener() {
html = transOrgHtml(data)
} else if (data?.isList) {
html = transListHtml(data)
} else if (data?.NAME) {
if (!data.NAME) return
store.dispatch('getBuildingDetail', data.NAME)
} else if (data?.NAME || data?.OBJECTID) {
store.dispatch(
'getBuildingDetail',
data?.NAME || data?.OBJECTID,
)
}
if (!html) return
......
......@@ -258,7 +258,9 @@ watch(
outStreetValue: 0,
}
curTagKey.value = null
if (!store.state.showBuildingDrawer) {
store.commit('SET_MAP_POINTS')
}
store.commit('SET_CUR_TAG', '')
}
},
......
......@@ -234,6 +234,7 @@ const getFloors = async (data: any) => {
}
const buildingNext = async (building: any) => {
showBuildingDetail.value = false
floors.value = await getFloors(building)
setBuilding(building, true)
showBuildingDetail.value = true
......
......@@ -563,8 +563,9 @@ watch(
)?.map((item: any) => item.extra) || []
emit('boundary', { type: 'area', name: area })
}
// TODO 地图落点
if (!store.state.showBuildingDrawer) {
store.commit('SET_MAP_POINTS', points)
}
},
)
watch(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment