From 59fcee72bb6490f6d76a041286b6fd065b00b7b5 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 18 Jun 2026 04:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E8=AE=B0=E7=BC=BA=E5=A4=B1=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=B0=8F=E7=BB=93=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/static/app.js | 3 ++- app/app/static/index.html | 2 +- app/app/static/styles.css | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app/app/static/app.js b/app/app/static/app.js index 272fbed..4f4af5c 100644 --- a/app/app/static/app.js +++ b/app/app/static/app.js @@ -202,10 +202,11 @@ function renderRecordRow(row) { const corrected = correctedRecords.get(key); const displayRow = getDisplayRecord(row); const correctedClass = corrected ? " corrected-row" : ""; + const summaryClass = Number(row.summary_count || 0) > 0 ? "" : " missing-summary"; const actionLabel = corrected ? "编辑" : "纠错"; const badge = corrected ? '已修改' : ""; const summaryExpanded = expandedSummaryRecords.has(key); - return ` + return ` ${escapeHtml(displayRow.date)} ${escapeHtml(displayRow.weekday)} ${escapeHtml(displayRow.time)} ${escapeHtml(displayRow.student)} diff --git a/app/app/static/index.html b/app/app/static/index.html index 1576cfb..fc12bc2 100644 --- a/app/app/static/index.html +++ b/app/app/static/index.html @@ -4,7 +4,7 @@ 新时空教务管理系统 - +
diff --git a/app/app/static/styles.css b/app/app/static/styles.css index e77bd4d..2379ed5 100644 --- a/app/app/static/styles.css +++ b/app/app/static/styles.css @@ -884,6 +884,21 @@ td { border-top: 1px solid var(--line); } +.record-row.missing-summary td:first-child { + position: relative; + padding-left: 18px; +} + +.record-row.missing-summary td:first-child::before { + content: ""; + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 4px; + background: #f59e0b; +} + .record-summary-title { margin-bottom: 8px; color: var(--accent-strong);