Commit Graph

3 Commits (825f3ba8ca2a07bb96173a6929e4c35295fbdccd)

Author SHA1 Message Date
chenyuan 8355c6c818 fix(training): wire submit/reset actions for factors and process pages, guard legacy reset
- product-development-factors / product-development-process never wired
  :on-submit/:on-reset into TrainingTaskToolbar, so the toolbar submit
  button fell into the legacy branch and refused with
  '请先完成各步骤,再通过本实训的提交按钮提交。' — students could not submit
  实训2/实训3; wire both pages to their existing submitTraining/resetTraining
- resetLegacyTraining: for structured tasks use a RESET save instead of
  deleteStudentTrainingAnswer so 重新实训 no longer deletes the answer row
  along with teacher/AI scores (affects the 10 pages without on-reset wiring)
- toolbar test now enforces :on-submit wiring on every built-in training page
  and keeps the two incident pages on :on-reset
1 month ago
chenyuan 6ed409c3ad feat(training): store step answers in per-step columns and remove legacy snapshot pages
- split page outcomes into step1-stepN answers for 7 tasks via
  trainingStepAnswers.mjs + trainingStepAnswerFields.json
- reroute legacy snapshot pages to canonical pages:
  /demand/user->/demand/people, /test/channelas->/test/index,
  /test/marketing->/test/promotion, /assessment/index->/assessment/diagnosis
- delete 12 whole-form/snapshot pages and TrainingLegacyActions;
  clean dead taskKeyMap path entries
- add training-step-column-split regression test: every answer save site
  must use the split helper or be allowlisted per-step; field map must not
  duplicate keys across panels; backend ownership guard must register all
  mapped tasks; deleted snapshot pages must not return
- refresh stale toolbar/demand-index test asserts
1 month ago
陈沅 e0d64a76b7 fix: 优化学生实训操作与成绩展示 3 months ago