Parcourir la source

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

CzRger il y a 1 an
Parent
commit
80441be608
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/views/gis/layout/tools/analysis.vue

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

@@ -27,7 +27,7 @@
         <div class="head-tab-item __hover" :class="{active: cusTransfer.switchType === 'device'}" @click="cusTransfer.switchType = 'device'">
           <SvgIcon name="search"/>设备({{ $store.state.gis.analysis.device.length }}台)
         </div>
-        <div class="head-tab-close __hover" @click="$emit('cancel')">
+        <div class="head-tab-close __hover" @click="onCancel">
           <SvgIcon name="close_2" color="#0069FF" size="14"/>
         </div>
       </div>
@@ -341,6 +341,7 @@ export default defineComponent({
       onSearchDevice()
     }
     const onCancel = () => {
+      emit('update:transfer', null)
       emit('cancel')
     }
     const deviceTableRowClassName = ({row}) => {