diff --git a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue index 472b6c0..24aecb6 100644 --- a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue +++ b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue @@ -46,21 +46,21 @@ :class="{ active: timeRange === 'daily' }" @click="setTimeRange('daily')" > - 每日 + 本日
- 每周 + 本周
- 近两周 + 上周
@@ -309,10 +309,10 @@ export default { // 本周(周一到周日)- 设置周起始日为周一 this.search.startTime = today.startOf("week", { weekStart: 1 }).toDate(); this.search.endTime = today.endOf("week", { weekStart: 1 }).toDate(); - } else if (type === "twoweekly") { - // 近两周(当前日期向前推14天) - this.search.startTime = today.subtract(14, 'day').startOf('day').toDate(); - this.search.endTime = today.endOf('day').toDate(); + } else if (type === "lastWeek") { + // 上周(上周周一到上周周日)- 设置周起始日为周一 + this.search.startTime = today.subtract(1, "week").startOf("week", { weekStart: 1 }).toDate(); + this.search.endTime = today.subtract(1, "week").endOf("week", { weekStart: 1 }).toDate(); } // 重新查询数据