From b756b3d58c5c4160fc2e0f2f185d2ac5e302fb2e Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Tue, 28 Apr 2026 12:22:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(dashboard):=20=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=8C=87=E6=A0=87=E6=B7=BB=E5=8A=A0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E8=AF=B4=E6=98=8Etooltip=EF=BC=8Chover=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=9A=E4=BF=97=E6=98=93=E6=87=82=E7=9A=84=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=8F=A3=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboard/DashboardPage.vue | 91 ++++++++++++++++--- 1 file changed, 77 insertions(+), 14 deletions(-) diff --git a/frontend/src/views/dashboard/DashboardPage.vue b/frontend/src/views/dashboard/DashboardPage.vue index 27d3468..155d7db 100644 --- a/frontend/src/views/dashboard/DashboardPage.vue +++ b/frontend/src/views/dashboard/DashboardPage.vue @@ -5,7 +5,12 @@
-
在线机床数
+
+ 在线机床数 + + + +
{{ summary.onlineCount }} / {{ summary.totalMachines }}
@@ -13,7 +18,12 @@
-
今日总产量
+
+ 今日总产量 + + + +
{{ summary.todayProduction?.toLocaleString() }}
@@ -21,7 +31,12 @@
-
采集服务
+
+ 采集服务 + + + +
{{ collectorStatus.status === 'running' ? '运行中' : '已停止' }} @@ -39,7 +54,12 @@
-
活跃告警
+
+ 活跃告警 + + + +
{{ summary.activeAlerts }}
@@ -53,7 +73,12 @@
-
采集成功率
+
+ 采集成功率 + + + +
{{ summary.collectSuccessRate }}%
@@ -61,7 +86,12 @@
-
今日切削总时
+
+ 今日切削总时 + + + +
{{ summary.todayCuttingTime }} h
@@ -69,7 +99,12 @@
-
运行机床
+
+ 运行机床 + + + +
{{ summary.runningMachines }}
@@ -77,7 +112,12 @@
-
数据缺失
+
+ 数据缺失 + + + +
{{ summary.dataMissingMachines }}
@@ -88,13 +128,13 @@ - +
- +
@@ -104,7 +144,7 @@ - +
@@ -112,7 +152,7 @@ @@ -141,7 +181,7 @@ @@ -166,7 +206,7 @@ @@ -377,6 +417,18 @@ onUnmounted(() => { font-size: 14px; color: #909399; margin-bottom: 8px; + + .info-icon { + margin-left: 2px; + font-size: 13px; + color: #c0c4cc; + cursor: help; + vertical-align: middle; + + &:hover { + color: #409EFF; + } + } } .stat-value { @@ -421,6 +473,17 @@ onUnmounted(() => { .card-title { font-size: 15px; font-weight: 500; + + .info-icon { + margin-left: 4px; + font-size: 14px; + color: #b0b5bd; + cursor: help; + + &:hover { + color: #409EFF; + } + } } .card-header {