feat: 支持回退按钮

This commit is contained in:
kehaiyou
2023-09-23 14:52:40 +08:00
parent 2a58e3f691
commit de79e79d91
5 changed files with 160 additions and 2 deletions

View File

@ -41,3 +41,19 @@ export const getTaskListByProcessInstanceId = async (processInstanceId) => {
export const exportTask = async (params) => {
return await request.download({ url: '/bpm/task/export', params })
}
/**
* 获取所有可回退的节点
* @param params
*/
export const getReturnList = async (params) => {
return await request.get({ url: '/bpm/task/get-return-list', params })
}
/**
* 确认回退
* @param params
*/
export const okRollback = async (data) => {
return await request.put({ url: '/bpm/task/rollback', data })
}