瀏覽代碼

色阶图逻辑

yang1998 3 周之前
父節點
當前提交
d80509452c
共有 1 個文件被更改,包括 4 次插入1 次删除
  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 !== "色阶图")
   }
 }