From 77ac8d07f4555fd55131fa0480158d0e8dd6e62d Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Fri, 1 Dec 2023 16:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=A8=A1=E7=89=88=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detection/records/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 {