safetyList.api.ts 723 B

123456789101112131415161718
  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. }
  8. // 分站查询接口
  9. export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
  10. // 分站详细信息列表
  11. export const getList = (params) => defHttp.post({ url: Api.getList, params });
  12. //分站编辑
  13. export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
  14. //启动新设备
  15. export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });