Commit Graph

21 Commits (e99cc9742d84b8975b60f32ec7e7509d0e1e3f48)

Author SHA1 Message Date
chenyuan e99cc9742d fix(task-review): 参考答案预览 200 仍报错的修复
- axios 拦截器对 blob 响应返回的已是 Blob 本身,
  原代码再取 response.data 为 undefined,
  createObjectURL 抛 TypeError 被兜底成'参考答案预览失败'
- 兼容 Blob/原始响应两种形态,教师端弹窗与学生端悬浮共用修复
1 month ago
chenyuan ff43967cbb fix(task-review): 参考答案未上传时给出明确提示
- 预览接口 404(未上传)时提示'该任务暂未上传参考答案',
  与真正的预览流程异常区分开
1 month ago
chenyuan bdc48aa6c1 style(task-review): AI评分详情弹窗排版优化
- 弹窗加宽至640px,正文留白与行高加大
- 综合评分与评语分层展示,逐项评分独立卡片化,优先改进红色提示块
1 month ago
chenyuan edd1493fc4 refactor(task-review): AI评分详情改为居中弹窗展示
- 锚定浮层在学生列表行数多时会遮挡错乱,改为居中弹窗
- 弹窗内容不变:综合评分/评语/逐项评分/优先改进,内部滚动
1 month ago
chenyuan 19a74dfc19 feat(task-review): AI评分一栏点击分数悬浮展示评分结果
- 学生列表 AI评分 一栏:有分数即可点击,评分结果浮层锚定在该行分数旁
  (综合评分+评语+逐项评分+优先改进,与学生端评分结果界面一致),非弹窗
- 点击浮层与分数以外区域收起;批量AI评分完成的小绿点保留在分数旁
1 month ago
chenyuan f3ec905211 feat(task-review): 批量/单个AI评分交互完善
- 批量AI评分:发起后工具栏按钮进入'正在评分...'禁用态,完成后按钮与
  已完成学生的AI评分旁显示小绿点,弹窗展示成功/失败进度
- AI助评:按钮进入'正在评分...'加载态,完成后右侧AI评分徽标刷新并
  可点击浮窗查看评分详情(综合评分/逐项评分/优先改进,与学生端一致)
1 month ago
chenyuan f520d0e218 fix(task-review): 老师评分列已评展示分数+修改按钮(验收:评阅后展示分数,按钮变修改) 1 month ago
chenyuan 3927e8a4fc feat(task-review): 任务评阅AI评分与AI评语
- 学生列表支持单个/批量AI评分,轮询展示AI分与AI评分详情
- 点击评阅打开弹窗时,若无教师评语则调用 /taskReview/ai-comment
  按该生AI评分+助学报告自动生成10-50字评语填入,教师可改后保存
- 参考答案在线预览;工具栏与AI侧边栏配套调整
1 month ago
qinzhenpen 332d33bd32 fix(training): 修复知识自测答题回显与评阅预览步骤切换
知识自测回显:
- 新产品调查与分析 watch 漏了 stepOneChoiceAnswers,学生只答自测时本地草稿不落盘,刷新即丢
- applyStep1Answer 只在表格分类有值时返回 true,纯答题场景后端回显后 clearDraft 不生效
- 兼容 toolbox DOM 快照 legacy-training-snapshot-v3(教师端评阅预览返回的就是这类数据),
  按「选项以 A 开头分组 + 遇非字母选项停止」还原逐题作答
- 第 4 步 AI 应用价值分析在结构化数据为空时,用快照尾部 textarea 兜底回填(route 限定页面)
- 行业需求分析 / 竞争环境分析同步加上快照兜底

提交链路:
- new-product-survey 工具栏未传 on-submit/on-reset,提交走 DOM 兜底导致第 4 步内容从未落库,
  补上 :on-submit="submitTask" :on-reset="resetExample"
- 工具栏兜底快照改写 dynamicStepAnswers,不再覆盖 step1Answer 里的结构化答题

评阅预览:
- 步骤导航判定仅靠文案太窄(行业/竞争页胶囊文案是「01 PEST宏观环境分析 当前步骤 →」),
  改为容器白名单放行,文案正则补充「步骤 N / 点击切换 / 当前步骤」
