zhouna 4 năm trước cách đây
mục cha
commit
e586766d5e
1 tập tin đã thay đổi với 9 bổ sung2 xóa
  1. 9 2
      src/components/knowledgeExtra/DiseaseTree.vue

+ 9 - 2
src/components/knowledgeExtra/DiseaseTree.vue

@@ -57,7 +57,8 @@
     </div>
     <div class="btmFix"></div>
     <SearchList 
-      v-if="showSearch" 
+      v-if="showSearch"
+      ref="searchDom"
       :conceptList="conceptList||[]" 
       :addLevel="addLevel"
       placeTxt="请输入术语"
@@ -335,11 +336,17 @@ export default {
         this.showSearch = true
       },
       closeSearch() {
-        this.conceptText = ''
         this.conceptList = []
         this.showSearch = false
       },
       append(data, e) {
+          if(this.$refs.searchDom){console.log(this.$refs.searchDom.$refs.conceptInput)
+              this.conceptList = [];
+              setTimeout(()=>{
+                  this.$refs.searchDom.$refs.conceptInput.value="";
+              })
+
+          }
           this.addLevel = data.level+1;
           this.relationConceptId = data.conceptId
           this.operaList = data;