From a345a00610ab9ce6acb98640c2d5e99eb3454933 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Wed, 30 Oct 2024 18:44:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20sqlserver=E3=80=81mongo?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E8=A7=84=E5=88=99=E5=88=97=E8=A1=A8=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=8C=89=E9=92=AE=E9=9A=90=E8=97=8F=20#7667=20#=20Rev?= =?UTF-8?q?iewed,=20transaction=20id:=2022337?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db-manage/common/permission/Index.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue index 308ab97ac9..ef79717bbe 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue @@ -187,6 +187,8 @@ const tableSearch = ref([]); const clusterAuthorizeRef = ref>(); + const isMysql = computed(() => props.accountType === AccountTypes.MYSQL || props.accountType === AccountTypes.TENDBCLUSTER); + /** * search select 过滤参数 */ @@ -386,13 +388,16 @@ onClick={(event: PointerEvent) => handleShowAuthorize(data, item, event)}> {t('授权')} - handleShowEditRule(event, data, index)}> - {t('编辑')} - + { + isMysql.value && + handleShowEditRule(event, data, index)}> + {t('编辑')} + + } )) );