fix:光芯合格数统计查询参数时间规范化

This commit is contained in:
shijing 2024-09-25 14:22:20 +08:00
parent 14a079ae0b
commit ba0bfc0ff3
1 changed files with 3 additions and 4 deletions

View File

@ -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 , optionoption