feat: hide task brief in review preview

bugfix/ai-assessment-evidence-rescore
陈沅 1 month ago
parent 031a5ccc89
commit a044548c95

@ -103,6 +103,7 @@ function isStepNavigation(element) {
<style lang="scss" scoped> <style lang="scss" scoped>
.student-task-readonly-preview :deep(.training-ai-sidebar), .student-task-readonly-preview :deep(.training-ai-sidebar),
.student-task-readonly-preview :deep(.training-ai-evaluation) { display: none !important; } .student-task-readonly-preview :deep(.training-ai-evaluation),
.student-task-readonly-preview :deep(.training-task-brief) { display: none !important; }
.student-task-readonly-preview :deep(.student-training-shell) { grid-template-columns: minmax(0, 1fr) !important; } .student-task-readonly-preview :deep(.student-training-shell) { grid-template-columns: minmax(0, 1fr) !important; }
</style> </style>

@ -47,6 +47,7 @@ assert.doesNotMatch(previewShell, /:global\(html\)|:global\(body\)/, "预览壳
assert.doesNotMatch(previewShell, /pointer-events\s*:/, "预览壳不得用样式禁用学生页面控件"); assert.doesNotMatch(previewShell, /pointer-events\s*:/, "预览壳不得用样式禁用学生页面控件");
assert.match(previewShell, /training-ai-sidebar/, "评阅预览应隐藏 AI 助学"); assert.match(previewShell, /training-ai-sidebar/, "评阅预览应隐藏 AI 助学");
assert.match(previewShell, /training-ai-evaluation/, "评阅预览应隐藏 AI 助评"); assert.match(previewShell, /training-ai-evaluation/, "评阅预览应隐藏 AI 助评");
assert.match(previewShell, /training-task-brief/, "评阅预览应隐藏实训背景、目标和要求");
assert.match(previewShell, /teacher-task-review-preview-height/, "预览页应向外层同步内容高度"); assert.match(previewShell, /teacher-task-review-preview-height/, "预览页应向外层同步内容高度");
assert.match(previewShell, /ResizeObserver/, "预览页内容变化后应重新同步高度"); assert.match(previewShell, /ResizeObserver/, "预览页内容变化后应重新同步高度");
assert.match(reviewPanel, /writeTrainingReviewPreview/); assert.match(reviewPanel, /writeTrainingReviewPreview/);

Loading…
Cancel
Save