Parcourir la source

色阶图逻辑

yang1998 il y a 3 semaines
Parent
commit
d80509452c
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/left/modules/components/dialog/MapTools.vue

+ 4 - 1
src/views/left/modules/components/dialog/MapTools.vue

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