feat(workflow): add Excel export for process and task lists
Support filtered and selected rows for process defs, pending/completed tasks, and my applications. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ee56dad875
commit
e72bcc67bc
6 files changed
+369
-4
No files matched your search
@@ -22,6 +22,14 @@ export function fetchProcessDefList(params?: {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchExportProcessDefs(data: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/admin/workflow/defs/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCreateProcessDef(data: {
|
||||
processCode: string
|
||||
processName: string
|
||||
@@ -144,6 +152,14 @@ export function fetchPendingTasks(params?: { page?: number; pageSize?: number; k
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchExportPendingTasks(data: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/admin/workflow/tasks/pending/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCompletedTasks(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
@@ -161,6 +177,14 @@ export function fetchCompletedTasks(params?: {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchExportCompletedTasks(data: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/admin/workflow/tasks/completed/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchApproveTask(taskId: string, data?: { commentText?: string }) {
|
||||
return request.post({
|
||||
url: `/web/admin/workflow/tasks/${taskId}/approve`,
|
||||
@@ -195,6 +219,14 @@ export function fetchMyInstances(params?: {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchExportMyInstances(data: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/admin/workflow/instances/my/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchBusinessAllTasks(businessType: string, businessId: string) {
|
||||
return request.get<Api.Workflow.BusinessAllTasks>({
|
||||
url: `/web/admin/workflow/instances/by-business/${businessType}/${businessId}`
|
||||
|
||||
Reference in new issue
Block a user