diff --git a/src/views/detection/records/index.vue b/src/views/detection/records/index.vue index d5289d2..430800d 100644 --- a/src/views/detection/records/index.vue +++ b/src/views/detection/records/index.vue @@ -223,7 +223,16 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 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') } catch { } finally {