feat(training): 完善安全培训题库与考试交互

修复 PDF 导入判断和填空题解析,支持文本题判分、回顾改答及安全培训三级流程校验。
This commit is contained in:
runny committed 2026-08-18 01:12:04 +08:00
1 parent ec4ed9b67d
commit e62e4961d4
19 files changed
+721 -48

No files matched your search

+6 -1
View File
@@ -1074,6 +1074,10 @@
"correctAnswer": "Correct answer: {answer}",
"nextQuestion": "Next Question",
"submitPaper": "Submit Paper",
"fillPlaceholder": "Enter your fill-in answer",
"essayPlaceholder": "Enter your response",
"submitTextAnswer": "Submit Answer",
"textAnswerRecorded": "Answer recorded; it will be graded when you submit the paper",
"finishExam": "Finish Exam"
},
"result": {
@@ -1179,7 +1183,8 @@
"persistBody": "The current exam result has not been written to the database, so the HR console and statistics will not update",
"loadTitle": "Training record load failed",
"loadBody": "The training record cannot be loaded from the database right now, so the page may not reflect the latest result",
"questionBankEmpty": "The training question bank is empty. Please maintain it first in the Agent configuration."
"questionBankEmpty": "The training question bank is empty. Please maintain it first in the Agent configuration.",
"safetyLearningIncomplete": "Please complete all company-level, department-level, and team-level training materials before taking the exam."
},
"summaryPoints": [
"Salary is paid on the 15th of each month, and attendance or leave requests must go through OA.",
+6 -1
View File
@@ -1074,6 +1074,10 @@
"correctAnswer": "คำตอบที่ถูกต้อง: {answer}",
"nextQuestion": "ข้อถัดไป",
"submitPaper": "ส่งข้อสอบ",
"fillPlaceholder": "กรอกคำตอบเติมคำ",
"essayPlaceholder": "กรอกคำตอบของคุณ",
"submitTextAnswer": "ส่งคำตอบ",
"textAnswerRecorded": "บันทึกคำตอบแล้ว ระบบจะตรวจเมื่อส่งข้อสอบ",
"finishExam": "จบการสอบ"
},
"result": {
@@ -1179,7 +1183,8 @@
"persistBody": "ผลสอบปัจจุบันยังไม่ได้เขียนลงฐานข้อมูล ดังนั้นหน้าจอ HR และสถิติจะไม่อัปเดต",
"loadTitle": "โหลดประวัติการอบรมไม่สำเร็จ",
"loadBody": "ไม่สามารถอ่านประวัติการอบรมจากฐานข้อมูลได้ในขณะนี้ ดังนั้นหน้าปัจจุบันอาจไม่ใช่ผลล่าสุด",
"questionBankEmpty": "คลังข้อสอบการอบรมว่างอยู่ โปรดตั้งค่าใน Agent configuration ก่อน"
"questionBankEmpty": "คลังข้อสอบการอบรมว่างอยู่ โปรดตั้งค่าใน Agent configuration ก่อน",
"safetyLearningIncomplete": "โปรดเรียนเนื้อหาการฝึกอบรมระดับบริษัท ระดับแผนก และระดับทีมให้ครบถ้วนก่อนเข้าสอบ"
},
"summaryPoints": [
"เงินเดือนจ่ายทุกวันที่ 15 ของเดือน และการลาหรือการลงเวลาต้องทำผ่าน OA",
+6 -1
View File
@@ -1108,6 +1108,10 @@
"correctAnswer": "正确答案:{answer}",
"nextQuestion": "下一题",
"submitPaper": "提交答卷",
"fillPlaceholder": "请输入填空答案",
"essayPlaceholder": "请输入您的回答",
"submitTextAnswer": "提交作答",
"textAnswerRecorded": "作答已记录,提交答卷后自动评分",
"finishExam": "完成考试"
},
"result": {
@@ -1286,7 +1290,8 @@
"persistBody": "当前考试结果尚未写入数据库,HR 管理与统计不会更新",
"loadTitle": "培训记录读取失败",
"loadBody": "当前无法从数据库读取培训记录,页面展示可能不是最新结果",
"questionBankEmpty": "当前培训题库为空,请先在后台 Agent 配置中维护题库"
"questionBankEmpty": "当前培训题库为空,请先在后台 Agent 配置中维护题库",
"safetyLearningIncomplete": "请先完成公司级、部门级和班组级全部培训资料,再进入考试"
},
"summaryPoints": [
"工资每月 15 号发放,考勤与请假均需要走 OA 流程。",
+6 -1
View File
@@ -1074,6 +1074,10 @@
"correctAnswer": "正確答案:{answer}",
"nextQuestion": "下一題",
"submitPaper": "提交答卷",
"fillPlaceholder": "請輸入填空答案",
"essayPlaceholder": "請輸入您的回答",
"submitTextAnswer": "提交作答",
"textAnswerRecorded": "作答已記錄,提交答卷後自動評分",
"finishExam": "完成考試"
},
"result": {
@@ -1179,7 +1183,8 @@
"persistBody": "當前考試結果尚未寫入資料庫,HR 管理與統計不會更新",
"loadTitle": "培訓記錄讀取失敗",
"loadBody": "目前無法從資料庫讀取培訓記錄,頁面顯示可能不是最新結果",
"questionBankEmpty": "當前培訓題庫為空,請先在後台 Agent 配置中維護題庫"
"questionBankEmpty": "當前培訓題庫為空,請先在後台 Agent 配置中維護題庫",
"safetyLearningIncomplete": "請先完成公司級、部門級和班組級的全部培訓資料,再進入考試"
},
"summaryPoints": [
"工資每月 15 號發放,考勤與請假均需走 OA 流程。",