Browse Source

互联网-社管一张图-周边分析,点击页面的关闭按钮‘x’或‘清空标绘’按钮,关闭当前页面后,重新查询周边设备打开页面时,历史查询条件未清空

CzRger 1 year ago
parent
commit
b4fc2d75b9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/gis/layout/index.vue

+ 5 - 1
src/views/gis/layout/index.vue

@@ -127,7 +127,8 @@ export default defineComponent({
       toolsParams: {
         element: null,
         position: null,
-        select: null
+        select: null,
+        analysis: null
       },
       videoLayout: {
         width: 640,
@@ -245,6 +246,9 @@ export default defineComponent({
         clearLocationDom()
         //  框选清空
         state.toolsParams.select?.clearFunc()
+        state.toolsParams.select = null
+        //  周边分析清空
+        state.toolsParams.analysis = null
       } else {
         state.toolsCom = markRaw(item.com)
         state.toolsType = (state.toolsType === item.value ? '' : item.value)