balancePress.api.ts 958 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { Modal } from 'ant-design-vue';
  3. enum Api {
  4. list = '/monitor/device',
  5. baseList = '/safety/ventanalyManageSystem/list',
  6. deviceList = '/safety/ventanalyManageSystem/linkdevicelist',
  7. submit = '/monitor/demo/avePress/add',
  8. subList= '/monitor/demo/avePress/list'
  9. }
  10. /**
  11. * 列表接口
  12. * @param params
  13. */
  14. export const list = (params) => defHttp.post({ url: Api.list, params });
  15. /**
  16. * 保存或者更新用户
  17. * @param params
  18. */
  19. export const getTableList = (params) => defHttp.get({ url: Api.baseList, params });
  20. /**
  21. * 关联设备列表接口
  22. * @param params
  23. */
  24. export const deviceList = (params) => defHttp.get({ url: Api.deviceList, params });
  25. /**
  26. * 监测参数提交
  27. * @param params
  28. */
  29. export const submit = (params) => defHttp.post({ url: Api.submit, params });
  30. /**
  31. * 监测参数查询列表
  32. * @param params
  33. */
  34. export const subList = () => defHttp.get({ url: Api.subList });