From 15229cb6b8d26140e779efe250cceef7577c4f02 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Thu, 5 Mar 2026 18:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A0=94=E5=88=A4=E5=88=86=E6=9E=90=E6=8A=A5?= =?UTF-8?q?=E5=91=8A--=E4=BF=AE=E6=94=B9=E5=88=86=E6=9E=90=E7=BB=B4?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/work/Query.vue | 41 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/src/views/work/Query.vue b/src/views/work/Query.vue index 5dde9e3..85bf85b 100644 --- a/src/views/work/Query.vue +++ b/src/views/work/Query.vue @@ -186,21 +186,21 @@ /> - - - - - + + + + + + + + + + + + + + +
@@ -1227,9 +1227,9 @@ const reportGenerationFun = async ()=>{ // await feedback.confirm("请确定生成当前页面数据的报告"); debugger console.log(userStore.user.userName) - const reportDateRange = query.value.reportDateRange; - if (!reportDateRange){ - feedback.msgError("请选择对应报告时间") + const crtTime = query.value.crtTime; + if (!crtTime){ + feedback.msgError("请选择对应录入时间") return } const loading = ElLoading.service({ @@ -1239,10 +1239,7 @@ const reportGenerationFun = async ()=>{ }); try { // 发送请求到后端生成报告 - const body = { - beginTime: query.value.reportDateRange[0], - endTime: query.value.reportDateRange[1], - } + const body = JSON.parse(JSON.stringify(query.value)); const res = await generateReport(body); const blob = res.blob;