ShiftPerformance.api.ts 560 B

12345678910111213141516171819202122
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. list = '/billetHotsend/billetHotsendChangeShift/list',
  4. edit = '/billetHotsend/billetHotsendChangeShift/edit',
  5. exportXls = '/billetHotsend/billetHotsendChangeShift/exportXls',
  6. }
  7. /**
  8. * 导出api
  9. * @param params
  10. */
  11. export const getExportUrl = Api.exportXls;
  12. /**
  13. * 列表接口
  14. * @param params
  15. */
  16. export const list = (params) => defHttp.get({ url: Api.list, params });
  17. // 编辑
  18. export const edit = (params) => {
  19. return defHttp.put({ url: Api.edit, params }, { joinParamsToUrl: true });
  20. };