feat(system): add Excel export for dept and menu tree lists

Export flattened filtered or selected rows via backend xlsx and ListExportDropdown.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-21 17:31:10 +08:00
1 parent b3b6ec187a
commit ee56dad875
4 files changed
+170 -1

No files matched your search

+16
View File
@@ -346,6 +346,14 @@ export function fetchDeptTree(params?: { keyword?: string }) {
})
}
export function fetchExportDepts(data: Record<string, any>) {
return request.post({
url: '/web/admin/depts/export',
data,
responseType: 'blob'
})
}
export function fetchCreateDept(data: {
parentId?: string
deptName: string
@@ -505,6 +513,14 @@ export function fetchMenuTree(params?: { keyword?: string }) {
})
}
export function fetchExportMenus(data: Record<string, any>) {
return request.post({
url: '/web/admin/menus/export',
data,
responseType: 'blob'
})
}
export function fetchCreateMenu(data: {
menuName: string
parentId?: string