From 292351b0efbf58e0208c179126390f40b9fb996d Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Fri, 24 Apr 2026 13:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86-=E7=8E=AF?= =?UTF-8?q?=E4=BF=9D=E7=AE=A1=E7=90=86-=E5=BA=9F=E6=B0=B4=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E5=BA=9F=E6=B0=B4=E5=8C=96=E9=AA=8C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95-=E5=8C=96=E9=AA=8C=E6=97=B6=E9=97=B4-=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wastewater/components/testRecord.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/safetyManagement/wastewater/components/testRecord.vue b/src/views/safetyManagement/wastewater/components/testRecord.vue index 5867f0c3..9ed29c6f 100644 --- a/src/views/safetyManagement/wastewater/components/testRecord.vue +++ b/src/views/safetyManagement/wastewater/components/testRecord.vue @@ -137,12 +137,12 @@ export default { editDisplay: false, display: false, span: 12, - type: 'datetime', + type: 'date', searchRange: true, startPlaceholder: '开始时间', endPlaceholder: '结束时间', - format: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'YYYY-MM-DD HH:mm:ss', + format: 'YYYY-MM-DD', + valueFormat: 'YYYY-MM-DD', }, { @@ -393,7 +393,12 @@ export default { const requestParams = Object.assign({}, params, this.query); // 后端要字符串类型 if (requestParams.queryDosingTime && Array.isArray(requestParams.queryDosingTime)) { - requestParams.queryDosingTime = requestParams.queryDosingTime.join(','); + // 处理开始时间 + const start = requestParams.queryDosingTime[0] + ' 00:00:00'; + // 处理结束时间 + const end = requestParams.queryDosingTime[1] + ' 23:59:59'; + // 合并开始时间和结束时间 + requestParams.queryDosingTime = [start, end].join(','); } getList(page.currentPage, page.pageSize, requestParams) .then(res => {