From 03fddba406182fa8503d785a072cbbd9f487a7b1 Mon Sep 17 00:00:00 2001 From: Cheng Zhou Date: Mon, 22 Dec 2025 08:54:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AFUI=E7=95=8C=E9=9D=A2=E7=BE=8E?= =?UTF-8?q?=E5=8C=96-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/KpiCard.vue | 103 +++++-- frontend/src/components/Layout.vue | 17 +- frontend/src/components/QuickActions.vue | 123 +++++++- frontend/src/components/StudySelector.vue | 64 +++- frontend/src/views/StudyHome.vue | 198 ++++++++----- frontend/src/views/workbench/MyWorkbench.vue | 277 +++++++++++++----- .../workbench/components/PersonalTodo.vue | 189 ++++++++++-- .../workbench/components/SectionCard.vue | 159 +++++++--- 8 files changed, 873 insertions(+), 257 deletions(-) diff --git a/frontend/src/components/KpiCard.vue b/frontend/src/components/KpiCard.vue index bba3e60f..a4ee7b36 100644 --- a/frontend/src/components/KpiCard.vue +++ b/frontend/src/components/KpiCard.vue @@ -1,9 +1,23 @@ @@ -13,6 +27,8 @@ interface Props { value: string | number; subtext?: string; loading?: boolean; + icon?: any; + unit?: string; } defineProps(); @@ -20,22 +36,71 @@ defineProps(); diff --git a/frontend/src/components/Layout.vue b/frontend/src/components/Layout.vue index 0508068e..4312707c 100644 --- a/frontend/src/components/Layout.vue +++ b/frontend/src/components/Layout.vue @@ -90,9 +90,7 @@
- +
@@ -215,11 +213,22 @@ const onLogout = () => { :deep(.el-sub-menu__title) { color: rgba(255, 255, 255, 0.65) !important; margin: 4px 12px; + border-radius: var(--ctms-radius); } :deep(.el-sub-menu__title:hover) { color: #fff !important; - background-color: transparent !important; + background-color: rgba(255, 255, 255, 0.1) !important; +} + +:deep(.el-menu--inline) { + background-color: rgba(0, 0, 0, 0.2) !important; + margin: 0 !important; +} + +:deep(.el-menu--inline .el-menu-item) { + padding-left: 48px !important; + margin: 2px 12px; } .layout-header { diff --git a/frontend/src/components/QuickActions.vue b/frontend/src/components/QuickActions.vue index 3d786196..a324c3c0 100644 --- a/frontend/src/components/QuickActions.vue +++ b/frontend/src/components/QuickActions.vue @@ -1,35 +1,128 @@ diff --git a/frontend/src/components/StudySelector.vue b/frontend/src/components/StudySelector.vue index d73af61b..c5d68a79 100644 --- a/frontend/src/components/StudySelector.vue +++ b/frontend/src/components/StudySelector.vue @@ -1,14 +1,18 @@