|
@ -228,13 +228,8 @@ const handleExport = async () => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
loadStart() |
|
|
loadStart() |
|
|
const excelTitle = ref(route.meta.title) |
|
|
const excelTitle = ref(route.meta.title) |
|
|
if(businessType.value = 'InitialContainerManage'){ |
|
|
const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) |
|
|
const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
|
|
}else { |
|
|
|
|
|
const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) |
|
|
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
|
|
} |
|
|
|
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
loadDone() |
|
|
loadDone() |
|
|