device.api.ts 669 B

123456789101112131415161718192021
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. subStationList = '/safety/ventanalySubStation/alllist',
  4. deviceList = '/dataCenter/compute/deviceData/getDeviceAll',
  5. devMonitorList = '/dataCenter/compute/deviceData/getDeviceMonitorInfo',
  6. }
  7. // 分站查询接口
  8. export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
  9. //根据设备类型获取设备列表
  10. export const getDeviceListByType = (params) =>
  11. defHttp.post({
  12. url: Api.deviceList,
  13. params,
  14. });
  15. //根据设备id获取设备监控数据
  16. export const getDevMonitorListById = (params) =>
  17. defHttp.post({
  18. url: Api.devMonitorList,
  19. params,
  20. });