This commit is contained in:
zlwu committed 2026-08-22 09:08:05 +08:00
1 parent 833544def3
commit 16be6fa22d
204 files changed
+455089 -46491

No files matched your search

+8 -2
View File
@@ -81,10 +81,16 @@ export function executeChange(id: number | string) {
return request.put({ url: `${BASE}/execute/${String(id)}` })
}
export async function exportChange(query: ChangeQuery) {
export async function exportChange(data: Record<string, any> = {}) {
const { ids, columns, ...rest } = data
const body: Record<string, any> = {
...mapListQuery(rest as ChangeQuery),
...(ids ? { ids } : {}),
...(columns ? { columns } : {})
}
return request.post({
url: `${BASE}/export`,
data: mapListQuery(query),
data: body,
responseType: 'blob'
})
}