feat(system): add Excel export for leave request list

Support filtered and selected leave rows via backend export and ListExportDropdown.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-21 17:27:02 +08:00
1 parent 82d8cb7f64
commit 1053e24896
4 files changed
+124 -1

No files matched your search

+8
View File
@@ -18,6 +18,14 @@ export function fetchLeaveList(params?: {
})
}
export function fetchExportLeaves(data: Record<string, any>) {
return request.post({
url: '/web/admin/leave/export',
data,
responseType: 'blob'
})
}
export function fetchCreateLeave(data: {
leaveType: string
startDate: string