|
@ -223,7 +223,16 @@ const handleExport = async () => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
const data = await RecordsApi.exportRecords(setSearchParams) |
|
|
let params = []; |
|
|
|
|
|
let ids = tableid.value.selections; |
|
|
|
|
|
if(ids.length > 0){ |
|
|
|
|
|
for(let i = 0; i < ids.length; i++){ |
|
|
|
|
|
params[i] = ids[i].id; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
tableObject.params.ids = params; |
|
|
|
|
|
console.info("tableObject.params",tableObject.params) |
|
|
|
|
|
const data = await RecordsApi.exportRecords(tableObject.params); |
|
|
download.excel(data, '检测记录数据主.xls') |
|
|
download.excel(data, '检测记录数据主.xls') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|