main.api.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { Modal } from 'ant-design-vue';
  3. enum Api {
  4. testWind = '/safety/ventanalyCommand/testwind',
  5. list = '/monitor/device',
  6. pathList = '/safety/ventanalyManageSystem/list',
  7. deviceList = '/safety/ventanalyWind/list',
  8. importExcel = '/sys/user/importExcel',
  9. exportXls = '/sys/user/exportXls',
  10. lineList = '/Vmodel/ventanalyModelFanChart/list',
  11. lineAdd = '/Vmodel/ventanalyModelFanChart/add',
  12. lineEdit = '/Vmodel/ventanalyModelFanChart/edit',
  13. pointMonitor = '/ventanaly-device/monitor/onedevice',
  14. }
  15. /**
  16. * 导出api
  17. * @param params
  18. */
  19. export const getExportUrl = Api.exportXls;
  20. /**
  21. * 导入api
  22. */
  23. export const getImportUrl = Api.importExcel;
  24. /**
  25. * 列表接口
  26. * @param params
  27. */
  28. export const list = (params) => defHttp.post({ url: Api.list, params });
  29. /**
  30. * 一键测风
  31. * @param params
  32. */
  33. export const testWind = (params) => defHttp.post({ url: Api.testWind, params });
  34. /**
  35. * 关键路线列表
  36. */
  37. export const pathList = (params) => defHttp.get({ url: Api.pathList, params });
  38. /**
  39. * 关键路线列表
  40. */
  41. export const deviceList = (params) => defHttp.get({ url: Api.deviceList, params });
  42. // 风机曲线方程
  43. export const lineList = (params) => defHttp.get({ url: Api.lineList, params });
  44. export const pointMonitor = (params) => defHttp.post({ url: Api.pointMonitor, params });