Commit Graph

49 Commits

Author SHA1 Message Date
Administrator
db1c11f7eb 2026-04-18-18-08-37 - 编辑器工具栏新增字号行距选择、修复字体选择、模板排版间距调整 2026-04-18 18:13:07 +08:00
Administrator
55ce78d898 2026-04-18-17-48-59 - 模板排版微调:字段间距、Flex居中抬头、打印隐藏删除按钮、统一1.5行距、下划线贴底 2026-04-18 17:52:05 +08:00
Administrator
e1dc961ecf 2026-04-18-17-27-51 - 修复TemplateManage静态占位符插入、重构默认模板排版、修复Logo删除按钮交互 2026-04-18 17:33:07 +08:00
Administrator
67fb2c9080 2026-04-18-16-55-47 - 报告编辑器field-value点击联动、字段动态排序、默认模板手术图片表格替换 2026-04-18 17:01:18 +08:00
Administrator
a46ecffadf 2026-04-18-16-45-02 - 建立代码编纂工作流规范(含需求分析、实现方案、测试方案) 2026-04-18 16:50:55 +08:00
Administrator
034575e0a8 Merge remote V1.2.0 and add local V1.2.1 v1.2.1 2026-04-18 16:31:38 +08:00
Administrator
4e24ee15a2 V1.2.1 2026-04-18 16:31:09 +08:00
0df27cbc73 2026-04-18-00-43-19 - 默认模板占位符补充data-mode属性与图片来源隔离对齐 2026-04-18 00:46:05 +08:00
1278f7282f 2026-04-18-00-23-14 - 补充自动帧插入时的占位符边框清除 2026-04-18 00:34:46 +08:00
8978b7a2de Merge remote: adopt upstream modal and placeholder isolation changes 2026-04-18 00:33:59 +08:00
6498ef6444 2026-04-18-00-23-14 - 修复拖拽关键帧边框残留、替换prompt为自定义弹窗、增加占位符图片来源隔离 2026-04-18 00:32:28 +08:00
b7a1ea457e 2026-04-18-00-02-08 - 拖拽关键帧样式修复、占位符分类隔离与Modal弹窗改造、表格插入Modal化 2026-04-18 00:09:33 +08:00
d05029838f 2026-04-17-23-38-34 - 时间格式自定义下拉组件、表格内图片占位符自适应、打印多页页边距修复 2026-04-17 23:44:03 +08:00
d45e973255 2026-04-17-23-12-52 - 修复时间字段24h脏数据、格式选项分类过滤、字段管理编辑面板滚动对齐 2026-04-17 23:18:59 +08:00
1a766edb90 2026-04-17-22-53-01 - 新建项目修改工作流Skill并创建统一经验记录 2026-04-17 23:10:57 +08:00
8e7079e6a9 [文档] 更新经验记录:时间字段联动修复 2026-04-17 22:51:42 +08:00
8ea0a9a69e [修复] 时间字段联动:默认中文日期格式、固定时间自动填充、12/24h动态切换 2026-04-17 22:47:18 +08:00
ac6b619549 [第五批] 手术图文病历报告系统 - 时间字段增强:自定义格式、固定时间默认值、系统锁定标签 2026-04-17 22:20:33 +08:00
8beb534abb 2026-04-17-21-32-27 - 时间日期字段格式配置与撰写时间动态字段 2026-04-17 21:42:51 +08:00
8f746c25f3 fix: 5项交互修复 - 删除图片恢复虚线框、prompt文案统一、移除overflow、多选输入解耦、label加可多选 2026-04-17 21:19:20 +08:00
28b913692c feat: 6项交互优化 - placeholder虚线框清除、删除按钮遮挡修复、*分隔输入、签名尺寸固定、移除isSigned、多选文本拼接重构 2026-04-17 20:46:58 +08:00
ee1ac0d637 feat: 5项UX优化 - 合并占位符prompt、默认200x200尺寸、系统默认设置、签名状态列、素材预加载前置 2026-04-17 19:59:19 +08:00
5fee3352c1 refactor: unify image-placeholder across editors and remove image field type
- Remove surgeonSignature and hospitalLogo from DEFAULT_FORM_FIELDS.
- Replace logo and signature in default template with inline image-placeholder spans.
- Enhance insertImage() in both editors with prompt for max-width/height (px).
- Abbreviate placeholder text to '插入图片' when width < 80px.
- Force inline insertion using display:inline-flex + vertical-align:middle.
- Port image-source picker modal from ReportEditor to TemplateManage.
- Remove legacy triggerPlaceholderUpload direct upload logic.
2026-04-17 19:34:03 +08:00
0c57409c59 feat: TemplateManage field system upgrade and bidirectional navigation
- Fix new field type linkage (remove text option under single/multi/image).
- Add system fields: pre/post-op diagnosis, pathology checks, etc.
- Replace placeholder text in default template with smart fields.
- Accordion grouping and inline option editing in field management.
- Add image field type, asset library with logo preloading.
- Image source picker modal in ReportEditor (local/signature/asset).
- Editor-to-sidebar highlight and scroll navigation on smart field click.
2026-04-17 18:54:10 +08:00
b155dd42d6 fix(TemplateManage): Ctrl+Z undo and smart-field insertion layout
- Intercept Ctrl+Z/Y keyboard shortcuts in keydown listener and route
to custom undoStack/redoStack to fix undo inconsistency.
- Replace execCommand('insertHTML') with precise Range.insertNode()
in insertSmartField to prevent <span> escaping out of <p> when
preceded by <br>.
2026-04-17 13:39:16 +08:00
b822bb1b47 fix: custom undo/redo stack and cursor positioning in TemplateManage
- Add undoStack/redoStack refs with pushHistory/handleUndo/handleRedo
- Replace execCmd('undo')/execCmd('redo') with custom stack handlers
- Call pushHistory before structural changes (delete, insert field/table/image, formatting)
- Add onMouseDown preventDefault to toolbar and field library buttons to stop focus loss
- Implement saveSelection/restoreSelection using savedRangeRef
- Bind onBlur/onMouseUp/onKeyUp on editor to persist cursor position
- Restore selection in insertSmartField and insertImage before insertHTML
- Update experience record (#20)
2026-04-17 13:18:54 +08:00
f7c7270053 fix: undo stack, field insertion wrap, backspace/delete precision; feat: signature size limit & isSigned control
- Replace direct DOM remove() with Range+execCommand('delete') in TemplateManage click and keydown handlers to restore undo stack
- Append &#8203; zero-width space to smart-field-wrapper HTML in insertSmartField and defaultContent.ts to prevent unwanted line breaks
- Refactor ReportEditor surgeonSignature rendering to depend on isSigned field
- Add isSigned to DEFAULT_FORM_FIELDS (single_select: 已签字/未签字)
- Change surgeonSignature to visibleInForm=true, isSystemLocked=false
- Constrain signature image with max-width:120px, max-height:40px, object-fit:contain in CSS and print.ts
- Add weak-blocking signature validation prompts in saveReport('completed')
- Update experience record (#19)
2026-04-17 12:41:07 +08:00
424407a17e feat: field hover highlight, e-signature upload, surgeon signature linkage
- Add signature?: string to User type and 'signature' to FieldType
- Add surgeonSignature field to DEFAULT_FORM_FIELDS (category: 图片)
- UserManage: add canvas-based image compression (max 500px) and signature upload UI
- TemplateManage: add hover highlight on field buttons via direct DOM style manipulation
- TemplateManage: add '图片' category to field library for surgeonSignature insertion
- ReportEditor: auto-fill surgeonSignature with currentUser.signature image or placeholder text
- index.css & print.ts: add .report-signature-img styling (height 2.4em, vertical-align middle)
- Update experience record (#18)
2026-04-17 12:04:23 +08:00
0ff1cbe5f0 feat: focus highlight, delete-btn visibility isolation, multi_select crash fix
- Move delete-btn to top-right of smart-field-wrapper via absolute positioning
- Add template-editor-mode class to TemplateManage editor for CSS isolation
- Show delete-btn only on hover/focus-within inside template-editor-mode
- Add .field-value:focus highlight with background darken and blue glow
- Sync defaultContent.ts smartField() HTML structure
- Fix ReportEditor multi_select .map crash with Array.isArray guard
2026-04-17 11:21:32 +08:00
db5df13a05 feat: smart field uniqueness, delete button, bulk export in report manage
- TemplateManage: add uniqueness check for smart fields to prevent duplicate inserts
- Add red circular delete button to smart-field-wrapper (visible on hover via CSS)
- Enhance keydown handler to delete smart fields at block-level boundaries
- Update defaultContent.ts smartField() to include delete-btn
- ReportManage: add per-row checkboxes, select-all, bulk delete
- Add single-report export modal (PDF via printDocument, JSON via Blob)
- Add bulk export actions for PDF and JSON
- Update experience record (#16)
2026-04-17 10:32:07 +08:00
38ff67a6a8 fix: smart field spacing/line-break in TemplateManage and default template
- Compress insertSmartField HTML to single-line, remove trailing &nbsp;
- Compress smartField helper in defaultContent.ts to single-line
- Add white-space: nowrap to .smart-field-wrapper (CSS + inline)
- Add keydown interceptor in TemplateManage to prevent Backspace/Delete
  from removing whole <p> when adjacent to smart-field-wrapper
- Update experience record (#14)
2026-04-17 09:47:21 +08:00
2a4934e7c4 2026-04-17-00-13-09 - 手术时间方框联动、动态字段分类管理体系、字段显隐控制、UI紧凑化优化 2026-04-17 00:30:11 +08:00
952856e8c6 2026-04-16-22-35-38 - 修正 BINDABLE_FIELDS key 与 Report 接口一致,并将默认模板占位符替换为智能绑定方格 2026-04-16 23:55:33 +08:00
f373520fa5 2026-04-16-22-23-02 - 新增 TemplateManage 字段库与 ReportEditor 双向数据绑定智能占位方格 2026-04-16 22:29:40 +08:00
915e169bd8 2026-04-16-22-12-00 - 建立项目修改需求工作流规范(含需求分析、实现方案、测试方案、经验记录、Gitea备份流程) 2026-04-16 22:13:17 +08:00
c55a55a27b release: v1.2.0 手术图文病历报告系统 2026-04-16 21:41:21 +08:00
ebe13ba8af 2026-04-16-20-46-50 - 压缩关键帧分辨率并增加存储错误日志,修复 LocalStorage 超限导致的关键帧丢失 v1.1.0 2026-04-16 20:49:07 +08:00
39ef4d0b19 2026-04-16-20-33-12 - 将自动帧插入改为 setTimeout 非阻塞异步执行,避免阻塞关键帧摘取 2026-04-16 20:34:55 +08:00
85080e5630 2026-04-16-20-24-11 - 从 Ref 读取修复 saveDraftToStorage 闭包陷阱和 DOM 失效导致的内容丢失 2026-04-16 20:29:06 +08:00
39ecdf2b71 2026-04-16-19-28-04 - 彻底重构自动保存机制,修复路由切换后所有内容丢失问题 2026-04-16 19:56:23 +08:00
22d3ce0e35 2026-04-16-19-18-14 - 重新部署应用(Vite 构建 + Vite Preview) 2026-04-16 19:22:36 +08:00
a4d494f4f8 2026-04-16-19-06-18 - 修复路由切换后报告全部丢失及自动帧插入实时刷新问题 2026-04-16 19:13:26 +08:00
396a8cab0b 2026-04-16-18-51-06 - 修复路由切换后视频分析图片丢失问题 2026-04-16 18:58:35 +08:00
11278d0bcd backup before modification at 2026-04-16-17-40-20 2026-04-16 17:40:20 +08:00
506d042f7a backup before modification at 2026-04-16-17-21-58 2026-04-16 17:21:59 +08:00
a07e6e4e98 backup before modification at 2026-04-16-17-15-37 2026-04-16 17:15:37 +08:00
90c9c7f2b0 backup before modification at 2026-04-16-17-07-04 2026-04-16 17:07:04 +08:00
dcc35870bf backup before modification at 2026-04-16-16-51-00 2026-04-16 16:51:01 +08:00
9362fa2b81 backup at 2026-04-16-16-39-42 2026-04-16 16:39:42 +08:00