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"> + + + + + {{ data.beforePrivilege }} + + {{ t('敏感') }} + + + -- + + + + + + {{ data.afterPrivilege }} + + {{ t('敏感') }} + + + -- + + + -