device.api.ts 696 B

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