safetyList.api.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  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. }
  14. // 分站查询接口
  15. export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
  16. // 分站详细信息列表
  17. export const getList = (params) => defHttp.post({ url: Api.getList, params });
  18. //分站编辑
  19. export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
  20. //启动新设备
  21. export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });
  22. //编辑设备名称
  23. export const update158DevName = (params) => defHttp.post({ url: Api.update158DevName, params });
  24. // 分站设备调试
  25. export const updateDebugStatus = (params) => defHttp.post({ url: Api.updateDebugStatus,params },{ joinParamsToUrl: true });
  26. // 分站详情列表
  27. export const get158StationData = () => defHttp.post({ url: Api.get158StationData });
  28. // 分站详情下发
  29. export const set158StationData = (params) => defHttp.post({ url: Api.set158StationData,params },{ joinParamsToUrl: true });
  30. // 根据分站ID获取分站下设备
  31. export const get158StationDevices = (params) => defHttp.post({ url: Api.get158StationDevices,params },{ joinParamsToUrl: true });
  32. //读取分站设备数据
  33. export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead,params },{ joinParamsToUrl: true });