Commit Graph

915 Commits (9d288bde92f08600ae46bd535543b30978dcfd97)
 

Author SHA1 Message Date
chenyuan 9d288bde92 fix(training): correct pricing ranges, ROI synchronization and form layouts 1 month ago
chenyuan 1b23ee0332 fix(hardware-cost): separate step-4 save from submit with distinct toasts
saveStepFour hardcoded saveAction SUBMIT, so the step-4 save button also
submitted the task and both paths toasted '成本优化决策已保存', leaving
students unsure whether they had submitted (实训4.1). The toolbar submit
now goes through submitTask() -> SUBMIT + '任务提交成功', while the step
save keeps a SAVE draft + the original toast.
1 month ago
chenyuan c515164653 fix(training): prompt the exact missing step when submitting incomplete tasks
industry-demand-analysis / competitive-environment-analysis /
market-opportunity-selection silently returned when earlier steps were
not passed; now they warn which step to finish first
(请先完成并保存第 N 步,再提交任务) before rejecting the submit.
1 month ago
chenyuan 70c4042461 fix(differentiation): narrow MRD title column so the content column gets the width
table-layout:fixed split the unspecified 75% evenly between the title and
content columns; titles are 2-4 characters so half the title cell read as
an empty phantom column. Give title a fixed 14% (class-based, safe for
sections without the module column) and let the content column take the
remaining width.
1 month ago
chenyuan 90df198bb8 feat(consumer-scenario): compact step-4 table rows and add analysis conclusion box
- lower journey-optimization-table textarea min-height 112px -> 56px:
  both columns hold short text and the tall rows left large blank areas
- add an optional 分析结论 textarea below the step-4 table; persisted as
  journeyConclusion inside step4Answer (registered in
  trainingStepAnswerFields.json panel 4 and the backend ownership guard)
1 month ago
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
qinzhenpen f9f85a512c perf(review): reuse preview iframe and isolate per-student state
- TaskReviewPanel: keep one preview iframe and hot-switch students via
  postMessage instead of rebuilding the SPA on every click; cache class
  task config per class; reset preview scroll on switch.
- Show a loading overlay on the preview container and reveal it only
  after the embedded page reports component + requests + DOM settled.
- StudentTaskReadonlyPreview: two-phase component swap so the previous
  student instance is fully unmounted before the next mounts; sync the
  iframe URL previewKey so context lookups keep working; isolate
  localStorage to stop student pages leaking drafts between previews.
- Block student-answer reads/writes in preview mode even when the
  preview context key cannot be resolved.
1 month ago
qinzhenpen ef7375b026 fix(auth): scope login cookies to current host instead of shared primary domain
Writing Admin-Token/UserInfo to .sztzjy.com made every subdomain system
share and overwrite the same login state. Cookies are now host-only;
legacy shared-domain cookies are still cleaned up on set/remove so stale
duplicates cannot be read back.
1 month ago
chenyuan 47423a05d1 feat(student): widen training score dialog and reference preview 1 month ago
chenyuan 3f0661a77d feat(review): improve reference answer dialog controls and PDF sidebar 1 month ago
chenyuan e621f212f3 feat(training): add WBS Excel import and place table import controls 1 month ago
chenyuan 7fbf5c00c7 feat(training): add Excel templates and imports for numeric tables 1 month ago
chenyuan abba858cd6 feat(training): limit reference answer uploads to PDF 1 month ago
chenyuan b4a2d0c8ad feat(training): add Excel imports and templates for exercises 20 and 21 1 month ago
chenyuan 43257389a6 fix: keep school organization controls consistent and fail closed 1 month ago
chenyuan 9401d2a20a fix: enforce student task access and preserve default task keys 1 month ago
chenyuan d87153795c feat(training): add interview records editor 1 month ago
chenyuan a5c88c1d8c fix(training): add product development process demo answers 1 month ago
chenyuan 94de4d455c fix(training): 市场机会与选择/竞争环境分析页面交互优化
- 组合逻辑列改为仅展示第 2 步补充信息
- 好评率输入样式单元包裹
- 移除冗余的方法引导块
1 month ago
chenyuan 5e304b45a9 docs: 同步主题技能规范与实训页面设计文档 1 month ago
chenyuan 2985fce54f feat(training): 学生上传图片接入AI视觉评分链路
- 各实训页图片上传统一走后端文件存储,供AI评分取证
- 评阅预览壳适配
1 month ago
chenyuan 1b5ba018e3 feat(task-review): 教师端评阅/任务页交互优化与列宽调整
- 评阅面板任务选择与列宽微调,与参考答案预览交互配套
- 任务分配班级下拉与任务页列宽对齐
- 学生首页成绩展示同步
1 month ago
chenyuan 3f1adac990 fix(task): 任务分配班级下拉只显示当前教师自己创建的教学班
- 与后端 requireOwnedTeachingClass 的属主校验对齐,
  避免选中他人班级后保存被 403
