فهرست منبع

切换清空数据

wyq 3 سال پیش
والد
کامیت
73631fae4c
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      src/components/knowledgeExtra/AddTermSet.vue

+ 8 - 4
src/components/knowledgeExtra/AddTermSet.vue

@@ -605,7 +605,7 @@ export default {
             this.excludedConceptIds.splice(index, 1);
           }
         });
-        this.leftList = this.form.concepts
+        this.leftList = this.form.concepts;
       } else {
         this.leftList.forEach((item, index) => {
           if (item.conceptId == row.conceptId) {
@@ -663,8 +663,8 @@ export default {
           if (res.data.code == '0') {
             const data = res.data.data;
             let text = '';
-            if (data.unMatchList.length > 0 || data.disableList.length > 0 ) {
-              let arr = data.unMatchList.concat(data.disableList)
+            if (data.unMatchList.length > 0 || data.disableList.length > 0) {
+              let arr = data.unMatchList.concat(data.disableList);
               arr.forEach(it => {
                 text += it.conceptLibName + '\n';
               });
@@ -675,7 +675,10 @@ export default {
             }
             if (data.matchList.length > 0) {
               this.processing(data.matchList);
-              if (data.unMatchList.length == 0 && data.disableList.length == 0) {
+              if (
+                data.unMatchList.length == 0 &&
+                data.disableList.length == 0
+              ) {
                 this.dialogVisible = false;
               }
             }
@@ -692,6 +695,7 @@ export default {
       this.conceptText = '';
       this.ruleTermTypeList = [];
       this.form.concepts = [];
+      this.leftList = [];
       this.getTreeSearchList();
     }
   },