田源
2024-01-24 3afcc2a5c713eb6cc59d5b01d305b2da32ad267d
分类授权 数据授权bug修复
已修改2个文件
10 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue
@@ -238,9 +238,8 @@
            }
          });
        });
        //添加 “查看全部禁用条件”
        if (this.classifyAuthData.authButton) {
        if (this.classifyAuthData) {
          this.classifyAuthData.forEach((classkey, classIndex) => {
            if (classkey.authButton.classify_view) {
              this.$set(this.classifyAuthData[classIndex].authButton,"allDisabled",true);
@@ -249,7 +248,6 @@
            }
          });
        }
        //强制刷新表格
        this.itemKey = uuidv4();
      });
@@ -286,7 +284,7 @@
                });
              }
            }
            this.itemKey = uuidv4(); // 强制刷新表格
          });
        });
Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue
@@ -180,7 +180,7 @@
                  Vue.set(item, data, true);
                });
                this.classifyAuthData.push(item);
                this.addIndex = this.classifyAuthData.length - 1; //添加行下标等于classifyAuthData的长度-1
                this.addIndex = this.classifyAuthData.length - 1; //添加行下标等于classifyAuthData的长度-1
                this.roleHandlerMethods(authData.roleId, 'create', index)
              })
            }
@@ -228,7 +228,7 @@
        });
        //添加‘查看’禁用
        if (this.classifyAuthData.authButton) {
        if (this.classifyAuthData) {
          this.classifyAuthData.forEach((classkey, classIndex) => {
            if (classkey.authButton.classify_view) {
              this.$set(this.classifyAuthData[classIndex].authButton,"allDisabled",true);