田源
2024-09-29 7d05c69630d066c0992368423f90e440e3638f91
Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue
@@ -142,7 +142,7 @@
      if (code === "classify_view") {
        row.checkTheStatus = check;
      } else if (!row.checkTheStatus) {
        this.$message.warning('清先勾选查看按钮!');
        this.$message.warning('请先勾选查看按钮!');
        // 在条件不满足时将多选框状态设置为false
        row[id] = false;
      }
@@ -291,6 +291,7 @@
        classifyId: this.TreeNode.oid,
        authType: 'classify_auth',
      };
      console.log('classifyAuthData',this.classifyAuthData);
      let isRepeat = false;
      if (this.classifyAuthData.length > 0) {
        // 遍历数组,比较后面的对象的roleData是否与前面的对象相等
@@ -315,7 +316,7 @@
          let itemButtonList = [];
          //筛选出按钮勾选为true的列
          for (let key in item) {
            if (item[key] === true) {
            if (item[key] === true && key !== 'checkTheStatus') {
              itemButtonList.push(key);
            }
          }