From 1b8583776f9a5b1f5c3ab39f90d08d3c5a98d62a Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Sun, 2 Nov 2025 14:25:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=91=A8=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E4=BB=8E=E5=91=A8?= =?UTF-8?q?=E6=97=A5=E5=BC=80=E5=A7=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将周统计的时间范围从默认的周日开始改为从周一开始,以符合业务需求 --- .../CarouselBoard/components/QualityStatisticsCard.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue index ec15cc4..8269b01 100644 --- a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue +++ b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue @@ -289,9 +289,9 @@ export default { this.search.startTime = today.startOf("day").toDate(); this.search.endTime = today.endOf("day").toDate(); } else if (type === "weekly") { - // 本周(周一到周日) - this.search.startTime = today.startOf("week").toDate(); - this.search.endTime = today.endOf("week").toDate(); + // 本周(周一到周日)- 设置周起始日为周一 + this.search.startTime = today.startOf("week", { weekStart: 1 }).toDate(); + this.search.endTime = today.endOf("week", { weekStart: 1 }).toDate(); } // 重新查询数据