From 4793d8ab239000cde2bdc4ef5effbae055b0fc5a Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 1 Apr 2026 16:34:54 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=AE=BE=E5=A4=87=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E9=A1=B5=E9=9D=A2=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/index.ts | 19 ++ src/views/iot/map/components/DeviceMap.vue | 73 +++++--- src/views/iot/map/index.vue | 192 +++++++++++---------- 3 files changed, 162 insertions(+), 122 deletions(-) diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index fae6a27..20da091 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -69,6 +69,19 @@ export interface HistoryRecordParams { attributeCodes?: string[] } +export interface DeviceStatusCountByCustomerRespVO { + customerId: number + customerName: string + totalDeviceCount: number + offlineCount: number + runningCount: number + standbyCount: number + faultStandbyCount: number + alarmRunningCount: number + longitude: number + latitude: number +} + export interface DeviceContactModelVO { id: number attributeCode?: string @@ -158,6 +171,12 @@ export const DeviceApi = { return await request.get({ url: `/iot/device/device-run-status-stats` }) }, + getStatusCountByCustomer: async () => { + return await request.get({ + url: `/iot/device/status-count-by-customer` + }) + }, + devicePointList: async () => { return await request.get({ url: `/iot/device/devicePointList` }) }, diff --git a/src/views/iot/map/components/DeviceMap.vue b/src/views/iot/map/components/DeviceMap.vue index a2d5a3e..af1dc64 100644 --- a/src/views/iot/map/components/DeviceMap.vue +++ b/src/views/iot/map/components/DeviceMap.vue @@ -1,13 +1,13 @@