From be68eb35684c86b0dc411985e16f8ddc68fa64ff Mon Sep 17 00:00:00 2001 From: huliang <1539398430@qq.com> Date: Wed, 23 Apr 2025 16:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A0=81UI=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dashboard/dashboardAlert.vue | 9 +- .../dashboard/dashboardElecChart.vue | 143 +++++++++++++++--- src/components/dashboard/dashboardStat.vue | 4 +- src/components/dashboard/dashboardTag.vue | 2 +- src/main.js | 6 +- 5 files changed, 140 insertions(+), 24 deletions(-) diff --git a/src/components/dashboard/dashboardAlert.vue b/src/components/dashboard/dashboardAlert.vue index dd331d2..6173328 100644 --- a/src/components/dashboard/dashboardAlert.vue +++ b/src/components/dashboard/dashboardAlert.vue @@ -21,7 +21,14 @@ const alarmDataStore = useAlarmDataStore(); - {{ item.name }} + + + {{ item.name }} + {{ item.alarmCount }} {{ item.unackedCount }} diff --git a/src/components/dashboard/dashboardElecChart.vue b/src/components/dashboard/dashboardElecChart.vue index e319e84..cc8a624 100644 --- a/src/components/dashboard/dashboardElecChart.vue +++ b/src/components/dashboard/dashboardElecChart.vue @@ -1,6 +1,6 @@ @@ -107,5 +215,4 @@ const getBarChartOptions = (data) => { - + diff --git a/src/components/dashboard/dashboardStat.vue b/src/components/dashboard/dashboardStat.vue index 1b4d041..10628a6 100644 --- a/src/components/dashboard/dashboardStat.vue +++ b/src/components/dashboard/dashboardStat.vue @@ -33,10 +33,10 @@ const mockData = [ - {{ item.label }}

{{ item.value }}{{ item.unit }}

+ {{ item.label }}
@@ -60,7 +60,7 @@ const mockData = [ .number h3 { font-weight: 700; margin-bottom: 0; - font-size: 30px; + font-size: 33px; } .number h3 small { font-weight: 500; diff --git a/src/components/dashboard/dashboardTag.vue b/src/components/dashboard/dashboardTag.vue index ddb4eae..2e6e6bc 100644 --- a/src/components/dashboard/dashboardTag.vue +++ b/src/components/dashboard/dashboardTag.vue @@ -53,7 +53,7 @@ const handleClick = (ord) => {