chenyong
2025-05-22 03e09a08f4609cc61e64ca16129db5a3ccb85c1d
CodeManagement/BigScreenVue/src/views/indexs/center-bottom.vue
@@ -130,8 +130,9 @@
    },
    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];
@@ -149,7 +150,7 @@
      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 = {