Bläddra i källkod

优化色阶图与统计展示逻辑

yang1998 2 veckor sedan
förälder
incheckning
57c0ff092b
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      src/views/left/modules/components/dialog/MapTools.vue

+ 3 - 0
src/views/left/modules/components/dialog/MapTools.vue

@@ -9,6 +9,8 @@
 <script setup>
 import { ref, onMounted } from 'vue'
 import {setDistrictResult} from "@/utils/map/AddLayer.js";
+import {useEventInteractionStore} from "@/store/eventInteraction.js";
+const eventInteractionStore = useEventInteractionStore()
 
 // 公共路径
 const basePath = '../../../../../assets/img/'
@@ -98,6 +100,7 @@ const selectTool = name => {
         "count": 36
       }]
     setDistrictResult(activeTool.value === "色阶图",  data)
+    eventInteractionStore.isDangerStatistic = activeTool.value !== "色阶图"
   }
 }