feat: v1.4.0 - 典型方案采纳、推荐方案列表、审计字段、导航优化
- 添加典型方案采纳功能 (POST /api/plans/<id>/adopt) - 添加推荐方案列表 (GET /api/students/<id>/recommended-plans) - PracticePlan 新增 created_by/updated_by/updated_at 审计字段 - 方案编辑/详情页导航优化 (bfcache 处理、pageshow 事件) - 方案列表支持删除功能 - 学员列表'暂无方案/问题'样式统一 - 更新文档:问题文件已废弃(迁移到数据库) - 更新部署脚本和验证清单
This commit is contained in:
@@ -255,3 +255,28 @@ app/templates/
|
||||
|------|------|----------|
|
||||
| 2026-04-21 | v1.0 | 初始文档,定义 base.html 模板继承模式 |
|
||||
| 2026-04-23 | v1.1 | 添加 URL 导航模式说明;新增 home.html, student.html, plan_edit.html |
|
||||
| 2026-04-27 | v1.2 | 方案编辑/详情页导航优化:bfcache 处理、pageshow 事件、sessionStorage 标记 |
|
||||
|
||||
## 9. 方案编辑页面导航
|
||||
|
||||
### 9.1 编辑流程
|
||||
|
||||
```
|
||||
学员详情/方案列表 → 方案详情 → 编辑 → 保存 → 返回方案详情/学员详情/方案列表
|
||||
```
|
||||
|
||||
### 9.2 导航实现
|
||||
|
||||
| 操作 | 实现方式 |
|
||||
|------|----------|
|
||||
| 保存后返回 | `history.back()` 返回上一页(编辑页),浏览器从 bfcache 恢复方案详情页 |
|
||||
| 方案详情加载 | `pageshow` 事件检测 bfcache 恢复,自动调用 `loadPlan()` 刷新数据 |
|
||||
| 返回按钮 | `history.back()` 返回上一页 |
|
||||
|
||||
### 9.3 sessionStorage 标记
|
||||
|
||||
| 标记 | 用途 |
|
||||
|------|------|
|
||||
| `plan_detail_referrer` | 记录方案详情页的来源(student/plans),编辑保存后用于决定跳转目标 |
|
||||
| `needs_refresh_recommended` | 标记需要刷新推荐方案列表 |
|
||||
| `plans_needs_refresh` | 标记需要刷新方案列表页 |
|
||||
|
||||
Reference in New Issue
Block a user