Commit Graph

35 Commits

Author SHA1 Message Date
Administrator
cfb3cb91f8 2026-04-18-23-39-35 - 追加经验记录37:下划线修复与表单逆向联动 2026-04-18 23:44:57 +08:00
Administrator
7ab8c919e3 2026-04-18-23-19-44 - 追加经验记录36:七项排版与功能优化 2026-04-18 23:24:56 +08:00
Administrator
888255ae6f 2026-04-18-22-59-10 - 追加经验记录35:字段下划线默认与占位符居中 2026-04-18 23:02:44 +08:00
Administrator
726bbc5bac 2026-04-18-20-03-44 - 追加经验记录34:模板导入导出与Logo占位符 2026-04-18 20:09:04 +08:00
Administrator
9c09e6cccc 2026-04-18-19-37-56 - 追加经验记录33:四项编辑器体验优化 2026-04-18 19:43:14 +08:00
Administrator
8ffb9162d3 2026-04-18-19-23-31 - 追加经验记录32:视频空白修复与占位符自适应 2026-04-18 19:27:30 +08:00
Administrator
519cc6fc82 2026-04-18-19-08-43 - 追加经验记录31:六项UI优化实施记录 2026-04-18 19:15:00 +08:00
0df27cbc73 2026-04-18-00-43-19 - 默认模板占位符补充data-mode属性与图片来源隔离对齐 2026-04-18 00:46:05 +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
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
f373520fa5 2026-04-16-22-23-02 - 新增 TemplateManage 字段库与 ReportEditor 双向数据绑定智能占位方格 2026-04-16 22:29:40 +08:00
c55a55a27b release: v1.2.0 手术图文病历报告系统 2026-04-16 21:41:21 +08:00
ebe13ba8af 2026-04-16-20-46-50 - 压缩关键帧分辨率并增加存储错误日志,修复 LocalStorage 超限导致的关键帧丢失 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