diff --git a/src/api/assetDevice/index.js b/src/api/assetDevice/index.js index fa28434..0b4ec9d 100644 --- a/src/api/assetDevice/index.js +++ b/src/api/assetDevice/index.js @@ -27,9 +27,18 @@ export function FetchInitDeviceInfo(params) { } // 根据仓库iD获取全部设备 -export function FetchDeviceAlllByWarehouseId(params) { +export function FetchDeviceAllByWarehouseId(params) { return request({ - url: 'api/device/getDeviceAlllByWarehouseId', + url: 'api/device/getDeviceAllByWarehouseId', + method: 'get', + params + }) +} + +// 站点监控 +export function FetchWarehouseMonitoring(params) { + return request({ + url: 'api/warehouse/warehouseMonitoring', method: 'get', params }) @@ -78,6 +87,15 @@ export function FetchDevicePasswordById(params) { }) } +// 获取实时报警信息 +export function FetchRealtimeAlarms(params) { + return request({ + url: 'api/warehouse/getRealtimeAlarms', + method: 'get', + params + }) +} + export default { FetchFondsWarehouseTree, FetchWarehouseTree, @@ -88,5 +106,7 @@ export default { FetchDeviceTypeTree, FetchDeviceDetailsById, FetchDevicePasswordById, - FetchDeviceAlllByWarehouseId + FetchDeviceAllByWarehouseId, + FetchWarehouseMonitoring, + FetchRealtimeAlarms } diff --git a/src/views/assetManage/monitor/index.vue b/src/views/assetManage/monitor/index.vue index bfd34b5..1fced43 100644 --- a/src/views/assetManage/monitor/index.vue +++ b/src/views/assetManage/monitor/index.vue @@ -16,12 +16,12 @@ /> - +