浏览代码

调整代码顺序

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

+ 8 - 11
src/components/knowledgeExtra/AddNewRule.vue

@@ -347,14 +347,15 @@ export default {
         } else if (item.subEqValue) {
         } else if (item.subEqValue) {
           item.dataType = '2';
           item.dataType = '2';
         }
         }
-        const del =
-          localStorage
-            .getItem('zskDelDict')
-            .match(
-              new RegExp(this.firstPlace.checkedType + '-\\d+' + '-\\d+', 'g')
-            ) || [];
+
         // disable
         // disable
         if (this.form.parHasSub && this.firstPlace) {
         if (this.form.parHasSub && this.firstPlace) {
+          const del =
+            localStorage
+              .getItem('zskDelDict')
+              .match(
+                new RegExp(this.firstPlace.checkedType + '-\\d+' + '-\\d+', 'g')
+              ) || [];
           if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
           if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
             this.$set(item, 'disabled', false);
             this.$set(item, 'disabled', false);
             if (del.length > 0) {
             if (del.length > 0) {
@@ -365,11 +366,7 @@ export default {
               const screenArr = subobj.subMenuList.filter(item => {
               const screenArr = subobj.subMenuList.filter(item => {
                 return !types[3].includes(item.code);
                 return !types[3].includes(item.code);
               });
               });
-              this.$set(
-                item,
-                'baseTermTypeList',
-                screenArr
-              );
+              this.$set(item, 'baseTermTypeList', screenArr);
             }
             }
           } else {
           } else {
             this.$set(item, 'disabled', true);
             this.$set(item, 'disabled', true);