safetyList.api.ts 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. }
  28. // 分站查询接口
  29. export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
  30. // 分站详细信息列表
  31. export const getList = (params) => defHttp.post({ url: Api.getList, params });
  32. //分站全部列表
  33. export const getListAll = () => defHttp.post({ url: Api.getList });
  34. //分站编辑
  35. export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
  36. //启动新设备
  37. export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });
  38. //编辑设备名称
  39. export const update158DevName = (params) => defHttp.post({ url: Api.update158DevName, params });
  40. // 分站设备调试
  41. export const updateDebugStatus = (params) => defHttp.post({ url: Api.updateDebugStatus, params }, { joinParamsToUrl: true });
  42. // 分站详情列表
  43. export const get158StationData = () => defHttp.post({ url: Api.get158StationData });
  44. // 分站详情下发
  45. export const set158StationData = (params) => defHttp.post({ url: Api.set158StationData, params }, { joinParamsToUrl: true });
  46. // 根据分站ID获取分站下设备
  47. export const get158StationDevices = (params) => defHttp.post({ url: Api.get158StationDevices, params }, { joinParamsToUrl: true });
  48. //读取分站设备数据
  49. export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead, params }, { joinParamsToUrl: true });
  50. //删除158分站及其关联传感器
  51. export const remove158Substation = (params) => defHttp.post({ url: Api.remove158Substation, params }, { joinParamsToUrl: true });
  52. //158分站操作记录
  53. export const get158SetLog = (params) => defHttp.post({ url: Api.get158SetLog, params }, { joinParamsToUrl: true });
  54. //删除158分站传感器
  55. export const remove158Device = (params) => defHttp.post({ url: Api.remove158Device, params },{ joinParamsToUrl: true });
  56. //158监测详情读取列表
  57. export const set158StationDevicesRead = (params) => defHttp.post({ url: Api.set158StationDevicesRead, params }, { joinParamsToUrl: true });
  58. //编辑设备名称
  59. export const update130DevName = (params) => defHttp.post({ url: Api.update130DevName, params });
  60. // 分站详情列表
  61. export const get130StationData = () => defHttp.post({ url: Api.get130StationData });
  62. // 分站详情下发
  63. export const set130StationData = (params) => defHttp.post({ url: Api.set130StationData, params }, { joinParamsToUrl: true });
  64. // 根据分站ID获取分站下设备
  65. export const get130StationDevices = (params) => defHttp.post({ url: Api.get130StationDevices, params }, { joinParamsToUrl: true });
  66. //读取分站设备数据
  67. export const set130StationRead = (params) => defHttp.post({ url: Api.set130StationRead, params }, { joinParamsToUrl: true });
  68. //删除130分站及其关联传感器
  69. export const remove130Substation = (params) => defHttp.post({ url: Api.remove130Substation, params }, { joinParamsToUrl: true });
  70. //130分站操作记录
  71. export const get130SetLog = (params) => defHttp.post({ url: Api.get130SetLog, params }, { joinParamsToUrl: true });
  72. //删除130分站传感器
  73. export const remove130Device = (params) => defHttp.post({ url: Api.remove130Device, params });
  74. //130监测详情读取列表
  75. export const set130StationDevicesRead = (params) => defHttp.post({ url: Api.set130StationDevicesRead, params }, { joinParamsToUrl: true });
  76. // 分站详细信息列表
  77. export const get130List = (params?) => defHttp.post({ url: Api.get130List, params });