From f4d3a4de8260c2ae8ab1934c9e38be9bdbd6ff75 Mon Sep 17 00:00:00 2001 From: hwj Date: Fri, 13 Mar 2026 15:54:33 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E5=A4=A7=E5=B1=8F-=E2=80=9C?= =?UTF-8?q?=E4=BB=8A=E6=97=A5=E5=BC=80=E6=9C=BA=E7=8E=87/=E7=A8=BC?= =?UTF-8?q?=E5=8A=A8=E7=8E=87=E2=80=9D=E6=A8=A1=E5=9D=97=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/deviceOperationRecord/index.ts | 19 +++ .../dashboard8/components/TodayOps.vue | 117 ++++++++++++++---- 2 files changed, 111 insertions(+), 25 deletions(-) diff --git a/src/api/iot/deviceOperationRecord/index.ts b/src/api/iot/deviceOperationRecord/index.ts index 7782118e..c9821005 100644 --- a/src/api/iot/deviceOperationRecord/index.ts +++ b/src/api/iot/deviceOperationRecord/index.ts @@ -8,8 +8,14 @@ export interface DeviceOperationRecordVO { totalStandbyTime: number totalFaultTime: number totalWarningTime: number + totalOfflineTime?: number utilizationRate: string powerOnRate?: string + startTime?: string + endTime?: string + lineCode?: string + lineName?: string + deviceId?: number } export interface DeviceOperationRecordPageParams { @@ -22,10 +28,23 @@ export interface DeviceOperationRecordPageParams { ids?: string } +export interface DeviceOperationListParams { + deviceCode?: string + deviceName?: string + startTime?: string + endTime?: string + lineCode?: string + lineName?: string + deviceId?: number | string +} + export const DeviceOperationRecordApi = { getDeviceOperationRecordPage: async (params: DeviceOperationRecordPageParams) => { return await request.get({ url: `/iot/device-operation-record/deviceOperationPage`, params }) }, + getDeviceOperationList: async (params?: DeviceOperationListParams) => { + return await request.get({ url: `/iot/device-operation-record/deviceOperationList`, params }) + }, exportDeviceOperationReport: async (params: DeviceOperationRecordPageParams) => { return await request.download({ url: `/iot/device-operation-record/export-device-operation-report`, params }) } diff --git a/src/views/report/dashboardPage/dashboard8/components/TodayOps.vue b/src/views/report/dashboardPage/dashboard8/components/TodayOps.vue index 585b547c..3b2da013 100644 --- a/src/views/report/dashboardPage/dashboard8/components/TodayOps.vue +++ b/src/views/report/dashboardPage/dashboard8/components/TodayOps.vue @@ -17,23 +17,59 @@