1178232204@qq.com 3 năm trước cách đây
mục cha
commit
42d5bd971c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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, {