From 46f684ac38c9f96d1499257fd2978cba3e6fc6df Mon Sep 17 00:00:00 2001 From: xuans Date: Tue, 6 Oct 2026 00:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=B4=A6=E5=8F=B7=E5=92=8C=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Dashboard/Dashboard.vue | 1 + .../views/Dashboard/DashboardNavigation.css | 24 +++++++++++++++++++ .../views/Dashboard/DashboardNavigation.vue | 14 +++++++++++ 3 files changed, 39 insertions(+) diff --git a/frontend/src/views/Dashboard/Dashboard.vue b/frontend/src/views/Dashboard/Dashboard.vue index 8fbd614..e8dc3cb 100644 --- a/frontend/src/views/Dashboard/Dashboard.vue +++ b/frontend/src/views/Dashboard/Dashboard.vue @@ -461,6 +461,7 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi diff --git a/frontend/src/views/Dashboard/DashboardNavigation.css b/frontend/src/views/Dashboard/DashboardNavigation.css index a615d8d..d40ff66 100644 --- a/frontend/src/views/Dashboard/DashboardNavigation.css +++ b/frontend/src/views/Dashboard/DashboardNavigation.css @@ -110,6 +110,30 @@ padding-top: 22px; } +.navigation-account { + display: grid; + gap: 5px; + margin: 0 8px 10px; + padding: 11px 12px; + border: 1px solid #e2e8f2; + border-radius: 12px; + background: #f8faff; + color: #263752; + overflow-wrap: anywhere; +} + +.navigation-account-label, +.navigation-account-role { + color: #7a879d; + font-size: 11px; + line-height: 1.4; +} + +.navigation-account strong { + font-size: 13px; + line-height: 1.4; +} + .navigation-error { margin: 0 8px 8px; color: #b42318; diff --git a/frontend/src/views/Dashboard/DashboardNavigation.vue b/frontend/src/views/Dashboard/DashboardNavigation.vue index 9f55593..5f46be5 100644 --- a/frontend/src/views/Dashboard/DashboardNavigation.vue +++ b/frontend/src/views/Dashboard/DashboardNavigation.vue @@ -3,9 +3,16 @@ import { useAccessDenied } from "../AccessDenied/AccessDenied.js"; const { loggingOut, error, logout } = useAccessDenied(); +const roleLabels = { + super_admin: "超级管理员", + admin: "管理员", + user: "普通用户", +}; + defineProps({ activeSection: { type: String, required: true }, sections: { type: Array, required: true }, + currentUser: { type: Object, default: null }, }); defineEmits(["select", "settings"]); @@ -73,6 +80,13 @@ defineEmits(["select", "settings"]); 系统设置