From 9e736e14655da4cb680151ae54fbae7ec519e4b6 Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 15 Jul 2026 00:47:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Dashboard=E8=AE=BF=E9=97=AE=E8=B6=8B?= =?UTF-8?q?=E5=8A=BF=E5=9B=BE=20-=20=E7=BA=AFCSS=E6=9F=B1=E7=8A=B6?= =?UTF-8?q?=E5=9B=BE=EF=BC=88=E6=97=A0=E7=AC=AC=E4=B8=89=E6=96=B9=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=EF=BC=89=20-=20=E8=BF=917=E5=A4=A9=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E8=B6=8B=E5=8A=BF=EF=BC=88=E9=9A=8F=E6=9C=BA=E6=A8=A1=E6=8B=9F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=8F=AF=E5=90=8E=E7=BB=AD=E6=8E=A5?= =?UTF-8?q?=E5=85=A5=E7=9C=9F=E5=AE=9E=E6=95=B0=E6=8D=AE=EF=BC=89=20-=20?= =?UTF-8?q?=E6=B8=90=E5=8F=98=E8=89=B2=E6=9F=B1=E7=8A=B6+=E8=BF=87?= =?UTF-8?q?=E6=B8=A1=E5=8A=A8=E7=94=BB=20-=20=E6=9A=97=E8=89=B2=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/admin/Dashboard.vue | 52 +++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/admin/Dashboard.vue b/frontend/src/views/admin/Dashboard.vue index 4887b4c..cc4b503 100644 --- a/frontend/src/views/admin/Dashboard.vue +++ b/frontend/src/views/admin/Dashboard.vue @@ -77,12 +77,22 @@ + + + +
+
+
+ {{ d.date.slice(5) }} +
+
+
@@ -115,6 +139,32 @@ onMounted(async () => { .action-btn { width: 100%; } .table-wrap { overflow-x: auto; } .dashboard-loading { padding: 20px; } +.chart-container { + display: flex; + align-items: flex-end; + gap: 12px; + height: 160px; + padding: 0 8px; +} +.chart-bar-wrap { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; + height: 100%; + justify-content: flex-end; +} +.chart-bar { + width: 100%; + max-width: 40px; + background: linear-gradient(to top, #6366f1, #818cf8); + border-radius: 4px 4px 0 0; + transition: height 0.5s ease; + min-height: 4px; +} +.chart-label { font-size: 11px; color: #888; white-space: nowrap; } +html.dark .chart-label { color: var(--text-secondary); } @media (max-width: 767px) { .stat-item .num { font-size: 28px; }