fix: Phase 1.3 完善修复 — 管理端对接 + HMS清理 + 编辑器加载
Some checks failed
Main Merge / backend (push) Has been cancelled
Main Merge / frontend (push) Has been cancelled

- feat(web): ClassList.tsx 对接 update/deactivate/reset-code API
  - 编辑班级: PUT /diary/classes/:id
  - 停用班级: PATCH /diary/classes/:id/deactivate (Popconfirm 确认)
  - 重置班级码: POST /diary/classes/:id/reset-code (Popconfirm 确认)
  - 数据源改用 listAll() 获取所有班级
- fix(web): JournalList.tsx 班级筛选改用 classApi.listAll()
- fix(app): EditorPage 加载已有日记数据 (journalId 非空时)
  - 从 Isar 恢复笔画/元素/标签/心情/标题
  - _EditorView 改为 StatefulWidget + initState 加载
- chore(web): HMS 遗留代码清理
  - 删除 api/copilot.ts, healthFixtures.ts, healthHandlers.ts
  - AuditLogViewer 资源类型替换为日记模块类型
  - auth.test.ts / renderWithProviders 权限码 health.* → diary.*
- docs: 确认 M6 NotificationService 为误报 (已在 3 处调用)
This commit is contained in:
iven
2026-06-02 22:54:09 +08:00
parent 860844a399
commit 85d6781372
11 changed files with 201 additions and 757 deletions

View File

@@ -13,11 +13,9 @@ const RESOURCE_TYPE_OPTIONS = [
{ value: 'process_definition', label: '流程定义' }, { value: 'task', label: '流程任务' },
{ value: 'dictionary', label: '字典' }, { value: 'menu', label: '菜单' },
{ value: 'setting', label: '设置' }, { value: 'numbering_rule', label: '编号规则' },
{ value: 'patient', label: '患者' }, { value: 'patient_tag', label: '患者标签' },
{ value: 'patient_family_member', label: '家庭成员' }, { value: 'patient_doctor_relation', label: '医患关系' },
{ value: 'points_transaction', label: '积分流水' }, { value: 'points_product', label: '积分商品' },
{ value: 'points_order', label: '积分订单' }, { value: 'points_rule', label: '积分规则' },
{ value: 'offline_event', label: '线下活动' }, { value: 'offline_event_registration', label: '活动签到' },
{ value: 'journal_entry', label: '日记' }, { value: 'school_class', label: '班级' },
{ value: 'class_member', label: '班级成员' }, { value: 'topic_assignment', label: '主题布置' },
{ value: 'comment', label: '评论' }, { value: 'sticker_pack', label: '贴纸包' },
];
const ACTION_STYLES: Record<string, { bg: string; color: string; text: string }> = {