From 89bf60b4e11135c739e903070aa87624081f43d0 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 18 Apr 2026 23:24:12 +0800 Subject: [PATCH] =?UTF-8?q?2026-04-18-23-19-44=20-=20=E4=B8=83=E9=A1=B9?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=8E=92=E7=89=88=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E3=80=81=E9=97=B4=E8=B7=9D=E5=BE=AE=E8=B0=83=E3=80=81PDF?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E3=80=81=E5=8C=97=E4=BA=AC=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E3=80=81=E6=A8=A1=E6=9D=BF=E6=89=B9=E9=87=8F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ReportEditor.tsx | 4 +- src/pages/ReportManage.tsx | 2 +- src/pages/TemplateManage.tsx | 131 ++++++++++++++++------- src/utils/defaultContent.ts | 8 +- src/utils/print.ts | 9 +- 工程分析/实现方案-2026-04-18-23-19-44.md | 90 ++++++++++++++++ 工程分析/测试方案-2026-04-18-23-19-44.md | 73 +++++++++++++ 工程分析/需求分析-2026-04-18-23-19-44.md | 43 ++++++++ 8 files changed, 314 insertions(+), 46 deletions(-) create mode 100644 工程分析/实现方案-2026-04-18-23-19-44.md create mode 100644 工程分析/测试方案-2026-04-18-23-19-44.md create mode 100644 工程分析/需求分析-2026-04-18-23-19-44.md diff --git a/src/pages/ReportEditor.tsx b/src/pages/ReportEditor.tsx index d29371f..2b79c2b 100644 --- a/src/pages/ReportEditor.tsx +++ b/src/pages/ReportEditor.tsx @@ -2101,7 +2101,7 @@ export default function ReportEditor() {
+ {selectedIds.length > 0 && ( +
+ 已选中 {selectedIds.length} 项 +
+ + +
+
+ )}
{templates.map(tpl => (
setCurrentTemplateId(tpl.id)} - className={`p-4 rounded-xl border transition-all group ${ + className={`p-4 rounded-xl border transition-all group cursor-pointer ${ currentTemplateId === tpl.id ? 'bg-white border-accent shadow-sm' : 'bg-transparent border-transparent hover:bg-white hover:border-border' }`} > -
-
- {tpl.name} +
+ { + e.stopPropagation(); + setSelectedIds(prev => e.target.checked ? [...prev, tpl.id] : prev.filter(id => id !== tpl.id)); + }} + onClick={(e) => e.stopPropagation()} + className="mt-1 shrink-0" + /> +
+
+
+ {tpl.name} +
+
+
{tpl.desc || '无描述'}
+
+ + + +
-
{tpl.desc || '无描述'}
-
- - - {templates.length > 1 && ( - - )} -
))} {templates.length === 0 && ( @@ -1314,7 +1373,7 @@ export default function TemplateManage() {