Remove frontend JSON export actions
- Remove user-visible JSON export options from report editor, report management, template management, bulk template export, and AI debug logs. - Keep HTML template package and PDF/browser print exports as the supported frontend export formats. - Change per-template export to generate reusable HTML template packages. - Preserve legacy JSON template import compatibility without exposing new JSON export buttons. - Update README, AGENTS, feature, requirement, design, module, API contract, progress, and testing docs for the export policy change.
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
- 删除:优先调用 `DELETE /api/reports/:id` 做后端软删除,再同步本地兼容缓存;只有本地回退开启时,API 不可用才会从本地 `reports` 中移除。
|
||||
- 历史版本:查看 `Report.history`,可恢复某个历史内容到编辑器。
|
||||
- 导出 PDF:调用浏览器打印。
|
||||
- 导出 JSON:下载结构化字段数据。
|
||||
- 批量导出和批量删除:基于表格选中项操作。
|
||||
- 批量导出 PDF 和批量删除:基于表格选中项操作。
|
||||
|
||||
医生只能编辑或删除自己的报告。
|
||||
|
||||
@@ -43,11 +42,6 @@
|
||||
|
||||
后端 `Report` 表保存标题、患者姓名、住院号、HTML 正文、作者、部门、状态和修订版本。`Report.metadata` 暂存患者扩展字段;视频和关键帧文件内容写入 `FileResource`,报告中的媒体引用、排序和抽帧信息写入 `ReportMedia` 关系表。Reports API 返回时仍组装成前端兼容的 `videos` 和 `capturedFrames` 字段。
|
||||
|
||||
## 导出 JSON 内容
|
||||
## JSON 导出
|
||||
|
||||
当前报告 JSON 导出主要包含:
|
||||
|
||||
- `meta`:报告 ID、标题、创建/更新时间、作者和状态。
|
||||
- `fields`:按 `DEFAULT_FORM_FIELDS` 提取的报告字段。
|
||||
|
||||
报告正文 HTML 和视频帧数据不在这个结构化字段导出范围内。
|
||||
前端用户可见的报告 JSON 导出入口已移除。当前报告导出只保留浏览器打印/PDF 路径,结构化数据交换后续如需要应走后端 API 或数据库层能力。
|
||||
|
||||
Reference in New Issue
Block a user