zhouna 4 年之前
父节点
当前提交
e586766d5e
共有 1 个文件被更改,包括 9 次插入2 次删除
  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;