From c80497c3c7ecbc81ebb2eb2eea21f4c16849348d Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 14 Jan 2022 17:28:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E7=94=A8=E6=88=B7=E7=BB=84=E4=B8=8E=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E6=9F=A5=E7=9C=8B=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/project/menu/UserGroup.vue | 4 ++++ .../settings/system/group/EditPermission.vue | 16 ++++++++++------ .../settings/system/group/GroupPermission.vue | 10 ++++++++-- frontend/src/i18n/en-US.js | 1 + frontend/src/i18n/zh-CN.js | 1 + frontend/src/i18n/zh-TW.js | 1 + 6 files changed, 25 insertions(+), 8 deletions(-) diff --git a/frontend/src/business/components/project/menu/UserGroup.vue b/frontend/src/business/components/project/menu/UserGroup.vue index 74af7bb019..12dfb76a4e 100644 --- a/frontend/src/business/components/project/menu/UserGroup.vue +++ b/frontend/src/business/components/project/menu/UserGroup.vue @@ -57,6 +57,7 @@ icon="el-icon-s-tools" @exec="setPermission(scope.row)" :disabled="flagChange(scope.row.scopeId ==='global')"/> + @@ -164,6 +165,9 @@ export default { return false; } }, + viewPermission(row) { + this.$refs.editPermission.open(row, true, this.$t('group.view_permission')); + }, create() { this.$refs.editUserGroup.open({}, 'create', this.$t('group.create')); }, diff --git a/frontend/src/business/components/settings/system/group/EditPermission.vue b/frontend/src/business/components/settings/system/group/EditPermission.vue index 70be92a299..2193f0c25d 100644 --- a/frontend/src/business/components/settings/system/group/EditPermission.vue +++ b/frontend/src/business/components/settings/system/group/EditPermission.vue @@ -1,6 +1,6 @@