Browse Source

消防设备搜索取消功能优化

guoqing 1 year ago
parent
commit
22e280b5e3
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/placeManage/placeFirefighting/placeFirefightingList.vue

+ 10 - 1
src/views/placeManage/placeFirefighting/placeFirefightingList.vue

@@ -43,7 +43,7 @@
                       text: 'label',
                       value: 'value',
                     }"
-                    @cancel="hs_typeOfEmployees = false"
+                    @cancel="cencel"
                     @confirm="gettypeOfEmployees"
                   />
                 </van-popup>
@@ -210,6 +210,14 @@ export default {
         }
       });
     };
+    const cencel = ()=>{
+      hs_typeOfEmployees.value = false;
+      typeOfEmployeesName.value = '';
+      const json = Object.assign(inputForm.value, {
+        equipmentType: '',
+      });
+      inputForm.value = json;
+    }
     const onClickSearch = () => {
       if (active.value == "") {
         list.value = [];
@@ -241,6 +249,7 @@ export default {
       hs_typeOfEmployees,
       gettypeOfEmployees,
       del,
+      cencel
     };
   },
 };