|
|
@ -21,12 +21,12 @@ const exportAuditHandle = (data: Log.LogItem[]) => { |
|
|
|
const ids = data.map(item => item.id) |
|
|
|
exportAudit(ids.join(',')).then((res) => { |
|
|
|
FtMessage.success('导出成功') |
|
|
|
const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) |
|
|
|
const link = document.createElement('a') |
|
|
|
link.href = URL.createObjectURL(blob) |
|
|
|
link.download = '审计.xlsx' |
|
|
|
link.click() |
|
|
|
URL.revokeObjectURL(link.href) |
|
|
|
// const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) |
|
|
|
// const link = document.createElement('a') |
|
|
|
// link.href = URL.createObjectURL(blob) |
|
|
|
// link.download = '审计.xlsx' |
|
|
|
// link.click() |
|
|
|
// URL.revokeObjectURL(link.href) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|