From 7f1f9ccd3bac6233378bdb84fb945f0533e7d2b3 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 20 Jun 2025 17:02:42 +0800 Subject: [PATCH] feat: system --- ui/src/components/common-list/index.vue | 1 + ui/src/components/index.ts | 4 + ui/src/components/tag-group/index.vue | 11 ++- .../workspace-dropdown/index.vue | 31 +++---- ui/src/layout/layout-header/UserHeader.vue | 12 ++- ui/src/locales/lang/en-US/views/index.ts | 2 - .../en-US/views/resource-authorization.ts | 27 +++--- ui/src/locales/lang/en-US/views/team.ts | 30 ------- .../zh-CN/views/resource-authorization.ts | 25 +++--- ui/src/locales/lang/zh-Hant/views/index.ts | 2 - .../zh-Hant/views/resource-authorization.ts | 18 ++++ ui/src/locales/lang/zh-Hant/views/team.ts | 29 ------ ui/src/router/modules/system.ts | 55 ++++++++++-- ui/src/styles/element-plus.scss | 10 ++- .../component/PermissionSetting.vue | 78 +++++++++++++--- ui/src/views/resource-authorization/index.vue | 88 +++++++++++++------ .../system-chat-user/user-manage/index.vue | 3 +- 17 files changed, 252 insertions(+), 174 deletions(-) rename ui/src/{layout/layout-header => components}/workspace-dropdown/index.vue (78%) delete mode 100644 ui/src/locales/lang/en-US/views/team.ts delete mode 100644 ui/src/locales/lang/zh-Hant/views/team.ts diff --git a/ui/src/components/common-list/index.vue b/ui/src/components/common-list/index.vue index 3e0c59ac..28e16500 100644 --- a/ui/src/components/common-list/index.vue +++ b/ui/src/components/common-list/index.vue @@ -77,6 +77,7 @@ defineExpose({ font-size: 14px; margin-bottom: 4px; &.active { + background: var(--el-color-primary-light-9); border-radius: 4px; color: var(--el-color-primary); font-weight: 500; diff --git a/ui/src/components/index.ts b/ui/src/components/index.ts index 83400e8d..931fef59 100644 --- a/ui/src/components/index.ts +++ b/ui/src/components/index.ts @@ -23,6 +23,8 @@ import TagEllipsis from './tag-ellipsis/index.vue' import CardCheckbox from './card-checkbox/index.vue' import AiChat from './ai-chat/index.vue' import KnowledgeIcon from './app-icon/KnowledgeIcon.vue' +import TagGroup from './tag-group/index.vue' +import WorkspaceDropdown from './workspace-dropdown/index.vue' export default { install(app: App) { app.component('LogoFull', LogoFull) @@ -49,5 +51,7 @@ export default { app.component('CardCheckbox', CardCheckbox) app.component('AiChat', AiChat) app.component('KnowledgeIcon', KnowledgeIcon) + app.component('TagGroup', TagGroup) + app.component('WorkspaceDropdown', WorkspaceDropdown) }, } diff --git a/ui/src/components/tag-group/index.vue b/ui/src/components/tag-group/index.vue index 195742a2..784d297f 100644 --- a/ui/src/components/tag-group/index.vue +++ b/ui/src/components/tag-group/index.vue @@ -1,10 +1,10 @@