diff --git a/src/views/iot/home/index.vue b/src/views/iot/home/index.vue index 1c4c6b36..771341da 100644 --- a/src/views/iot/home/index.vue +++ b/src/views/iot/home/index.vue @@ -6,12 +6,15 @@
- 品类数量 +
+ 品类数量 + +
{{ statsData.categoryTotal }} -
+
今日新增 - ↑ 0 + ↑ 0
@@ -19,12 +22,15 @@
- 产品数量 +
+ 产品数量 + +
{{ statsData.productTotal }} -
+
今日新增 - ↑ 0 + ↑ 0
@@ -32,12 +38,15 @@
- 设备数量 +
+ 设备数量 + +
{{ statsData.deviceTotal }} -
+
今日新增 - ↑ 0 + ↑ 0
@@ -45,12 +54,15 @@
- 物模型消息 +
+ 物模型消息 + +
{{ statsData.reportTotal }} -
+
今日新增 - ↑ 0 + ↑ 0
@@ -125,6 +137,7 @@ import { LabelLayout, UniversalTransition } from 'echarts/features' import { CanvasRenderer } from 'echarts/renderers' import { ProductCategoryApi } from '@/api/iot/statistics' import { formatDate } from '@/utils/formatTime' +import { Icon } from '@/components/Icon' /** IoT 首页 */ defineOptions({ name: 'IotHome' }) @@ -165,8 +178,6 @@ const statsData = ref({ const getStats = async () => { const res = await ProductCategoryApi.getIotMainStats() statsData.value = res - console.log(res) - console.log(statsData.value) initCharts() }