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