comment.api.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. getDevice = '/monitor/device', //实时数据
  4. edit = '/safety/ventanalyDeviceInfo/edit',
  5. list = '/safety/ventanalyDeviceInfo/list',
  6. input = '/safety/ventanalyDeviceInfo/input',
  7. sysList = '/safety/ventanalyManageSystem/list',
  8. sysInput = '/safety/ventanalyManageSystem/input',
  9. getInfo = '/safety/reportLocalData/queryReportData',
  10. getFileList = '/safety/reportLocalData/list',
  11. getGasDeviceInfo = '/monitor/getGasDeviceInfo',
  12. listdays = '/safety/ventanalyMonitorData/listdays',
  13. getHistoryData = '/monitor/history/getHistoryData',
  14. }
  15. /**
  16. * 列表接口
  17. * @param params
  18. */
  19. export const list = (params) => defHttp.get({ url: Api.list, params });
  20. /**
  21. * 保存或者更新用户
  22. * @param params
  23. */
  24. export const updateDeviceInfo = (params) => defHttp.put({ url: Api.edit, params });
  25. export const updateReportInfo = (params) => defHttp.put({ url: Api.input, params });
  26. export const sysList = (params) => defHttp.get({ url: Api.sysList, params });
  27. export const sysInput = (params) => defHttp.put({ url: Api.sysInput, params });
  28. export const getInfoList = (params) => defHttp.post({ url: Api.getInfo, params });
  29. export const getAllFileList = (params) => defHttp.get({ url: Api.getFileList, params });
  30. export const getGasDeviceInfo = (params) => defHttp.post({ url: Api.getGasDeviceInfo, params });
  31. export const getHistoryData = (params) => defHttp.post({ url: Api.getHistoryData, params });
  32. export const listdays = (params) => defHttp.get({ url: Api.listdays, params });
  33. export const getDevice = (params) => defHttp.post({ url: Api.getDevice, params });