1178232204@qq.com 3 年之前
父节点
当前提交
42d5bd971c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/knowledgeExtra/AddNewRule.vue

+ 2 - 1
src/components/knowledgeExtra/AddNewRule.vue

@@ -442,9 +442,9 @@ export default {
               .match(new RegExp(this.firstPlace.checkedType + '-\\d+', 'g')) ||
             [];
           const types = dict[0].split('-');
-          const delType = del[0].split('-');
           let screenArr;
           if (del.length > 0) {
+            const delType = del[0].split('-');
             const baseTypeList = JSON.parse(JSON.stringify(this.baseTypeList));
             screenArr = baseTypeList.filter(item => {
               return !delType[2].includes(item.type);
@@ -455,6 +455,7 @@ export default {
             if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
               this.$set(item, 'disabled', false);
               if (del.length > 0) {
+                const delType = del[0].split('-');
                 this.$set(item, 'baseTypes', screenArr);
                 if (item.subType == delType[2]) {
                   this.$set(this.form.klRuleByIdSub, i, {