From 1ddafc798d535b8d5386cc39a3d3c124f7901eb6 Mon Sep 17 00:00:00 2001 From: pengwei Date: Thu, 31 Jul 2025 17:10:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=BA=E5=91=98=E6=8A=BD=E6=A3=80excel?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=A2=AB=E6=8A=BD=E6=A3=80=E4=BA=BA=E5=91=98?= =?UTF-8?q?=EF=BC=88=E6=A0=B9=E6=8D=AEidCode=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mobileSupervise/Sampling.vue | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/views/mobileSupervise/Sampling.vue b/src/views/mobileSupervise/Sampling.vue index a1a98ca..5a4b35d 100644 --- a/src/views/mobileSupervise/Sampling.vue +++ b/src/views/mobileSupervise/Sampling.vue @@ -213,24 +213,13 @@ const handleSumbit =async ()=>{ * */ const handleExport = async ()=>{ let data = Object.assign({},editData.value) - console.log('data',data) - delete data.samplingPolices - delete data.startTime - delete data.endTime - if(!data.samplingTime){ - delete data.samplingTime - } - if(data.samplingNumber == null){ - delete data.samplingNumber + if(data.samplingPolices){ + let obj = { + policeVos: data.samplingPolices.map(s=>s.idCode).join(",") + } + window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(obj).toString()) } - if(data.samplingObjectList){ - data.orgStr = - data.samplingObjectList.map(s=>s.deptId).join(",") - delete data.samplingObjectList - }else{ - } - window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(data).toString()) } const handleChange =(val,key)=>{