- createdBy 比较统一走 sameValue(去空白)
1 month ago
chenyuan 422589fee2 feat(task-review): PDF预览关闭缩略图导航栏(pagemode=none)
- 教师弹窗与学生悬浮的参考答案预览地址追加 #pagemode=none,
  关闭浏览器 PDF 查看器左侧缩略图导航栏,只保留正文预览
- 同步静态测试断言
1 month ago
chenyuan d6e5271ff5 fix(student): 参考答案 objectURL 统一记录便于回收 1 month ago
chenyuan 8edb627495 fix(task-review): 补回参考答案弹窗与iframe样式
- 之前的样式区间替换误删了 .reference-answer-dialog/.reference-answer-frame 样式,
  导致 iframe 以浏览器默认尺寸(304x154)挤在弹窗左侧
- 补回:弹窗900px内 iframe 100%x64vh 铺满,头部底色区分
1 month ago
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 d28e896b86 feat: 参考答案推送开关与学生首页成绩展示
- 任务页(实训任务管理)增加参考答案推送开关,推送后学生端可见
- 学生首页成绩区同步展示AI评分与老师评分
- 静态测试同步更新
1 month ago
chenyuan efd1679952 feat(student): 查看成绩弹窗展示参考答案(老师推送后)
- 老师在任务配置推送参考答案后,学生查看成绩弹窗展示参考答案名称并
  内嵌 PDF 预览(新增学生端预览接口 /key/{taskKey}/reference-answer/preview,
  未推送时接口 404,弹窗不展示该区)
- 分数徽标只要有 AI 评分即可点击查看 AI 评分结果悬浮卡片
1 month ago
chenyuan 2b7ca3d472 feat(student): 任务页分数徽标点击悬浮展示AI评分结果
- 学生端点击工具栏分数徽标(教师端或学生端任一侧触发的AI评分),
  页面内悬浮卡片展示综合评分/评语/逐项评分/优先改进,与学生端AI评分结果一致
- 有AI评分即可点击(教师已批阅的也保留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
chenyuan 603f5711e9 feat(training-task): 实训任务编辑新增参考答案上传(教师端/超管端)
- 资料与步骤区新增参考答案槽位,限 Word 文件(.doc/.docx),配套学生端
  332d33b 预留的 referenceAnswer 展示字段
- 表单归一化与保存 payload 透传 referenceAnswerName/referenceAnswerUrl
1 month ago
chenyuan eb665c55ab fix(class): 教师端班级管理严格按超管组织模式配置渲染
- 5c51a58 让普通路由不再等待学校产品配置接口,班级管理页挂载时配置未就绪,
  一次性 onMounted 判断误按行政班视角定格:列表被 ADMIN 过滤后教学班全部不可见,
  按钮与空态停留在'新增行政班/暂无行政班',配置返回后 Tab 隐藏但过滤已无法纠正
- onMounted 一次性判断改为 watch(adminClassManagementEnabled) 响应式修正,
  行政班管理关闭(TEACHING_CLASS_ONLY)的学校固定教学班视角
- /class/index 路由增加 awaitSchoolProductConfig meta,导航前先等配置接口返回,
  首屏即按配置渲染,消除闪变
1 month ago
qinzhenpen a5b5c05424 style(sidebar): 学生端侧边栏图标替换为层级序号徽标
老师要求去掉图标,学生端侧边栏改用层级序号:
- 有 children 的分组父级编号 1/2/3…,子项 N.M…(与 currentCourseNav 渲染顺序实时对应)
- 直跳工具项(AI 智能助手)不编号,保持纯文字
- 新增 studentNavNumberMap computed 与 .student-menu-index 徽标样式(含 active 高亮、折叠轨道居中)
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 fcb060fde0 refactor(training-task): streamline SVG and input elements for improved readability
- Cleaned up SVG and input element formatting for consistency and readability.
- Ensured proper spacing and alignment in the template structure.
- Enhanced the overall maintainability of the code by reducing unnecessary line breaks and improving element organization.
2 months ago
qinzhenpen 30e5c9ee11 refactor(task-view): implement tree structure for task display with project grouping
- Replaced the table view with a tree structure to enhance task organization by project.
- Introduced project selection checkboxes and task selection within expandable project sections.
- Added computed properties for managing task grouping and selection states.
- Improved loading state handling and empty task display messaging.
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 0e237e5cdb Merge branch 'dev-QQq' of http://118.31.7.2:3000/chenyuan1/dianshang-qianduan into dev-QQq 2 months 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