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为模拟数据