@push('styles') @endpush @push('scripts') @endpush

智能出卷系统

基于知识点掌握度,智能生成个性化试卷

基本信息

针对性出卷

当前选择的教师
{{ $this->getSelectedTeacherName() }}
当前选择的学生
{{ $this->getSelectedStudentName() }}
@if($selectedTeacherId && $selectedStudentId)
针对性出卷已启用
将根据所选学生的薄弱知识点进行智能推荐,建议自动勾选相关知识点
@endif
@if($selectedStudentId && $filterByStudentWeakness && count($this->studentWeaknesses) > 0)

学生薄弱知识点 (共{{ count($this->studentWeaknesses) }}个)

以下是根据该学生的答题数据自动分析出的薄弱知识点(共{{ count($this->studentWeaknesses) }}个)。 请手动勾选您希望该学生练习的知识点,或点击下方按钮进行批量操作。

@foreach($this->studentWeaknesses as $weakness) @php $isSelected = in_array($weakness['kp_code'], $selectedKpCodes); $masteryPercent = round(($weakness['mastery'] ?? 0) * 100, 1); $weaknessLevel = $weakness['weakness_level'] ?? (1 - ($weakness['mastery'] ?? 0)); $priority = $weakness['priority'] ?? '中'; $priorityColor = $priority === '高' ? 'bg-red-100 text-red-800 border-red-200' : ($priority === '中' ? 'bg-yellow-100 text-yellow-800 border-yellow-200' : 'bg-green-100 text-green-800 border-green-200'); @endphp
@if($isSelected) @else @endif
{{ $weakness['kp_name'] ?? $weakness['kp_code'] }} ({{ $weakness['kp_code'] }})
掌握度: {{ $masteryPercent }}%
练习次数: {{ $weakness['practice_count'] ?? 0 }}
成功率: {{ round(($weakness['success_rate'] ?? 0) * 100, 1) }}%
优先级: {{ $priority }}
@endforeach
已选择 {{ count($selectedKpCodes) }} 个知识点
@endif

知识点选择

已选择: {{ count($selectedKpCodes) }} 个
@foreach($this->knowledgePoints as $kp) @endforeach
@php $hasTeacherStudent = !empty($selectedTeacherId) && !empty($selectedStudentId); $hasKnowledgePoints = count($selectedKpCodes) > 0; $questionCountValid = $totalQuestions >= 6; $readyToGenerate = $this->canGenerate(); $missingSteps = []; if (!$hasTeacherStudent) { $missingSteps[] = '选择教师与学生'; } if (!$hasKnowledgePoints) { $missingSteps[] = '勾选至少 1 个知识点'; } if (!$questionCountValid) { $missingSteps[] = '题目数量需 ≥ 6 题'; } @endphp

出卷前检查

{{ $readyToGenerate ? '可以生成' : '待完善' }}
教师 / 学生

{{ $hasTeacherStudent ? '已选择:' . $this->getSelectedTeacherName() . ' / ' . $this->getSelectedStudentName() : '请选择教师并选择其学生后出卷' }}

知识点选择

{{ $hasKnowledgePoints ? '已选 ' . count($selectedKpCodes) . ' 个知识点' : '请勾选学生薄弱点或手动选择知识点' }}

题目数量

{{ $questionCountValid ? '将生成 ' . $totalQuestions . ' 题' : '题目数量需不少于 6 题' }}

@unless($readyToGenerate)
完成以下步骤后再点击生成:{{ implode(' / ', $missingSteps) ?: '所有条件已满足' }}
@endunless @if($generatedPaperId)
生成成功
已生成试卷ID: {{ $generatedPaperId }}

试卷预览

@endif