feat(web-admin): add OA task transfer action on instance detail
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
35c60f95e8
commit
5350db1dc4
2 files changed
+141
-27
No files matched your search
@@ -288,6 +288,17 @@ export function fetchAddSignOaTask(
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchTransferOaTask(
|
||||
taskId: string,
|
||||
data: { targetUserId: string; comment?: string }
|
||||
) {
|
||||
return request.post({
|
||||
url: `${BASE}/tasks/${taskId}/transfer`,
|
||||
data,
|
||||
showSuccessMessage: true
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchWithdrawOaInstance(instanceId: string) {
|
||||
return request.post({
|
||||
url: `${BASE}/instances/${instanceId}/withdraw`,
|
||||
|
||||
Reference in new issue
Block a user