From 3e1c6ea3985d1377372628072b785a9ded13ca14 Mon Sep 17 00:00:00 2001 From: hwj Date: Fri, 23 Jan 2026 16:12:53 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=BF=90=E8=A1=8C=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/deviceOperationRecord/index.ts | 31 +++++ src/views/iot/runReport/index.vue | 132 +++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 src/api/iot/deviceOperationRecord/index.ts create mode 100644 src/views/iot/runReport/index.vue diff --git a/src/api/iot/deviceOperationRecord/index.ts b/src/api/iot/deviceOperationRecord/index.ts new file mode 100644 index 00000000..7d601369 --- /dev/null +++ b/src/api/iot/deviceOperationRecord/index.ts @@ -0,0 +1,31 @@ +import request from '@/config/axios' + +export interface DeviceOperationRecordVO { + id: number + deviceCode: string + deviceName: string + totalRunningTime: number + totalStandbyTime: number + totalFaultTime: number + totalWarningTime: number + utilizationRate: string +} + +export interface DeviceOperationRecordPageParams { + pageNo: number + pageSize: number + deviceCode?: string + deviceName?: string + startTime?: string + endTime?: string + ids?: string +} + +export const DeviceOperationRecordApi = { + getDeviceOperationRecordPage: async (params: DeviceOperationRecordPageParams) => { + return await request.get({ url: `/iot/device-operation-record/deviceOperationPage`, params }) + }, + exportDeviceOperationReport: async (params: DeviceOperationRecordPageParams) => { + return await request.download({ url: `/iot/device-operation-record/export-device-operation-report`, params }) + } +} diff --git a/src/views/iot/runReport/index.vue b/src/views/iot/runReport/index.vue new file mode 100644 index 00000000..0eafdc64 --- /dev/null +++ b/src/views/iot/runReport/index.vue @@ -0,0 +1,132 @@ + + +