Parcourir la source

chore: update exam copy and refine analysis report behavior

yemeishu il y a 2 semaines
Parent
commit
ad1277aa3b

+ 4 - 4
app/Services/ExamTypeStrategy.php

@@ -758,7 +758,7 @@ class ExamTypeStrategy
                 '填空题' => 30,
                 '解答题' => 35,
             ],
-            'paper_name' => $params['paper_name'] ?? ('知识点组_' . now()->format('Ymd_His')),
+            'paper_name' => $params['paper_name'] ?? ('知识点组_' . now()->format('Ymd_His')),
             // 标记这是按知识点组卷,用于后续处理
             'is_knowledge_points_exam' => true,
             'weakness_filter' => $weaknessFilter,
@@ -915,7 +915,7 @@ class ExamTypeStrategy
             'kp_code_list' => $kpCodes,
             'textbook_id' => $textbookId,
             'grade' => $grade,
-            'paper_name' => $params['paper_name'] ?? ('智能组_' . now()->format('Ymd_His')),
+            'paper_name' => $params['paper_name'] ?? ('智能组_' . now()->format('Ymd_His')),
             // 智能组卷:平衡的题型和难度配比
             'question_type_ratio' => [
                 '选择题' => 40,
@@ -1018,7 +1018,7 @@ class ExamTypeStrategy
             'kp_codes' => $kpCodeList,
             'mistake_question_ids' => $basePoolCount < (int) $totalQuestions ? $priorityQuestionIds : [],
             'exclude_question_ids' => $answeredQuestionIds,
-            'paper_name' => $params['paper_name'] ?? ('知识点组_' . now()->format('Ymd_His')),
+            'paper_name' => $params['paper_name'] ?? ('知识点组_' . now()->format('Ymd_His')),
             // 知识点组卷:442配比(配合固定分值5/5/10,各题型贡献均等)
             'question_type_ratio' => [
                 '选择题' => 40,
@@ -1175,7 +1175,7 @@ class ExamTypeStrategy
             'chapter_id_list' => $chapterIdList,
             'textbook_catalog_node_ids' => $textbookCatalogNodeIds, // 【重要】即使kpCodes为空也设置此参数
             'exclude_question_ids' => $answeredQuestionIds,
-            'paper_name' => $params['paper_name'] ?? ('教材组_' . now()->format('Ymd_His')),
+            'paper_name' => $params['paper_name'] ?? ('教材组_' . now()->format('Ymd_His')),
             // 教材组卷:按教材特点分配题型
             'question_type_ratio' => [
                 '选择题' => 40,

+ 3 - 3
app/Support/PaperNaming.php

@@ -10,9 +10,9 @@ class PaperNaming
     {
         return match ($assembleType) {
             0, 9 => '智能摸底',
-            1, 4, 8 => '智能组',
-            2 => '知识点组',
-            3 => '教材组',
+            1, 4, 8 => '智能组',
+            2 => '知识点组',
+            3 => '教材组',
             5 => '智能追练',
             default => throw new InvalidArgumentException("不支持的 assemble_type: {$assembleType}"),
         };

+ 1 - 1
resources/views/pdf/exam-grading.blade.php

@@ -353,7 +353,7 @@
 <body style="page-break-before: always;">
     <div class="page">
     <div class="header">
-        <div style="font-size:22px;font-weight:bold;">判专用</div>
+        <div style="font-size:22px;font-weight:bold;">判专用</div>
         <div style="font-size:18px;">{{ $gradingCode }}</div>
         <div style="display:flex;justify-content:space-between;font-size:14px;margin-top:8px;">
             <span>老师:{{ $teacher['name'] ?? '________' }}</span>

+ 1 - 1
resources/views/pdf/exam-paper.blade.php

@@ -446,7 +446,7 @@
 
     <div class="page">
     <div class="header">
-        <div class="school-name">数学智能测试卷</div>
+        <div class="school-name">数学智能练习题</div>
         <div class="paper-title">{{ $examCode }}</div>
         <div class="info-row">
             <span>老师:{{ $teacher['name'] ?? '________' }}</span>