From 585cc85df536bb2337892953725c86a4ccacf316 Mon Sep 17 00:00:00 2001 From: alwayssuper <191763414@qq.com> Date: Mon, 14 Apr 2025 10:44:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Biothome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/home/components/ComparisonCard.vue | 33 +++++++ src/views/iot/home/index.vue | 89 ++++++------------- 2 files changed, 62 insertions(+), 60 deletions(-) create mode 100644 src/views/iot/home/components/ComparisonCard.vue diff --git a/src/views/iot/home/components/ComparisonCard.vue b/src/views/iot/home/components/ComparisonCard.vue new file mode 100644 index 000000000..d7aa5d5f8 --- /dev/null +++ b/src/views/iot/home/components/ComparisonCard.vue @@ -0,0 +1,33 @@ + + + diff --git a/src/views/iot/home/index.vue b/src/views/iot/home/index.vue index bee4116bf..aa129d1c6 100644 --- a/src/views/iot/home/index.vue +++ b/src/views/iot/home/index.vue @@ -2,72 +2,40 @@ - -
-
- 分类数量 - -
- - {{ statsData.productCategoryCount }} - - -
- 今日新增 - +{{ statsData.productCategoryTodayCount }} -
-
-
+
- -
-
- 产品数量 - -
- {{ statsData.productCount }} - -
- 今日新增 - +{{ statsData.productTodayCount }} -
-
-
+
- -
-
- 设备数量 - -
- {{ statsData.deviceCount }} - -
- 今日新增 - +{{ statsData.deviceTodayCount }} -
-
-
+
- -
-
- 设备消息数 - -
- - {{ statsData.deviceMessageCount }} - - -
- 今日新增 - +{{ statsData.deviceMessageTodayCount }} -
-
-
+
@@ -165,6 +133,7 @@ import { ProductCategoryApi } from '@/api/iot/statistics' import { formatDate } from '@/utils/formatTime' +import ComparisonCard from './components/ComparisonCard.vue' // TODO @super:参考下 /Users/yunai/Java/yudao-ui-admin-vue3/src/views/mall/home/index.vue,拆一拆组件