| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import { defHttp } from '/@/utils/http/axios';
- import _ from 'lodash';
- enum Api {
- monitorAndAlertBelt = '/ventanaly-device/monitor/disaster/monitorAndAlertBelt',
- // 首页数据获取
- getDataHome = '/ventanaly-device/monitor/disaster/threeLevelFireHomepage',
- getSystem = '/modelreq/monitor/system',
- getDevice = '/modelreq/monitor/device',
- //车辆干扰排除状态查询
- getStatus = '/ventanaly-device/safety/deviceVehiclePass/switch/status',
- // 车辆干扰排除控制
- changeStatus = '/ventanaly-device/safety/deviceVehiclePass/switch/change',
- // 查询预警结果
- getWarnResult = '/ventanaly-device/monitor/disaster/beltAlertRecords',
- // 预警指标信息获取
- getWarnInfo = '/ventanaly-device/monitor/disaster/findAlarmsBySystemAndMonitorType',
- // 获取人员定位信息
- findStaffInfoBySystem = '/ventanaly-device/monitor/disaster/findStaffInfoBySystem',
- // 获取皮带巷信息
- getLeatherInfo = '/safety/ventanalyManageSystem/list',
- // 设备历史
- deviceHistory = '/safety/ventanalyMonitorData/listdays',
- // 获取皮带巷下设备
- getDeviceData = '/ventanaly-device/safety/managesysAlarmInfo/getDevicesInfoBySysId',
- // 操作历史
- getDevicesetLog = '/safety/ventanalyDevicesetLog/list',
- // 获取皮带巷下设备类型
- systemList = '/monitor/device',
- // 获取预警历史
- alarmList = '/safety/managesysAutoLog/list',
- }
- export const getSystem = (params) => defHttp.post({ url: Api.getSystem, params });
- export const getMonitorAndAlertBelt = (params) => defHttp.post({ url: Api.monitorAndAlertBelt, params });
- export const getDataHome = (params) => defHttp.post({ url: Api.getDataHome, params });
- export const getStatus = () => defHttp.get({ url: Api.getStatus });
- export const changeStatus = (params) => defHttp.get({ url: Api.changeStatus, params });
- export const getDevice = (params) => defHttp.post({ url: Api.getDevice, params });
- export const getWarnResult = (params) => defHttp.post({ url: Api.getWarnResult, params });
- export const getWarnInfo = (params) => defHttp.post({ url: Api.getWarnInfo, params });
- export const getStaffInfo = (params) => defHttp.post({ url: Api.findStaffInfoBySystem, params });
- export const getLeatherInfo = (params) => defHttp.get({ url: Api.getLeatherInfo, params });
- export const getDeviceHistoryApi = (params) => defHttp.get({ url: Api.deviceHistory, params });
- export const getDeviceData = (params) => defHttp.post({ url: Api.getDeviceData, params });
- export const getDevicesetLog = (params) => defHttp.get({ url: Api.getDevicesetLog, params });
- export const systemList = (params) => defHttp.post({ url: Api.systemList, params });
- export const getAlarmList = (params) => defHttp.get({ url: Api.alarmList, params });
|