From 4ace358d03333002f9faf6316953b8dfb44a2de8 Mon Sep 17 00:00:00 2001 From: hlinx <327159425@qq.com> Date: Wed, 17 Apr 2024 20:22:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=20#3682?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/auth-component/button.vue | 2 +- dbm-ui/frontend/src/services/source/iam.ts | 9 ++++---- dbm-ui/frontend/src/stores/useUserProfile.ts | 6 ++---- .../monitor-alarm-db/alarm-group/Index.vue | 2 ++ .../src/views/mysql/permission-rule/index.vue | 1 + .../views/password-manage/policy/Index.vue | 21 ++++++++++++++++--- .../password-manage/randomization/Index.vue | 14 +++++++++++++ .../resource-manage/dirty-machine/Index.vue | 1 + 8 files changed, 44 insertions(+), 12 deletions(-) diff --git a/dbm-ui/frontend/src/components/auth-component/button.vue b/dbm-ui/frontend/src/components/auth-component/button.vue index 582018e766..6904730477 100644 --- a/dbm-ui/frontend/src/components/auth-component/button.vue +++ b/dbm-ui/frontend/src/components/auth-component/button.vue @@ -66,7 +66,7 @@ background-color: transparent !important; border-color: transparent !important; - * { + .bk-button-text { color: #c4c6cc !important; } } diff --git a/dbm-ui/frontend/src/services/source/iam.ts b/dbm-ui/frontend/src/services/source/iam.ts index 10d7ff6808..03c06568e9 100644 --- a/dbm-ui/frontend/src/services/source/iam.ts +++ b/dbm-ui/frontend/src/services/source/iam.ts @@ -13,7 +13,7 @@ import ApplyDataModel from '@services/model/iam/apply-data'; -import http from '../http'; +import http, { type IRequestPayload } from '../http'; const path = '/apis/iam'; @@ -39,10 +39,11 @@ export function checkAuthAllowed(params: IAMParams) { export function simpleCheckAllowed(params: { action_id: string; - resource_ids: Array; + resource_ids?: Array; bk_biz_id?: number; -}) { - return http.post(`${path}/simple_check_allowed/`, params); + is_raise_exception?: boolean; +}, payload = {} as IRequestPayload) { + return http.post(`${path}/simple_check_allowed/`, params, payload); } /** * 获取权限申请数据 diff --git a/dbm-ui/frontend/src/stores/useUserProfile.ts b/dbm-ui/frontend/src/stores/useUserProfile.ts index b3edd52b07..1e0f8fadc4 100644 --- a/dbm-ui/frontend/src/stores/useUserProfile.ts +++ b/dbm-ui/frontend/src/stores/useUserProfile.ts @@ -42,10 +42,8 @@ export const useUserProfile = defineStore('UserProfile', { */ fetchProfile() { return getProfile().then((result) => { - // this.globalManage = Boolean(result.global_manage); - this.globalManage = true; - // this.rerourceManage = Boolean(result.resource_manage); - this.rerourceManage = true; + this.globalManage = Boolean(result.global_manage); + this.rerourceManage = Boolean(result.resource_manage); this.username = result.username; this.profile = result.profile.reduce( diff --git a/dbm-ui/frontend/src/views/monitor-alarm-db/alarm-group/Index.vue b/dbm-ui/frontend/src/views/monitor-alarm-db/alarm-group/Index.vue index e33d45355e..333171a948 100644 --- a/dbm-ui/frontend/src/views/monitor-alarm-db/alarm-group/Index.vue +++ b/dbm-ui/frontend/src/views/monitor-alarm-db/alarm-group/Index.vue @@ -208,6 +208,7 @@ <> - {{ t('保存') }} - + @@ -120,9 +119,12 @@