|
|
@ -176,16 +176,14 @@ const handleDelete = async (id: number) => { |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
const handleExport = async () => { |
|
|
|
const checkData = await TransactionApi.checkExportTransaction(tableObject.params) |
|
|
|
console.log('checkData',checkData) |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
loadStart() |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
|
|
|
|
const checkData = await TransactionApi.checkExportTransaction(tableObject.params) |
|
|
|
console.log('checkData',checkData) |
|
|
|
|
|
|
|
const data = await TransactionApi.exportTransaction(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|