feat: 问题数据迁移到数据库;学员详情页URL导航改造;侧边栏统一

- 问题从文件系统迁移到数据库 problems 表
- 移除 PROBLEMS_DIR 配置和文件读取逻辑
- student.html 完整重写:编辑/添加/删除问题,生成方案进度显示
- 学员详情页支持独立URL访问 (/student/<id>)
- 统一侧边栏到 base.html
- 更新文档:DEPLOYMENT_SOP, MODELS, STRUCTURE, FRONTEND_ARCH
- 部署到生产环境 v1.2.0
This commit is contained in:
hmo
2026-04-23 06:35:32 +08:00
parent fd593bddf4
commit 18351212e8
18 changed files with 857 additions and 488 deletions
+20 -2
View File
@@ -11,6 +11,9 @@
```
base.html (基础模板)
├── index.html (学员管理)
├── home.html (默认首页)
├── student.html (学员详情)
├── plan_edit.html (方案编辑)
├── settings.html (问题配置)
├── classes.html (班级管理)
├── users.html (用户管理)
@@ -218,8 +221,11 @@ base.html 已包含修改密码弹窗 HTML 和 JS。各页面不需要重复定
```
app/templates/
├── base.html # 基础模板(核心)
├── base.html # 基础模板(核心,统一侧边栏
├── index.html # 学员管理
├── home.html # 默认首页(统计信息)
├── student.html # 学员详情(URL导航)
├── plan_edit.html # 方案编辑(URL导航)
├── settings.html # 问题配置
├── classes.html # 班级管理
├── users.html # 用户管理
@@ -232,8 +238,20 @@ app/templates/
> 注意:`login.html`、`setup.html`、`wechat_card.html` 是独立页面,不继承 base.html。
## 7. 更新日志
## 7. URL 导航模式
系统支持两种导航模式:
| 模式 | 说明 | 示例 |
|------|------|------|
| SPA 模式 | 点击学员卡片弹窗查看详情 | 原 index.html 模式 |
| URL 模式 | 通过 URL 直接访问 | `/student/<id>`, `/plan/<id>/edit` |
推荐使用 URL 模式,便于分享和书签。
## 8. 更新日志
| 日期 | 版本 | 变更内容 |
|------|------|----------|
| 2026-04-21 | v1.0 | 初始文档,定义 base.html 模板继承模式 |
| 2026-04-23 | v1.1 | 添加 URL 导航模式说明;新增 home.html, student.html, plan_edit.html |