From 074800b741130841e93a6e17e4172dd147735f84 Mon Sep 17 00:00:00 2001 From: wangwei Date: Wed, 17 Jun 2026 10:35:56 +0800 Subject: [PATCH] feat: add history report switcher dropdown in report detail view --- webapp/static/css/app.css | 18 ++++++++++++ webapp/static/index.html | 8 ++++++ webapp/static/js/report.js | 58 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/webapp/static/css/app.css b/webapp/static/css/app.css index bf64fc0..078d148 100644 --- a/webapp/static/css/app.css +++ b/webapp/static/css/app.css @@ -316,6 +316,24 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t font-size: 13px; display: flex; align-items: center; gap: 6px; } +/* ---------- 报告历史切换下拉 ---------- */ +.report-switcher { + display: flex; align-items: center; gap: 10px; + background: var(--surface); border: 1px solid var(--line); + border-radius: var(--radius); padding: 10px 16px; + margin-bottom: 14px; box-shadow: var(--shadow); +} +.report-switcher-label { + font-size: 13px; font-weight: 600; color: var(--slate); white-space: nowrap; +} +.report-switcher-select { + flex: 1; min-width: 0; + border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; + font-size: 13px; font-family: inherit; background: var(--bg); color: var(--ink); + cursor: pointer; +} +.report-switcher-select:focus { outline: none; border-color: var(--petrol); } + /* ================================================================ 打印样式(导出 PDF 用) 浏览器打印时隐藏 UI chrome,保留报告内容,图表 canvas 原样输出 diff --git a/webapp/static/index.html b/webapp/static/index.html index ddbe316..ac11520 100644 --- a/webapp/static/index.html +++ b/webapp/static/index.html @@ -103,6 +103,14 @@