configurable.api.ts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { defHttp } from '/@/utils/http/axios';
  2. import _ from 'lodash';
  3. enum Api {
  4. monitorAndAlertBelt = '/ventanaly-device/monitor/disaster/monitorAndAlertBelt',
  5. // 首页数据获取
  6. getDataHome = '/ventanaly-device/monitor/disaster/threeLevelFireHomepage',
  7. getSystem = '/modelreq/monitor/system',
  8. getDevice = '/modelreq/monitor/device',
  9. //车辆干扰排除状态查询
  10. getStatus = '/ventanaly-device/safety/deviceVehiclePass/switch/status',
  11. // 车辆干扰排除控制
  12. changeStatus = '/ventanaly-device/safety/deviceVehiclePass/switch/change',
  13. // 查询预警结果
  14. getWarnResult = '/ventanaly-device/monitor/disaster/beltAlertRecords',
  15. // 预警指标信息获取
  16. getWarnInfo = '/ventanaly-device/monitor/disaster/findAlarmsBySystemAndMonitorType',
  17. // 获取人员定位信息
  18. findStaffInfoBySystem = '/ventanaly-device/monitor/disaster/findStaffInfoBySystem',
  19. // 获取皮带巷信息
  20. getLeatherInfo = '/safety/ventanalyManageSystem/list',
  21. // 设备历史
  22. deviceHistory = '/safety/ventanalyMonitorData/listdays',
  23. // 获取皮带巷下设备
  24. getDeviceData = '/ventanaly-device/safety/managesysAlarmInfo/getDevicesInfoBySysId',
  25. // 操作历史
  26. getDevicesetLog = '/safety/ventanalyDevicesetLog/list',
  27. // 获取皮带巷下设备类型
  28. systemList = '/monitor/device',
  29. // 获取预警历史
  30. alarmList = '/safety/managesysAutoLog/list',
  31. }
  32. export const getSystem = (params) => defHttp.post({ url: Api.getSystem, params });
  33. export const getMonitorAndAlertBelt = (params) => defHttp.post({ url: Api.monitorAndAlertBelt, params });
  34. export const getDataHome = (params) => defHttp.post({ url: Api.getDataHome, params });
  35. export const getStatus = () => defHttp.get({ url: Api.getStatus });
  36. export const changeStatus = (params) => defHttp.get({ url: Api.changeStatus, params });
  37. export const getDevice = (params) => defHttp.post({ url: Api.getDevice, params });
  38. export const getWarnResult = (params) => defHttp.post({ url: Api.getWarnResult, params });
  39. export const getWarnInfo = (params) => defHttp.post({ url: Api.getWarnInfo, params });
  40. export const getStaffInfo = (params) => defHttp.post({ url: Api.findStaffInfoBySystem, params });
  41. export const getLeatherInfo = (params) => defHttp.get({ url: Api.getLeatherInfo, params });
  42. export const getDeviceHistoryApi = (params) => defHttp.get({ url: Api.deviceHistory, params });
  43. export const getDeviceData = (params) => defHttp.post({ url: Api.getDeviceData, params });
  44. export const getDevicesetLog = (params) => defHttp.get({ url: Api.getDevicesetLog, params });
  45. export const systemList = (params) => defHttp.post({ url: Api.systemList, params });
  46. export const getAlarmList = (params) => defHttp.get({ url: Api.alarmList, params });