feat: 流程撤回到上一节点

This commit is contained in:
GAOANG
2024-08-08 16:58:37 +08:00
parent a8fb7f5f08
commit ccab1c1e59
3 changed files with 142 additions and 17 deletions

View File

@ -37,6 +37,7 @@ enum Api {
SetSign = '/workflow/execute/set-sign',
Withdraw = '/workflow/execute/my-task/withdraw',
SetAssignee = '/workflow/execute/set-assignee',
withdrawNode = '/workflow/execute/withdraw-node',
}
/**
@ -422,3 +423,19 @@ export async function postSetAssignee(taskId, assignees, mode: ErrorMessageMode
},
);
}
/**
* @description: 查询撤回节点
*/
export async function getDrawNode(processId, mode: ErrorMessageMode = 'modal') {
return defHttp.get<boolean>(
{
url: Api.withdrawNode,
params: { processId },
},
{
errorMessageMode: mode,
},
);
}