chenyuan
2985fce54f
feat(training): 学生上传图片接入AI视觉评分链路
...
- 各实训页图片上传统一走后端文件存储,供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
511abe73b9
fix(task-review): 评阅预览改用最新学生页并修复新版样式门控失配
...
1. previewMap 三处指向已废弃的旧页面,改为 router 实际引用的最新页面:
industry-demand-analysis -> demand/industry-demand-analysis.vue
competitive-environment-analysis -> demand/competitive-environment-analysis.vue
market-opportunity-selection -> product/market-opportunity-selection.vue
并在文件头补充契约注释(必须与 router 一致,不得指向废弃页面)。
2. 修复评阅预览"看起来仍在用废弃页面"的根因,两重原因叠加:
a) /task-review-preview 是脱离 Layout 的独立路由,DOM 里没有 .studentLayout
与 section.app-main,导致学生页新版皮肤的门控选择器
`#app .studentLayout section.app-main:has(.xxx-page) …` 集体失配,
页面静默回落全局旧版样式(胶囊满宽、步骤说明小字重新出现、按钮配色不一致)。
模板外层补两级空壳祖先容器,只补壳、不渲染顶栏侧栏。
b) 预览 iframe 宽约 1000px,命中 student-training.scss 的
@media (max-width: 1100px):`#app .student-training-shell .step-tab
{ width: 100% }`(特异性 1,2,0)压过预览自身 :deep() 覆盖(0,4,0),
步骤胶囊被撑成整行、只剩第一个可见并出现横向滚动条。
新增非 scoped 样式用更高特异性复位宽度,并压掉布局级背景与内边距。
实测(真实 Chrome,1000px 视口,与预览 iframe 同宽):
修复前 胶囊宽 952px x4、导航区 scrollWidth 3874/952(溢出);
修复后 214/169/199/200px、952/952(无溢出),与学生端外观一致。
2 months ago
qinzhenpen
6edf32a7b5
feat(studentDemo): implement demo session handling and role management
...
Added functionality to manage student demo sessions, ensuring the role is fixed to student to prevent unauthorized access. Introduced a new method to unwrap demo payloads and save session data securely. Updated navigation logic to redirect users appropriately based on their role, enhancing the user experience during demo sessions.
2 months ago
陈沅
a044548c95
feat: hide task brief in review preview
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