| | |
| | | }, |
| | | async getData() { |
| | | const rep = await Getproductionvolume(); |
| | | |
| | | var rep1=rep.filter(it=>it.taskType==200&&it.roadway.includes("JZ")) |
| | | console.log(rep) |
| | | var rep1=rep.filter(it=>it.taskType==100&&it.roadway.includes("CW")) |
| | | |
| | | // 分组并排序 |
| | | const groupedData = rep1.reduce((acc, item) => { |
| | | const dateKey = item.createDate.split(' ')[0]; |
| | |
| | | const date = new Date(group.date); |
| | | return `${date.getMonth() + 1}/${date.getDate()}`; |
| | | }); |
| | | console.log(sortedGroups) |
| | | |
| | | const pcsCounts = sortedGroups.map(group => group.tasks.length); |
| | | |
| | | this.options = { |