Quellcode durchsuchen

右侧点击选中

wyq vor 3 Jahren
Ursprung
Commit
cb2834ee0c
1 geänderte Dateien mit 20 neuen und 19 gelöschten Zeilen
  1. 20 19
      src/components/knowledgeExtra/AddTermSet.vue

+ 20 - 19
src/components/knowledgeExtra/AddTermSet.vue

@@ -541,25 +541,26 @@ export default {
       }
     },
     btn(row) {
-      if (this.whether) {
-        return;
-      }
-      let concepts = {
-        conceptId: row.conceptId,
-        conceptLibType: row.libType,
-        conceptLibName: row.conceptName
-      };
-      this.excludedConceptIds.push(row.conceptId);
-      this.form.concepts.push(concepts);
-      this.leftList = this.form.concepts;
-      this.conceptList = [];
-      this.searchtext = '';
-      this.searchtext2 = '';
-      this.$nextTick(() => {
-        setTimeout(() => {
-          this.getTreeSearchList();
-        }, 150);
-      });
+      // if (this.whether) {
+      //   return;
+      // }
+      // let concepts = {
+      //   conceptId: row.conceptId,
+      //   conceptLibType: row.libType,
+      //   conceptLibName: row.conceptName
+      // };
+      // this.excludedConceptIds.push(row.conceptId);
+      // this.form.concepts.push(concepts);
+      // this.leftList = this.form.concepts;
+      // this.conceptList = [];
+      // this.searchtext = '';
+      // this.searchtext2 = '';
+      // this.$nextTick(() => {
+      //   setTimeout(() => {
+      //     this.getTreeSearchList();
+      //   }, 150);
+      // });
+      this.$refs.tables.toggleRowSelection(row)
     },
     handleSelectionChange(val) {
       this.multipleSelection = val;