From 859f604f827fdeb6b0add5e2bfc78e0e763be207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 2 Apr 2025 14:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=9C=E6=96=B0=E8=B7=AF=E8=A1=97=E9=81=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3=E6=8A=A5=E9=94=99=E6=88=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HotlineComplaints/HotlineComplaints.js | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pages/statistics/modules/HotlineComplaints/HotlineComplaints.js b/pages/statistics/modules/HotlineComplaints/HotlineComplaints.js index 764ac03..ed6c746 100644 --- a/pages/statistics/modules/HotlineComplaints/HotlineComplaints.js +++ b/pages/statistics/modules/HotlineComplaints/HotlineComplaints.js @@ -70,32 +70,35 @@ Component({ devicePixelRatio: dpr // 像素比 }); canvas.setChart(chart); - + // let params = { + // "queryDateStart": formatTime(new Date(now.getFullYear(), now.getMonth() - 11)), + // "queryDateEnd":formatTime(new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59)) + // } let params = { - startTime: '', - endTime: '' + queryDateStart: '', + queryDateEnd: '' } let now = new Date(); if (this.data.typeCondition === 0) { - params.startTime = formatTime(new Date(now.getFullYear(), now.getMonth(), 1)) + params.queryDateStart = formatTime(new Date(now.getFullYear(), now.getMonth(), 1)) } if (this.data.typeCondition === 1) { - params.startTime = formatTime(new Date(now.getFullYear(), now.getMonth() - 1)); + params.queryDateStart = formatTime(new Date(now.getFullYear(), now.getMonth() - 1)); } if (this.data.typeCondition === 2) { - params.startTime = formatTime(new Date(now.getFullYear(), now.getMonth() - 2)); + params.queryDateStart = formatTime(new Date(now.getFullYear(), now.getMonth() - 2)); } if (this.data.typeCondition === 3) { - params.startTime = formatTime(new Date(now.getFullYear(), now.getMonth() - 5)); + params.queryDateStart = formatTime(new Date(now.getFullYear(), now.getMonth() - 5)); } if (this.data.typeCondition === 4) { - params.startTime = formatTime(new Date(now.getFullYear(), now.getMonth() - 11)); + params.queryDateStart = formatTime(new Date(now.getFullYear(), now.getMonth() - 11)); } if (this.data.typeCondition === 1) { - params.endTime = formatTime(new Date(now.getFullYear(), now.getMonth(), 0, 23, 59, 59)) + params.queryDateEnd = formatTime(new Date(now.getFullYear(), now.getMonth(), 0, 23, 59, 59)) } else { - params.endTime = formatTime(new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59)) + params.queryDateEnd = formatTime(new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59)) } dwdEventReport(params).then(({data}) => { console.log(this.tabValue,'this.tabValue')