- 预览只读拦截与加载失败时透出真实错误信息,不再静默失败
1 month ago
qinzhenpen c3a33335a0 refactor(task-review-panel): update student table data handling and enhance pagination
- Changed the data source for the student table from `review.students` to `paginatedStudents` for improved performance and clarity.
- Added pagination controls to the task review panel to manage large student lists more effectively.
- Streamlined dialog component structures for better readability and maintenance.
- Minor adjustments to button and dialog layouts for improved user experience.
2 months ago
qinzhenpen cb1d33da5a refactor(student-view): enhance score display logic and improve UI consistency
- Updated score display logic to show teacher scores when available, otherwise defaulting to AI scores.
- Introduced computed properties for better handling of score visibility and labeling.
- Improved the layout and styling of score metrics for better visual consistency across the application.
- Added new dialog components for batch AI scoring and AI-assisted evaluation in the teacher's score review panel.
2 months ago
qinzhenpen d77b307457 refactor(task-review): enhance scoring interface and improve user interactions
- Introduced a new button for batch AI scoring alongside the existing batch scoring functionality.
- Replaced the inline input for teacher scores with a button that opens a dedicated score dialog for better user experience.
- Improved the layout of the task review panel, including the addition of action buttons for viewing reference answers and AI assistance.
- Updated dialog components for single and batch scoring to enhance usability and visual consistency.
2 months ago
qinzhenpen 39113aa091 fix(task-review): 实训任务下拉首次加载按实训项目联动过滤
现象:进入任务评阅页、默认选中教学班后,「实训项目」已显示某项目,
但「实训任务」下拉列出该教学班全部任务;手动重选一次实训项目才恢复。

根因:首次进入/切换班级时的首个请求不带 projectName,后端在 projectName 为空时
不做项目过滤、返回全量任务;normalizeReview 随后用 selectedTask 回填了
filters.projectName,但没有因此重新请求,任务下拉仍停留在全量数据上。

修法:loadReview 记录本次请求是否带了项目;若未带且响应后回填出了 projectName,
则按该项目补查一次 getTaskReview。常规分支只替换 review.tasks 与 projects,
不整体 normalize —— selectedTask 的对象引用被预览 watcher 监听,整体替换会白白
重建一次右侧学生页预览 iframe(预览页会真实发起接口请求)。补查结果不含当前
taskId 时整体刷新兜底;结果为空时保留首份响应。补查请求已带 projectName,
不会再触发补查,幂等无死循环。

影响面:仅首次进入/切换班级多一次接口调用,其余选择路径请求次数不变。
2 months ago
qinzhenpen 3a4362d531 fix(任务评阅): 预览iframe去除1280px最小宽度,自适应容器消除横向滚动 2 months ago
qinzhenpen d4b1d1f912 feat(教师端): 完成教师端页面极简 SaaS 风格适配
- 统一页面骨架,移除 app-container 旧白卡包裹
- 替换侧边栏为 Stripe/Linear 纯白极简风格
- 新增名称列首字徽标、自定义空状态等通用组件
- 重构筛选条、操作按钮、表格等样式为扁平化设计
- 同步更新相关文档与技能规范
2 months ago
chenyuan cbab6cdc26 fix: let exam and teacher pages fill the content width
考试与教师端页面被写死的最大宽度和额外左右内缩压成中间一条,宽屏两侧留白,
窄一点的屏还会把筛选按钮和表格操作列裁掉。同时分页条脱离文档流会与表格下沿重叠。

统一改为按内容区自适应宽度,并让操作列、筛选行、指标网格在空间不足时换行而非裁切。
2 months ago
陈沅 c569a98c3b fix: default task review to owned class 3 months ago
陈沅 031a5ccc89 fix: stabilize task review preview scrolling 3 months ago
陈沅 e71e7ffd8e fix: preserve native student preview layout 3 months ago
陈沅 b087a72a1e feat: complete teacher task review workflow 3 months ago
陈沅 9256e8f4f4 feat: add teacher task review menu 3 months ago