From 39b422fa374a5eee4ce96180fa1c785892e56db8 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Fri, 6 Dec 2024 18:40:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=8D=95=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=BF=AD=E4=BB=A3=5F1206=20#7190=20#=20Reviewed,=20tr?= =?UTF-8?q?ansaction=20id:=2026103?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/services/types/permission.ts | 20 +- .../create-rule/components/PreviewDiff.vue | 248 ++++++++---------- .../components/PreviewDiff.vue | 240 ++++++++--------- 3 files changed, 238 insertions(+), 270 deletions(-) diff --git a/dbm-ui/frontend/src/services/types/permission.ts b/dbm-ui/frontend/src/services/types/permission.ts index 3760f2e07e..769a278259 100644 --- a/dbm-ui/frontend/src/services/types/permission.ts +++ b/dbm-ui/frontend/src/services/types/permission.ts @@ -117,16 +117,6 @@ export interface PasswordPolicyIncludeRule { uppercase: boolean; } -/** - * 新增账号规则 - */ -export interface AccountRule { - access_db: string; - privilege: AccountRulePrivilege | string; - account_id: number | null; - account_type?: AccountTypesValues; -} - /** * 新增账号规则 - 权限信息 */ @@ -138,6 +128,16 @@ export interface AccountRulePrivilege { export type AccountRulePrivilegeKey = keyof AccountRulePrivilege; +/** + * 新增账号规则 + */ +export interface AccountRule { + access_db: string; + privilege: AccountRulePrivilege; + account_id: number | null; + account_type?: AccountTypesValues; +} + /** * 规则授权前置检查信息 */ diff --git a/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/PreviewDiff.vue b/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/PreviewDiff.vue index d2b5ecb827..4261e2dd70 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/PreviewDiff.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/PreviewDiff.vue @@ -28,10 +28,14 @@ :is-active="collapseActive.accessDb" mode="collapse" :title="t('访问DB')"> - + + + + + :merge-cells="mergeCells"> + + + + + + + + -