From d246c780e4488c1a487b107d2c3138b6d880cfff Mon Sep 17 00:00:00 2001 From: alwayssuper <191763414@qq.com> Date: Wed, 16 Apr 2025 10:47:29 +0800 Subject: [PATCH] feat: iothome --- src/api/iot/statistics/index.ts | 1 + .../iot/home/components/ComparisonCard.vue | 27 +- .../iot/home/components/DeviceCountCard.vue | 126 ++++++---- .../home/components/DeviceStateCountCard.vue | 143 +++++++---- .../iot/home/components/MessageTrendCard.vue | 235 +++++++++++------- src/views/iot/home/index.vue | 62 +++-- 6 files changed, 384 insertions(+), 210 deletions(-) diff --git a/src/api/iot/statistics/index.ts b/src/api/iot/statistics/index.ts index 5b110c5a6..0f88217ab 100644 --- a/src/api/iot/statistics/index.ts +++ b/src/api/iot/statistics/index.ts @@ -23,6 +23,7 @@ interface TimeValueItem { /** IoT 消息统计数据类型 */ export interface IotStatisticsDeviceMessageSummaryRespVO { + statType: number upstreamCounts: TimeValueItem[] downstreamCounts: TimeValueItem[] } diff --git a/src/views/iot/home/components/ComparisonCard.vue b/src/views/iot/home/components/ComparisonCard.vue index d7aa5d5f8..4ccda6609 100644 --- a/src/views/iot/home/components/ComparisonCard.vue +++ b/src/views/iot/home/components/ComparisonCard.vue @@ -1,17 +1,19 @@