From e98ee610a138a72e1eac291d969ce8557c3d0c44 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 30 Sep 2026 09:06:22 +0800 Subject: [PATCH] =?UTF-8?q?style(=E7=BB=9F=E8=AE=A1):=20=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=AE=B5=E9=BB=98=E8=AE=A4=E6=94=B9=E7=9C=8B=E4=B8=80=E8=8A=82?= =?UTF-8?q?=E8=AF=BE=EF=BC=9B=E3=80=8C=E4=B8=80=E8=8A=82=E8=AF=BE=E3=80=8D?= =?UTF-8?q?=E3=80=8C=E4=B8=A4=E8=8A=82=E8=AF=BE=E3=80=8D=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=86=99=E3=80=8C1=20=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E5=86=85=E3=80=8D=EF=BC=8C=E6=97=81=E8=BE=B9=E6=9C=AC=E6=9D=A5?= =?UTF-8?q?=E5=B0=B1=E5=86=99=E7=9D=80=E5=87=A0=E7=82=B9=E5=88=B0=E5=87=A0?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/statistics/components/StatisticsView.vue | 2 +- apps/web/src/oj/statistics/period.ts | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web/src/oj/statistics/components/StatisticsView.vue b/apps/web/src/oj/statistics/components/StatisticsView.vue index 74f26dd..cc677d5 100644 --- a/apps/web/src/oj/statistics/components/StatisticsView.vue +++ b/apps/web/src/oj/statistics/components/StatisticsView.vue @@ -27,7 +27,7 @@ import StatItem from "./StatItem.vue" * 进来的,条件放在地址栏里能刷新、能转发)。 * * 分工:**课堂看板管这节课,这里管回头看**(用户定的)。所以不自动刷新、没有 - * 投影用的大字名单和请假隐藏 —— 那些在看板上。课堂统计一般看一两节课,时间段默认「两节课」。 + * 投影用的大字名单和请假隐藏 —— 那些在看板上。课堂统计一般看一两节课,时间段默认「一节课」。 * * 查询条件都是 v-model:页面接地址栏,弹框接提交列表那边的一份本地状态。 */ diff --git a/apps/web/src/oj/statistics/period.ts b/apps/web/src/oj/statistics/period.ts index 7df08a4..3619650 100644 --- a/apps/web/src/oj/statistics/period.ts +++ b/apps/web/src/oj/statistics/period.ts @@ -7,12 +7,13 @@ const DAY = 86_400_000 /** * 统计页的时间段。课堂统计一般看一两节课(用户原话),所以这两档在最前面、 - * 默认「两节课」;后面几档是回头看。原来弹框里的 10 / 20 / 30 分钟是上课盯人用的, + * 默认「一节课」(用户定的);后面几档是回头看。名字后面不写「1 小时内」:选框旁边 + * 本来就写着具体几点到几点。原来弹框里的 10 / 20 / 30 分钟是上课盯人用的, * 那件事现在归课堂看板。 */ export const PERIOD_OPTIONS = [ - { label: "这节课(1 小时内)", value: "1h" }, - { label: "两节课(2 小时内)", value: "2h" }, + { label: "一节课", value: "1h" }, + { label: "两节课", value: "2h" }, { label: "今天", value: "today" }, { label: "最近 7 天", value: "7d" }, { label: "最近 30 天", value: "30d" }, @@ -22,7 +23,7 @@ export const PERIOD_OPTIONS = [ ] as const export type Period = (typeof PERIOD_OPTIONS)[number]["value"] -export const DEFAULT_PERIOD: Period = "2h" +export const DEFAULT_PERIOD: Period = "1h" /** 东八区某天 0 点对应的 UTC 时刻 */ function dayStartOf(year: number, month: number, day: number) {