123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- historicFlowNew = '/safety/actTask/historicFlowNew',
- getHighlightImgNew='/activiti/models/getHighlightImgNew',
- getTodoTask='/safety/actTask/getTodoTask',
- pass='/safety/actTask/pass',
- back='/safety/actTask/back',
- getCancelNew='/safety/actBusiness/cancelNew'
- }
- /**
- * 审批详情-审批历史
- * @param params
- */
- export const historicFlowNew = (params) => defHttp.get({ url: Api.historicFlowNew,params });
- /**
- * 审批详情-流程轨迹
- * @param params
- */
- export const getHighlightImgNew = (params) => defHttp.get({ url: Api.getHighlightImgNew,params,responseType: 'blob' });
- /**
- * 审批详情-控制撤回/驳回按钮显示
- * @param params
- */
- export const getTodoTask = (params) => defHttp.post({ url: Api.getTodoTask,params},{ joinParamsToUrl: true });
- /**
- * 审批详情-通过
- * @param params
- */
- export const pass = (params) => defHttp.post({ url: Api.pass,params},{ joinParamsToUrl: true });
- /**
- * 审批详情-驳回
- * @param params
- */
- export const back = (params) => defHttp.post({ url: Api.back,params},{ joinParamsToUrl: true });
- /**
- * 审批详情-撤回申请
- * @param params
- */
- export const getCancelNew = (params) => defHttp.post({ url: Api.getCancelNew,params},{ joinParamsToUrl: true });
|