|
|
@ -220,15 +220,8 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
// 判断是筛选后的列表数据 |
|
|
|
if (tableObject.params.isSearch) { |
|
|
|
// 调用筛选后的导出接口 后端未提供 参数传 tableObject.params 20231109 |
|
|
|
const data = await ItempackagingApi.exportItempackaging(setSearchParams) |
|
|
|
const data = await ItempackagingApi.exportItempackaging(tableObject.params) |
|
|
|
download.excel(data, '物品包装信息.xls') |
|
|
|
} else { |
|
|
|
const data = await ItempackagingApi.exportItempackaging(setSearchParams) |
|
|
|
download.excel(data, '物品包装信息 .xls') |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|