提交
This commit is contained in:
1 parent
833544def3
commit
16be6fa22d
204 files changed
+455089
-46491
No files matched your search
@@ -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'
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user