Explorar el Código

点击其他地方关闭搜索框

zhangxc hace 6 años
padre
commit
cec9eec406

+ 9 - 1
src/components/icss/AddChemicalAndCommonMapping.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="AddChemicalAndCommonMappingWrapper clearfix">
+    <div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
         <!-- <div class="groupTitle"><i
                 class="el-icon-back"
                 @click="back"
@@ -125,6 +125,14 @@ export default {
         // }
     },
     methods: {
+        close() {
+            this.mealNameList = [];
+            this.itemNameList =[];
+            this.uniqueNameList = [];
+            this.$refs['mealNameList'].style.display='none';
+            this.$refs['itemNameList'].style.display='none';
+            this.$refs['uniqueNameList'].style.display='none';
+        },
         back() {
             this.$router.go(-1)
         },

+ 7 - 1
src/components/icss/AddChronicAndIndexRelation.vue

@@ -1,6 +1,6 @@
 <!-- 添加常见科室症状  -->
 <template>
-    <div class="AddChronicAndIndexRelationWrapper">
+    <div class="AddChronicAndIndexRelationWrapper" @click="close">
         <!-- <div class="groupTitle"><i
             class="el-icon-back"
             @click="back"
@@ -117,6 +117,12 @@
         // }
     },
     methods: {
+        close() {
+            this.diagList = [];
+            this.indexList = [];
+            this.$refs['diagList'].style.display = 'none';
+            this.$refs['indexList'].style.display = 'none';
+        },
         back(){
             this.$router.go(-1);
         },

+ 5 - 1
src/components/icss/AddDisAndScaleRelation.vue

@@ -1,6 +1,6 @@
 <!-- 添加常见科室症状  -->
 <template>
-    <div class="addDisAndScaleRelationWrapper">
+    <div class="addDisAndScaleRelationWrapper" @click="close">
         <!-- <div class="groupTitle"><i
             class="el-icon-back"
             @click="back"
@@ -148,6 +148,10 @@
         }
     },
     methods: {
+        close() {
+            this.diagList =[];
+            this.$refs['diagList'].style.display='none' ;
+        },
         back(){
             this.$router.go(-1);
         },