device.api.ts 766 B

123456789101112131415161718192021
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. deviceTypeList = '/safety/ventanalyDeviceInfo/DeviceKind/queryByCatagory',
  4. deviceList = '/dataCenter/compute/deviceData/getDeviceAll',
  5. devMonitorList = '/dataCenter/compute/deviceData/getDeviceMonitorInfo',
  6. }
  7. export const getDeviceTypeList = (params) => defHttp.get({ url: Api.deviceTypeList, params });
  8. //根据设备类型获取设备列表
  9. // export const getDeviceListByType = (params) => defHttp.post({ url: Api.deviceList, params });
  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. });