From 3afcc2a5c713eb6cc59d5b01d305b2da32ad267d Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 24 一月 2024 16:54:38 +0800 Subject: [PATCH] 分类授权 数据授权bug修复 --- Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue | 6 ++---- Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue b/Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue index cedd531..35216a7 100644 --- a/Source/UBCS-WEB/src/components/Theme/ClassifyAuthDialog.vue +++ b/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(); // 寮哄埗鍒锋柊琛ㄦ牸 }); }); diff --git a/Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue b/Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue index 334cab8..69e0326 100644 --- a/Source/UBCS-WEB/src/components/Theme/DataAuthDialog.vue +++ b/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; //娣诲姞琛屼笅鏍囩瓑浜巆lassifyAuthData鐨勯暱搴�-1 + this.addIndex = this.classifyAuthData.length - 1; //娣诲姞琛屼笅鏍囩瓑浜巆lassifyAuthData鐨勯暱搴�-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); -- Gitblit v1.9.3