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 @@ + + +