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:
1 parent
82d8cb7f64
commit
1053e24896
4 files changed
+124
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user