From 2abd8e08f2148331e14bf1332e05f5d6302f82de Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 15 Apr 2025 20:27:56 +0800
Subject: [PATCH] feat: 当前任务详情35%

---
 src/hooks/useMapAggregation/useMapAggregation.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/hooks/useMapAggregation/useMapAggregation.js b/src/hooks/useMapAggregation/useMapAggregation.js
index be08c5d..246ef47 100644
--- a/src/hooks/useMapAggregation/useMapAggregation.js
+++ b/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)
     }
   }
 

--
Gitblit v1.9.3