comment.api.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. historicFlowNew = '/safety/actTask/historicFlowNew',
  4. getHighlightImgNew='/activiti/models/getHighlightImgNew',
  5. getTodoTask='/safety/actTask/getTodoTask',
  6. pass='/safety/actTask/pass',
  7. back='/safety/actTask/back',
  8. getCancelNew='/safety/actBusiness/cancelNew'
  9. }
  10. /**
  11. * 审批详情-审批历史
  12. * @param params
  13. */
  14. export const historicFlowNew = (params) => defHttp.get({ url: Api.historicFlowNew,params });
  15. /**
  16. * 审批详情-流程轨迹
  17. * @param params
  18. */
  19. export const getHighlightImgNew = (params) => defHttp.get({ url: Api.getHighlightImgNew,params,responseType: 'blob' });
  20. /**
  21. * 审批详情-控制撤回/驳回按钮显示
  22. * @param params
  23. */
  24. export const getTodoTask = (params) => defHttp.post({ url: Api.getTodoTask,params},{ joinParamsToUrl: true });
  25. /**
  26. * 审批详情-通过
  27. * @param params
  28. */
  29. export const pass = (params) => defHttp.post({ url: Api.pass,params},{ joinParamsToUrl: true });
  30. /**
  31. * 审批详情-驳回
  32. * @param params
  33. */
  34. export const back = (params) => defHttp.post({ url: Api.back,params},{ joinParamsToUrl: true });
  35. /**
  36. * 审批详情-撤回申请
  37. * @param params
  38. */
  39. export const getCancelNew = (params) => defHttp.post({ url: Api.getCancelNew,params},{ joinParamsToUrl: true });