Browse Source

修改清除内容仍出现搜索结果(2614)

zhangxc 5 years ago
parent
commit
065c2c5cf9
2 changed files with 6 additions and 1 deletions
  1. 5 0
      src/components/icss/AddMedicalName.vue
  2. 1 1
      src/components/icss/SimilarListDrag.vue

+ 5 - 0
src/components/icss/AddMedicalName.vue

@@ -27,6 +27,7 @@
                 :searchType='searchType'
                 :similarList = 'similarList'
                 isShow = "true"
+                @closeTable = "closeTable"
              >
              </SimilarListDrag>
             </td>
@@ -84,6 +85,7 @@
                     :searchType='searchType'
                     :similarList = 'similarList'
                     :isShow = "index ===searchIndex"
+                    @closeTable = "closeTable"
                 >
                 </SimilarListDrag>
               </td>
@@ -160,6 +162,7 @@
                 :searchType='searchType'
                 :similarList = 'similarList'
                 :isShow = "index ===searchIndex"
+                @closeTable = "closeTable"
               >
               </SimilarListDrag>
             </td>
@@ -311,6 +314,7 @@ import SimilarListDrag from './SimilarListDrag'
           utils.dragBox('dragModalWrap','dragModalTitle','del')
       },
       closeTable(){
+        this.searchType = ''
         this.similarList = []
       
       },
@@ -522,6 +526,7 @@ import SimilarListDrag from './SimilarListDrag'
       },
       getSimilarList(name){
         if(!name){
+          this.closeTable()
           return
         }
         const param = {

+ 1 - 1
src/components/icss/SimilarListDrag.vue

@@ -47,7 +47,7 @@ export default {
             utils.dragBox('dragModalWrap','dragModalTitle','del')
         },
         closeTable(){
-            this.similarList = []
+            this.$emit("closeTable")
         },
     }
 }