From a045b8fc2dd53ae0f6b3c91be49006c18a72a3f9 Mon Sep 17 00:00:00 2001 From: Kven <2955163637@qq.com> Date: Tue, 11 Mar 2025 22:03:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(iot):=20=E4=BC=98=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=AF=A6=E6=83=85=E5=92=8C=E5=9C=B0=E5=9B=BE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了不必要的导入语句 - 优化了设备上报记录的展示逻辑,添加了详情弹窗 -修复了设备地图组件的样式问题 - 优化了产品 TSL 数据的请求逻辑,提高了数据加载效率 - 改进了设备列表中的在线状态展示,使用标签进行区分 --- src/api/device.ts | 1 - .../iot/device/components/device-detail.vue | 69 ++++++++++++++++--- .../iot/device/components/device-map.vue | 2 +- src/views/iot/device/index.vue | 3 +- .../iot/product/components/product-tsl.vue | 22 ++++-- 5 files changed, 77 insertions(+), 20 deletions(-) diff --git a/src/api/device.ts b/src/api/device.ts index 69d250a..a1a2209 100644 --- a/src/api/device.ts +++ b/src/api/device.ts @@ -1,5 +1,4 @@ import axios from 'axios'; -import dashboard from '@/router/routes/modules/dashboard'; export interface DeviceRecord { size: number; diff --git a/src/views/iot/device/components/device-detail.vue b/src/views/iot/device/components/device-detail.vue index a88836f..8bfb9b7 100644 --- a/src/views/iot/device/components/device-detail.vue +++ b/src/views/iot/device/components/device-detail.vue @@ -89,17 +89,27 @@
上报时间: {{ dayjs(selectedRecord.recordTime).format('YYYY-MM-DD HH:mm:ss') }}
+