From ba0bfc0ff330e42c65cf2fd72bf74f30eb9e6c96 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 25 Sep 2024 14:22:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E5=90=88=E6=A0=BC?= =?UTF-8?q?=E6=95=B0=E7=BB=9F=E8=AE=A1=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=A7=84=E8=8C=83=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/pass_num_gx.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/statistics/pass_num_gx.vue b/src/views/statistics/pass_num_gx.vue index 42636239..3ee842bb 100644 --- a/src/views/statistics/pass_num_gx.vue +++ b/src/views/statistics/pass_num_gx.vue @@ -1087,13 +1087,12 @@ export default { dateArr.push(item); } that.weekDateList = dateArr; - console.log('dateArr',dateArr); - that.query.start_date =first.getFullYear() +"-" +(first.getMonth() + 1) +"-" +first.getDate(); - that.query.end_date =last.getFullYear() +"-" +(last.getMonth() + 1) +"-" +last.getDate(); + // console.log('dateArr',dateArr); + that.query.start_date =first.toISOString().split('T')[0]; + that.query.end_date =last.toISOString().split('T')[0]; that.options.forEach((item,index)=>{ that.getData(item,index); }) - }, setChart(name, option = null) { // 根据name 渲染数据, option需填写,否则option为模拟数据