safetyList.api.ts 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. subStationList = '/safety/ventanalySubStation/alllist',
  4. getList = '/safety/ventanalyDeviceInfo/getDeviceListBySubId',
  5. getEdit = '/safety/ventanalySubStation/edit',
  6. runDeviceMonitor = '/safety/ventanalyDeviceInfo/runDeviceMonitor',
  7. update158DevName = '/safety/ventanalyDeviceInfo/update158DevName',
  8. updateDebugStatus = '/safety/ventanalyDeviceInfo/updateDebugStatus',
  9. get158StationData = '/safety/ventanalyDeviceInfo/get158StationData',
  10. set158StationData = '/safety/ventanalyDeviceInfo/set158StationData',
  11. get158StationDevices = '/safety/ventanalyDeviceInfo/get158StationDevices',
  12. set158StationRead = '/safety/ventanalyDeviceInfo/set158StationRead',
  13. remove158Substation = '/safety/ventanalyDeviceInfo/remove158Substation', //删除158分站及其关联传感器
  14. get158SetLog = '/safety/ventanalySubStation/get158SetLog', //操作记录
  15. remove158Device = '/safety/ventanalyDeviceInfo/remove158Device', //删除158分站传感器
  16. set158StationDevicesRead = '/safety/ventanalyDeviceInfo/set158StationDevicesRead',
  17. update130DevName = '/safety/ventanalyDeviceInfo/update130DevName',
  18. get130StationData = '/safety/ventanalyDeviceInfo/get130StationData',
  19. set130StationData = '/safety/ventanalyDeviceInfo/set130StationData',
  20. get130StationDevices = '/safety/ventanalyDeviceInfo/get130StationDevices',
  21. set130StationRead = '/safety/ventanalyDeviceInfo/set130StationRead',
  22. remove130Substation = '/safety/ventanalyDeviceInfo/remove130Substation', //删除130分站及其关联传感器
  23. get130SetLog = '/safety/ventanalySubStation/get130SetLog', //操作记录
  24. remove130Device = '/safety/ventanalyDeviceInfo/remove130Device', //删除130分站传感器
  25. set130StationDevicesRead = '/safety/ventanalyDeviceInfo/set130StationDevicesRead',
  26. get130List = '/safety/ventanalyDeviceInfo/get130DeviceListBySubId',
  27. get235List = '/safety/ventanalyDeviceInfo/getDeviceListBy235SubId',
  28. }
  29. // 分站查询接口
  30. export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
  31. // 分站详细信息列表
  32. export const getList = (params) => defHttp.post({ url: Api.getList, params });
  33. //分站全部列表
  34. export const getListAll = () => defHttp.post({ url: Api.getList });
  35. //分站编辑
  36. export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
  37. //启动新设备
  38. export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });
  39. //编辑设备名称
  40. export const update158DevName = (params) => defHttp.post({ url: Api.update158DevName, params });
  41. // 分站设备调试
  42. export const updateDebugStatus = (params) => defHttp.post({ url: Api.updateDebugStatus, params }, { joinParamsToUrl: true });
  43. // 分站详情列表
  44. export const get158StationData = () => defHttp.post({ url: Api.get158StationData });
  45. // 分站详情下发
  46. export const set158StationData = (params) => defHttp.post({ url: Api.set158StationData, params }, { joinParamsToUrl: true });
  47. // 根据分站ID获取分站下设备
  48. export const get158StationDevices = (params) => defHttp.post({ url: Api.get158StationDevices, params }, { joinParamsToUrl: true });
  49. //读取分站设备数据
  50. export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead, params }, { joinParamsToUrl: true });
  51. //删除158分站及其关联传感器
  52. export const remove158Substation = (params) => defHttp.post({ url: Api.remove158Substation, params }, { joinParamsToUrl: true });
  53. //158分站操作记录
  54. export const get158SetLog = (params) => defHttp.post({ url: Api.get158SetLog, params }, { joinParamsToUrl: true });
  55. //删除158分站传感器
  56. export const remove158Device = (params) => defHttp.post({ url: Api.remove158Device, params }, { joinParamsToUrl: true });
  57. //158监测详情读取列表
  58. export const set158StationDevicesRead = (params) => defHttp.post({ url: Api.set158StationDevicesRead, params }, { joinParamsToUrl: true });
  59. //编辑设备名称
  60. export const update130DevName = (params) => defHttp.post({ url: Api.update130DevName, params });
  61. // 分站详情列表
  62. export const get130StationData = () => defHttp.post({ url: Api.get130StationData });
  63. // 分站详情下发
  64. export const set130StationData = (params) => defHttp.post({ url: Api.set130StationData, params }, { joinParamsToUrl: true });
  65. // 根据分站ID获取分站下设备
  66. export const get130StationDevices = (params) => defHttp.post({ url: Api.get130StationDevices, params }, { joinParamsToUrl: true });
  67. //读取分站设备数据
  68. export const set130StationRead = (params) => defHttp.post({ url: Api.set130StationRead, params }, { joinParamsToUrl: true });
  69. //删除130分站及其关联传感器
  70. export const remove130Substation = (params) => defHttp.post({ url: Api.remove158Substation, params }, { joinParamsToUrl: true });
  71. //130分站操作记录
  72. export const get130SetLog = (params) => defHttp.post({ url: Api.get130SetLog, params }, { joinParamsToUrl: true });
  73. //删除130分站传感器
  74. export const remove130Device = (params) => defHttp.post({ url: Api.remove158Device, params }, { joinParamsToUrl: true });
  75. //130监测详情读取列表
  76. export const set130StationDevicesRead = (params) => defHttp.post({ url: Api.set130StationDevicesRead, params }, { joinParamsToUrl: true });
  77. // 130分站详细信息列表
  78. export const get130List = (params?) => defHttp.post({ url: Api.get130List, params });
  79. // 235分站详细信息列表
  80. export const get235List = (params?) => defHttp.post({ url: Api.get235List, params });