Commit Graph

126 Commits (2985fce54f4a43b6aa8f5f944208e205dd390352)

Author SHA1 Message Date
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 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 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 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
chenyuan ae64fb3465 fix: BI可视化分析改走/bi/同机反代修复跨域丢Cookie弹登录;AI助学/助评前置校验提示中文化;教师端实训管理文案与搜索翻页对齐管理端 2 months ago
qinzhenpen 4b20ea3d99 refactor: 统一项目名称为互联网产品开发实训系统并优化代码格式
- 替换所有文件中的项目名称“电商互联网产品开发实训系统”为“互联网产品开发实训系统”
- 优化多个文件的代码换行格式,提升可读
- 停用教师端和班级管理中院系/专业相关的旧逻辑
- 设计登录页ui
2 months ago
qinzhenpen e175e3e4f9 修改考试时长最大值限制问题 2 months ago
qinzhenpen 623771ec6b Merge remote-tracking branch 'origin/fix/exam-question-access-material-excel-delete-draft' into dev-QQq 2 months ago
qinzhenpen 2b640c32f5 feat(考试系统): 增加题目来源筛选、侧边栏变量、题目排序及分页功能 2 months ago
chenyuan 5b16fc5be6 feat: 简答题资料支持上传Excel;未发布考试增加删除按钮
- 教师端/平台管理端题目资料上传的 accept 增加 .xls/.xlsx
- 考试列表"未发布"状态增加删除按钮,确认文案区分未发布与已结束
2 months ago
qinzhenpen 6c1a8149ae feat(考试编辑器): 新增题型每题分值配置项
新增每题分值列到分数表格,添加分值输入组件及联动更新逻辑,调整表格最小宽度适配新增列
2 months ago
qinzhenpen 6d9fe83418 feat: Implement pagination for question list and update UI components
Added front-end pagination to the question list, allowing users to navigate through questions more efficiently. Updated the question loading function to reset the page on new queries. Additionally, modified the UI to hide the project selection temporarily and improved the layout of the question table and pagination controls for better user experience.
2 months ago
陈沅 5209376aa6 选择题功能样式统一为系统主题:弹窗主色改#2563eb系(边框/浅底/文字对齐teacher-light),编辑题目按钮升级为主按钮蓝底白字,两端一致 2 months ago
陈沅 68f0a69cb7 第一步选择题编辑按钮挪至第一个步骤行旁(白名单任务):配置行移除,从题库选题入口收进编辑弹窗;查看模式步骤1旁显示已配置题数 2 months ago
陈沅 b26bf7a429 merge: 合并dev-QQq分支(改密码/学生端演示/分页样式/考试编辑器调整)到master 2 months ago
陈沅 d2de3d3890 第一步选择题支持从题库选题:新增共用选题弹窗(仅单选题、按题干去重、复制快照转step_one_questions格式),教师端取本校题库(scope=school),平台端取平台题库 2 months ago
陈沅 ca1c5d5886 实训任务编辑接入第一步选择题配置:教师端与平台端抽屉新增选择题入口(仅新产品调查/行业需求/竞争环境三个白名单任务),复用StepOneChoiceQuestionEditor,保存随任务配置持久化 2 months ago
qinzhenpen 27dabb1d1c Merge remote-tracking branch 'origin/master' into dev-QQq 2 months ago
qinzhenpen 60a394a18c refactor(exam/editor): simplify score table by removing unnecessary score input fields
Removed the score input fields from the score table and adjusted the table header accordingly. This change streamlines the exam editor interface, focusing on essential information while maintaining functionality for score calculations. Additionally, cleaned up related CSS styles to reflect the updated layout.
2 months ago
陈沅 b1fc16c6c1 教师端实训任务编辑:步骤数量与顺序固定,移除新增/删除步骤入口,仅允许修改步骤名称 2 months ago
qinzhenpen 4fe83a5c9f Merge remote-tracking branch 'origin/master' into dev-QQq 2 months ago
陈沅 e7fd1027fd 实训任务四类资料按需求文档命名:教师端/平台端抽屉支持案例资料、案例视频、实训指导手册、AI排错指导手册上传;学生端未上传的资料按钮直接隐藏 2 months ago
qinzhenpen a751e04cc7 merge: merge origin/master into dev-QQq (take theirs on conflicts) 2 months ago
qinzhenpen 181e657db4 feat(Navbar): add change password option and dialog
Introduced a new dropdown item in the Navbar for changing the password, along with a corresponding ChangePasswordDialog component. The dialog is triggered when the user selects the change password option, enhancing user account management. Additionally, updated the command handling to manage the visibility of the password change dialog and added a success handler to prompt users to log out after a successful password change.
2 months ago
陈沅 f120701ebe 新建考试选题改为按校题库(scope=school);步骤条与考试列表起止时间样式优化 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
chenyuan f8174e5a0c feat: complete exam and teacher page updates 2 months ago
qinzhenpen fbba3b28d6 feat: 新增学生端浅色模式样式
新增学生端教育蓝浅色主题样式,覆盖Element Plus组件及自定义样式,适配学生端界面风格,添加KeepAlive支持使考试列表进入页面自动刷新
2 months ago
qinzhenpen 63f717ece4 feat: 新增AI智能出题功能并优化教师端样式
新增AI智能出题页面路由和完整功能实现,支持按要求生成各类试题
移除Element Plus下拉菜单旧暗色样式,统一使用默认主题适配亮色模式
优化教师端考试列表布局、按钮样式及表单控件,提升视觉一致性
调整正确答案列显示方式,新增悬浮tooltip展示完整内容
2 months ago