forked from drone/command-center-dashboard

罗广辉
2025-04-15 2abd8e08f2148331e14bf1332e05f5d6302f82de
src/hooks/useMapAggregation/useMapAggregation.js
@@ -123,8 +123,8 @@
  }
  // 获取事件聚合
  function getMapEventCount (areaCode) {
    return getMapEvents({ areaCode }).then(res => {
  function getMapEventCount (area_code) {
    return getMapEvents({ area_code,date_enum:'CURRENT_WEEK' }).then(res => {
      const resData = res?.data?.data
      if (resData?.data) {
        eventList = resData?.data
@@ -449,7 +449,8 @@
      viewer.scene.postRender.addEventListener(labelBoxRender)
    }
    if (deviceFind) {
      store.commit('setSingleUavHome', { id: '123' })
      const device = deviceFind.properties.customData._value.data
      store.commit('setSingleUavHome', device)
    }
  }