balancePress.api.ts 667 B

12345678910111213141516171819202122232425
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { Modal } from 'ant-design-vue';
  3. enum Api {
  4. list = '/ventanaly-device/monitor/device',
  5. baseList = '/safety/ventanalyManageSystem/list',
  6. deviceList = '/ventanaly-device/safety/ventanalyManageSystem/linkdevicelist',
  7. }
  8. /**
  9. * 列表接口
  10. * @param params
  11. */
  12. export const list = (params) => defHttp.post({ url: Api.list, params });
  13. /**
  14. * 保存或者更新用户
  15. * @param params
  16. */
  17. export const getTableList = (params) => defHttp.get({ url: Api.baseList, params });
  18. /**
  19. * 关联设备列表接口
  20. * @param params
  21. */
  22. export const deviceList = (params) => defHttp.get({ url: Api.deviceList, params });