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

楼宇撒点

parent a6cc9055
...@@ -280,9 +280,11 @@ function addEventListener() { ...@@ -280,9 +280,11 @@ function addEventListener() {
html = transOrgHtml(data) html = transOrgHtml(data)
} else if (data?.isList) { } else if (data?.isList) {
html = transListHtml(data) html = transListHtml(data)
} else if (data?.NAME) { } else if (data?.NAME || data?.OBJECTID) {
if (!data.NAME) return store.dispatch(
store.dispatch('getBuildingDetail', data.NAME) 'getBuildingDetail',
data?.NAME || data?.OBJECTID,
)
} }
if (!html) return if (!html) return
......
...@@ -258,7 +258,9 @@ watch( ...@@ -258,7 +258,9 @@ watch(
outStreetValue: 0, outStreetValue: 0,
} }
curTagKey.value = null curTagKey.value = null
if (!store.state.showBuildingDrawer) {
store.commit('SET_MAP_POINTS') store.commit('SET_MAP_POINTS')
}
store.commit('SET_CUR_TAG', '') store.commit('SET_CUR_TAG', '')
} }
}, },
......
...@@ -234,6 +234,7 @@ const getFloors = async (data: any) => { ...@@ -234,6 +234,7 @@ const getFloors = async (data: any) => {
} }
const buildingNext = async (building: any) => { const buildingNext = async (building: any) => {
showBuildingDetail.value = false
floors.value = await getFloors(building) floors.value = await getFloors(building)
setBuilding(building, true) setBuilding(building, true)
showBuildingDetail.value = true showBuildingDetail.value = true
......
...@@ -563,8 +563,9 @@ watch( ...@@ -563,8 +563,9 @@ watch(
)?.map((item: any) => item.extra) || [] )?.map((item: any) => item.extra) || []
emit('boundary', { type: 'area', name: area }) emit('boundary', { type: 'area', name: area })
} }
// TODO 地图落点 if (!store.state.showBuildingDrawer) {
store.commit('SET_MAP_POINTS', points) store.commit('SET_MAP_POINTS', points)
}
}, },
) )
watch( 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