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