ludc
2024-02-02 52fd1e55b71fa38ffe89db738acc4e6c7e4da0df
Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue
@@ -118,7 +118,7 @@
    return {
      // 对话框显示控制
      isShowDialog: this.visible,
      isLoading: false,
      isLoading: true,
      tableHeight: "calc(100vh - 550px)",
      classifyAuthData: [],
      //列头
@@ -171,7 +171,7 @@
                //添加 “查看全部禁用条件”
                if (item.code === "classify_view") {
                  this.$set(this.classifyAuthData[index].authButton, "allDisabled", true);
                  console.log(this.classifyAuthData[index].authButton.allDisabled)
                  // console.log(this.classifyAuthData[index].authButton.allDisabled)
                }
              } else {
@@ -288,8 +288,10 @@
        classifyAuthList: [],
        isCLear: false, //默认是清空
        classifyId: this.TreeNode.oid,
        authType: 'classify_auth',
      };
      let isRepeat = false;
      // console.log(this.classifyAuthData);
      if(this.classifyAuthData.length > 0){
        // 遍历数组,比较后面的对象的roleData是否与前面的对象相等
        for (let i = 0; i < this.classifyAuthData.length - 1; i++) {
@@ -374,6 +376,7 @@
    // 加载授权列表
    loadAuthPage() {
      return new Promise((resolve, reject) => {
        this.isLoading = true;
        getButtonByParentCode({ code: "classifyTree" })
          .then((res) => {
            // 记录按钮数据
@@ -441,6 +444,7 @@
            });
          }
        });
        this.isLoading = false;
      });
    },
  },