Przeglądaj źródła

互联网-社管一张图-周边分析,查询半径范围输入非法数据,并点击确定生成非法输入校验后,点取消查询或清空标绘,此时重新查询周边设备时,历史非法输入校验还在,点“确定”按钮无响应

CzRger 1 rok temu
rodzic
commit
1751fcc9a7
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/views/gis/layout/tools/analysis.vue

+ 5 - 1
src/views/gis/layout/tools/analysis.vue

@@ -100,7 +100,7 @@ import {
   getCurrentInstance,
   ComponentInternalInstance,
   toRefs,
-  nextTick, onUnmounted
+  nextTick, onUnmounted, onBeforeUnmount
 } from 'vue'
 import {useStore} from 'vuex'
 import {useRouter, useRoute} from 'vue-router'
@@ -378,6 +378,10 @@ export default defineComponent({
         initLayer()
       }
     })
+    onBeforeUnmount(() => {
+      state.cusTransfer.draw.radiusTips = false
+      emit('update:transfer', state.cusTransfer)
+    })
     onUnmounted(() => {
       state.cusTransfer.result.isInit = false
       store.state.gis.analysis.layer.setVisible(false)