feat(system): add Excel export for operlog and dict type lists
Wire ListExportDropdown with filtered/selected backend xlsx export. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
1053e24896
commit
b3b6ec187a
8 files changed
+228
-3
No files matched your search
@@ -223,6 +223,14 @@ export function fetchDictTypeList(params?: { page?: number; pageSize?: number; k
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchExportDictTypes(data: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/admin/dict-types/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCreateDictType(data: {
|
||||
dictName: string
|
||||
dictType: string
|
||||
|
||||
@@ -5,6 +5,15 @@ export function list(data?: Record<string, any>) {
|
||||
return request.post({ url: '/web/monitor/operlog/list', data })
|
||||
}
|
||||
|
||||
/** 操作日志导出 */
|
||||
export function exportOperLog(data?: Record<string, any>) {
|
||||
return request.post({
|
||||
url: '/web/monitor/operlog/export',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/** 操作日志详情 */
|
||||
export function getDetail(data: { id: string }) {
|
||||
return request.post({ url: '/web/monitor/operlog/detail', data })
|
||||
|
||||
Reference in new issue
Block a user