fix(training-pdf-import): 修复培训试题PDF导入判断题解析

This commit is contained in:
runny committed 2026-07-06 01:39:08 +08:00
1 parent 3a22df736e
commit 91758ef2b4
19 files changed
+1767 -12

No files matched your search

+63
View File
@@ -28,6 +28,13 @@
"reports": "Data Reports",
"schedules": "Schedule Management"
},
"platformApps": {
"guideUsage": "Guide Usage",
"generalGuide": "General Guide",
"trainingVideo": "Employee Training Video",
"trainingExamPdf": "Employee Training Exam PDF",
"guideUsageHint": "The training workspace will prioritize guides marked as employee training video or employee training exam PDF."
},
"dash": {
"activeAgents": "Active Agents",
"totalUsers": "Total Users",
@@ -85,6 +92,9 @@
"email": "Email",
"department": "Department",
"role": "Role",
"featurePermissions": "Feature Permissions",
"trainingHrManage": "Training HR Admin",
"trainingHrManageHint": "Allows this user to open the employee training agent HR Management view for stats, filtering, and Excel export.",
"password": "Password",
"passwordHint": "(leave blank to keep)",
"noAgents": "No agents available."
@@ -203,6 +213,58 @@
"pollInterval": "Progress refresh interval (seconds)",
"lockInput": "Prevent sending new messages while a task is running",
"scheduleTaskRequired": "Please select a linked schedule first"
},
"training": {
"title": "Employee Training Configuration",
"subtitle": "Configure the training workspace pass line, review points, and question bank. After saving, the employee training page will read this backend content first.",
"enable": "Enable employee training workspace",
"enableHint": "When enabled, this agent uses the training flow of video, review, exam, and settlement.",
"disabledHint": "When disabled, this agent will not show the employee training workspace. Existing training content remains stored in the backend.",
"passScore": "Passing score",
"passScoreHint": "The frontend exam and result copy both use this percentage score as the pass line.",
"summaryPoints": "Review points",
"summaryPointsPlaceholder": "One item per line, for example: Salary is paid on the 15th of each month",
"summaryChecklist": "Must know before the exam",
"summaryChecklistPlaceholder": "One item per line, for example: Scores below 90 require a retake",
"questionBank": "Question bank",
"questionHint": "Supports single choice and true or false questions. Employees will use the updated bank immediately after saving.",
"emptyQuestionBank": "No question bank configured yet. The employee view will fall back to the default bank.",
"importFromPdf": "Import From Exam PDF",
"importingPdf": "Parsing PDF...",
"importPdfHint": "The system will parse the uploaded exam PDF \"{fileName}\" first. You can still review and edit the result manually after import.",
"importPdfMissing": "This agent does not have any uploaded guide marked as Employee Training Exam PDF yet. Please upload it first in Platform App Guides.",
"importPdfCreateFirst": "Please save this agent first, then import the question bank from an uploaded exam PDF.",
"importPdfAgentRequired": "Please save this agent first before importing the exam PDF",
"importPdfSuccess": "Imported {count} questions from \"{fileName}\"",
"importPdfPartialSuccess": "Imported {count} questions. These question numbers were skipped: {skipped}",
"importPdfOcrUsed": "This import was completed through OCR. Please review the prompts, options, and answers carefully.",
"importPdfOcrFallback": "Native PDF text parsing failed, so the import automatically fell back to OCR. Please review the prompts, options, and answers carefully.",
"importPdfWarnings": "Parsing notes: {warnings}",
"addQuestion": "Add question",
"removeQuestion": "Remove question",
"questionCardTitle": "Question {index}",
"questionId": "Question ID",
"questionIdPlaceholder": "For example: q1",
"questionType": "Question type",
"single": "Single choice",
"boolean": "True or false",
"correctAnswer": "Correct answer",
"booleanTrue": "True",
"booleanFalse": "False",
"questionPrompt": "Prompt",
"questionPromptPlaceholder": "Enter the question content",
"questionExplanation": "Explanation",
"questionExplanationPlaceholder": "Enter the explanation shown to the learner after answering",
"questionOptions": "Options",
"addOption": "Add option",
"optionLabel": "Option {label}",
"optionPlaceholder": "Enter option text",
"validation": {
"questionRequired": "Please configure at least one training question",
"questionPromptRequired": "Question {index} prompt is required",
"questionSingleOptions": "Question {index} needs at least 2 valid options",
"questionAnswerRequired": "Please choose the correct answer for question {index}"
}
}
},
"question": {
@@ -1023,6 +1085,7 @@
},
"role": {
"user": "User",
"hr": "HR",
"admin": "Admin",
"guest": "Guest"
},
+63
View File
@@ -28,6 +28,13 @@
"reports": "รายงานข้อมูล",
"schedules": "Schedule Management"
},
"platformApps": {
"guideUsage": "ประเภทการใช้งานเอกสาร",
"generalGuide": "คู่มือทั่วไป",
"trainingVideo": "วิดีโออบรมพนักงาน",
"trainingExamPdf": "PDF ข้อสอบอบรมพนักงาน",
"guideUsageHint": "พื้นที่อบรมจะให้ความสำคัญกับเอกสารที่ทำเครื่องหมายเป็นวิดีโออบรมพนักงานหรือ PDF ข้อสอบอบรมพนักงานก่อน"
},
"dash": {
"activeAgents": "ตัวแทนที่ใช้งานอยู่",
"totalUsers": "ผู้ใช้ทั้งหมด",
@@ -85,6 +92,9 @@
"email": "อีเมล",
"department": "แผนก",
"role": "บทบาท",
"featurePermissions": "สิทธิ์ฟีเจอร์",
"trainingHrManage": "จัดการ HR การฝึกอบรม",
"trainingHrManageHint": "เมื่อเปิดแล้ว ผู้ใช้นี้จะเข้าใช้มุมมอง HR 管理 ใน employee training agent เพื่อดูสถิติ คัดกรองข้อมูล และส่งออก Excel ได้",
"password": "รหัสผ่าน",
"passwordHint": "(เว้นว่างไว้หากไม่ต้องการเปลี่ยน)",
"noAgents": "ไม่มีตัวแทนที่ใช้ได้"
@@ -203,6 +213,58 @@
"pollInterval": "ช่วงรีเฟรชความคืบหน้า (วินาที)",
"lockInput": "ห้ามส่งข้อความใหม่ขณะงานกำลังทำงาน",
"scheduleTaskRequired": "โปรดเลือกตารางงานที่เชื่อมก่อน"
},
"training": {
"title": "การตั้งค่าการอบรมพนักงาน",
"subtitle": "กำหนดคะแนนผ่าน ประเด็นทบทวน และคลังข้อสอบของ workspace การอบรม หลังบันทึกแล้ว หน้าการอบรมพนักงานจะอ่านค่าจาก backend นี้ก่อน",
"enable": "เปิดใช้ workspace การอบรมพนักงาน",
"enableHint": "เมื่อเปิดใช้ Agent นี้จะใช้ลำดับวิดีโอ ทบทวน สอบ และสรุปผล",
"disabledHint": "เมื่อปิดใช้ Agent นี้จะไม่แสดง workspace การอบรมพนักงาน แต่ข้อมูลการอบรมที่กรอกไว้จะยังคงอยู่ใน backend",
"passScore": "คะแนนผ่าน",
"passScoreHint": "ข้อสอบหน้าเว็บและข้อความผลลัพธ์จะใช้คะแนนเปอร์เซ็นต์นี้เป็นเกณฑ์ผ่าน",
"summaryPoints": "ประเด็นทบทวน",
"summaryPointsPlaceholder": "หนึ่งบรรทัดต่อหนึ่งข้อ เช่น เงินเดือนจ่ายทุกวันที่ 15",
"summaryChecklist": "สิ่งที่ต้องรู้ก่อนสอบ",
"summaryChecklistPlaceholder": "หนึ่งบรรทัดต่อหนึ่งข้อ เช่น คะแนนต่ำกว่า 90 ต้องสอบใหม่",
"questionBank": "คลังข้อสอบ",
"questionHint": "รองรับข้อสอบแบบปรนัยและถูกหรือผิด หลังบันทึกแล้วพนักงานจะใช้ชุดข้อสอบใหม่นี้ทันที",
"emptyQuestionBank": "ยังไม่ได้ตั้งค่าคลังข้อสอบ ฝั่งพนักงานจะใช้คลังข้อสอบเริ่มต้นแทน",
"importFromPdf": "นำเข้าจาก PDF ข้อสอบ",
"importingPdf": "กำลังแปลง PDF...",
"importPdfHint": "ระบบจะใช้ไฟล์ PDF ข้อสอบ \"{fileName}\" ที่อัปโหลดไว้เพื่อแปลงเป็นคลังข้อสอบก่อน และยังแก้ไขต่อด้วยมือได้",
"importPdfMissing": "Agent นี้ยังไม่มีไฟล์ที่ถูกทำเครื่องหมายเป็น PDF ข้อสอบอบรมพนักงาน กรุณาอัปโหลดก่อนในหน้าคู่มือแอป",
"importPdfCreateFirst": "กรุณาบันทึก Agent นี้ก่อน แล้วจึงนำเข้าคลังข้อสอบจาก PDF ที่อัปโหลดไว้",
"importPdfAgentRequired": "กรุณาบันทึก Agent นี้ก่อน แล้วจึงนำเข้า PDF ข้อสอบ",
"importPdfSuccess": "นำเข้า {count} ข้อจาก \"{fileName}\" แล้ว",
"importPdfPartialSuccess": "นำเข้าได้ {count} ข้อ และข้อต่อไปนี้ไม่สามารถแปลงได้: {skipped}",
"importPdfOcrUsed": "การนำเข้าครั้งนี้เสร็จสิ้นด้วย OCR กรุณาตรวจทานโจทย์ ตัวเลือก และคำตอบอย่างละเอียด",
"importPdfOcrFallback": "การแยกข้อความจาก PDF แบบปกติล้มเหลว ระบบจึงสลับไปใช้ OCR อัตโนมัติ กรุณาตรวจทานโจทย์ ตัวเลือก และคำตอบอย่างละเอียด",
"importPdfWarnings": "หมายเหตุการแปลง: {warnings}",
"addQuestion": "เพิ่มข้อสอบ",
"removeQuestion": "ลบข้อสอบ",
"questionCardTitle": "ข้อสอบ {index}",
"questionId": "รหัสข้อสอบ",
"questionIdPlaceholder": "เช่น q1",
"questionType": "ประเภทข้อสอบ",
"single": "ปรนัย",
"boolean": "ถูกหรือผิด",
"correctAnswer": "คำตอบที่ถูกต้อง",
"booleanTrue": "ถูก",
"booleanFalse": "ผิด",
"questionPrompt": "คำถาม",
"questionPromptPlaceholder": "กรอกข้อความคำถาม",
"questionExplanation": "คำอธิบาย",
"questionExplanationPlaceholder": "กรอกคำอธิบายที่จะแสดงให้พนักงานหลังตอบ",
"questionOptions": "ตัวเลือก",
"addOption": "เพิ่มตัวเลือก",
"optionLabel": "ตัวเลือก {label}",
"optionPlaceholder": "กรอกข้อความตัวเลือก",
"validation": {
"questionRequired": "กรุณาตั้งค่าข้อสอบการอบรมอย่างน้อย 1 ข้อ",
"questionPromptRequired": "ข้อ {index} ต้องกรอกคำถาม",
"questionSingleOptions": "ข้อ {index} ต้องมีตัวเลือกที่ใช้ได้อย่างน้อย 2 ตัวเลือก",
"questionAnswerRequired": "กรุณาเลือกคำตอบที่ถูกต้องของข้อ {index}"
}
}
},
"question": {
@@ -882,6 +944,7 @@
},
"role": {
"user": "ผู้ใช้ทั่วไป",
"hr": "HR",
"admin": "ผู้ดูแลระบบ",
"guest": "ผู้เยี่ยมชม"
},
+63
View File
@@ -29,6 +29,13 @@
"reports": "数据报表",
"schedules": "排程管理"
},
"platformApps": {
"guideUsage": "资料用途",
"generalGuide": "通用指南",
"trainingVideo": "员工培训视频",
"trainingExamPdf": "员工培训试题 PDF",
"guideUsageHint": "培训工作区会优先读取“员工培训视频”和“员工培训试题 PDF”这两类资料。"
},
"dash": {
"activeAgents": "活跃应用",
"totalUsers": "总用户数",
@@ -86,6 +93,9 @@
"email": "邮箱",
"department": "部门",
"role": "角色",
"featurePermissions": "功能权限",
"trainingHrManage": "培训 HR 管理",
"trainingHrManageHint": "勾选后可进入员工培训 Agent 的【HR 管理】视图,查看统计、筛选记录并导出 Excel。",
"password": "密码",
"passwordHint": "(留空表示不修改)",
"noAgents": "暂无可用应用"
@@ -204,6 +214,58 @@
"pollInterval": "进度刷新间隔(秒)",
"lockInput": "任务执行期间禁止发送新消息",
"scheduleTaskRequired": "请先选择关联的排程任务"
},
"training": {
"title": "员工培训配置",
"subtitle": "配置培训工作区的及格线、复盘要点和题库。保存后,员工培训页会优先读取这里的后台内容。",
"enable": "启用员工培训工作区",
"enableHint": "开启后,当前 Agent 会使用“视频 -> 复盘 -> 考试 -> 结算”的培训工作区流程。",
"disabledHint": "关闭后,当前 Agent 不展示员工培训工作区;已填写的培训配置仍会保留在后台。",
"passScore": "及格线",
"passScoreHint": "按百分制判定是否通过,前台考试和结果文案会同步使用这个分数。",
"summaryPoints": "知识点复盘",
"summaryPointsPlaceholder": "每行一条,例如:工资每月 15 号发放",
"summaryChecklist": "考前必知",
"summaryChecklistPlaceholder": "每行一条,例如:低于 90 分必须重新考试",
"questionBank": "题库",
"questionHint": "支持单选题和判断题;保存后员工考试会即时使用新的题库。",
"emptyQuestionBank": "暂未配置题库,员工端会回退到默认题库。",
"importFromPdf": "从试题 PDF 导入",
"importingPdf": "正在解析 PDF...",
"importPdfHint": "将优先使用已上传的试题 PDF《{fileName}》解析题库,导入后仍可继续人工调整。",
"importPdfMissing": "当前 Agent 还没有上传并标记“员工培训试题 PDF”的资料,请先去“平台应用说明”上传。",
"importPdfCreateFirst": "请先保存当前 Agent,再从已上传的试题 PDF 导入题库。",
"importPdfAgentRequired": "请先保存当前 Agent,再导入试题 PDF",
"importPdfSuccess": "已从《{fileName}》导入 {count} 道题目",
"importPdfPartialSuccess": "已导入 {count} 道题目,以下题号未识别成功:{skipped}",
"importPdfOcrUsed": "本次导入通过 OCR 识别完成,建议重点复核题干、选项和答案。",
"importPdfOcrFallback": "原生 PDF 文本解析失败,已自动回退到 OCR 识别,建议重点复核题干、选项和答案。",
"importPdfWarnings": "解析提示:{warnings}",
"addQuestion": "添加题目",
"removeQuestion": "删除题目",
"questionCardTitle": "题目 {index}",
"questionId": "题目编号",
"questionIdPlaceholder": "例如:q1",
"questionType": "题型",
"single": "单选题",
"boolean": "判断题",
"correctAnswer": "正确答案",
"booleanTrue": "正确",
"booleanFalse": "错误",
"questionPrompt": "题干",
"questionPromptPlaceholder": "请输入题目内容",
"questionExplanation": "解析",
"questionExplanationPlaceholder": "请输入答题解析,答错后会直接展示给员工",
"questionOptions": "选项",
"addOption": "添加选项",
"optionLabel": "选项 {label}",
"optionPlaceholder": "请输入选项内容",
"validation": {
"questionRequired": "请至少配置一道培训题目",
"questionPromptRequired": "第 {index} 题题干不能为空",
"questionSingleOptions": "第 {index} 题至少需要 2 个有效选项",
"questionAnswerRequired": "第 {index} 题请选择正确答案"
}
}
},
"question": {
@@ -1003,6 +1065,7 @@
},
"role": {
"user": "普通用户",
"hr": "HR",
"admin": "管理员",
"guest": "访客"
},
+63
View File
@@ -28,6 +28,13 @@
"reports": "數據報表",
"schedules": "排程管理"
},
"platformApps": {
"guideUsage": "資料用途",
"generalGuide": "通用指南",
"trainingVideo": "員工培訓視頻",
"trainingExamPdf": "員工培訓試題 PDF",
"guideUsageHint": "培訓工作區會優先讀取「員工培訓視頻」和「員工培訓試題 PDF」這兩類資料。"
},
"dash": {
"activeAgents": "活躍應用",
"totalUsers": "總用戶數",
@@ -85,6 +92,9 @@
"email": "郵箱",
"department": "部門",
"role": "角色",
"featurePermissions": "功能權限",
"trainingHrManage": "培訓 HR 管理",
"trainingHrManageHint": "勾選後可進入員工培訓 Agent 的【HR 管理】視圖,查看統計、篩選記錄並匯出 Excel。",
"password": "密碼",
"passwordHint": "(留空表示不修改)",
"noAgents": "暫無可用應用"
@@ -203,6 +213,58 @@
"pollInterval": "進度刷新間隔(秒)",
"lockInput": "任務執行期間禁止發送新訊息",
"scheduleTaskRequired": "請先選擇關聯的排程任務"
},
"training": {
"title": "員工培訓配置",
"subtitle": "配置培訓工作區的及格線、複盤要點和題庫。保存後,員工培訓頁會優先讀取這裡的後台內容。",
"enable": "啟用員工培訓工作區",
"enableHint": "開啟後,當前 Agent 會使用「影片 -> 複盤 -> 考試 -> 結算」的培訓工作區流程。",
"disabledHint": "關閉後,當前 Agent 不顯示員工培訓工作區;已填寫的培訓配置仍會保留在後台。",
"passScore": "及格線",
"passScoreHint": "按百分制判定是否通過,前台考試和結果文案會同步使用這個分數。",
"summaryPoints": "知識點複盤",
"summaryPointsPlaceholder": "每行一條,例如:工資每月 15 號發放",
"summaryChecklist": "考前必知",
"summaryChecklistPlaceholder": "每行一條,例如:低於 90 分必須重新考試",
"questionBank": "題庫",
"questionHint": "支援單選題和判斷題;保存後員工考試會即時使用新的題庫。",
"emptyQuestionBank": "暫未配置題庫,員工端會回退到預設題庫。",
"importFromPdf": "從試題 PDF 導入",
"importingPdf": "正在解析 PDF...",
"importPdfHint": "將優先使用已上傳的試題 PDF《{fileName}》解析題庫,導入後仍可繼續人工調整。",
"importPdfMissing": "當前 Agent 還沒有上傳並標記「員工培訓試題 PDF」的資料,請先去「平台應用說明」上傳。",
"importPdfCreateFirst": "請先保存當前 Agent,再從已上傳的試題 PDF 導入題庫。",
"importPdfAgentRequired": "請先保存當前 Agent,再導入試題 PDF",
"importPdfSuccess": "已從《{fileName}》導入 {count} 道題目",
"importPdfPartialSuccess": "已導入 {count} 道題目,以下題號未識別成功:{skipped}",
"importPdfOcrUsed": "本次導入透過 OCR 識別完成,建議重點複核題幹、選項與答案。",
"importPdfOcrFallback": "原生 PDF 文字解析失敗,已自動回退至 OCR 識別,建議重點複核題幹、選項與答案。",
"importPdfWarnings": "解析提示:{warnings}",
"addQuestion": "添加題目",
"removeQuestion": "刪除題目",
"questionCardTitle": "題目 {index}",
"questionId": "題目編號",
"questionIdPlaceholder": "例如:q1",
"questionType": "題型",
"single": "單選題",
"boolean": "判斷題",
"correctAnswer": "正確答案",
"booleanTrue": "正確",
"booleanFalse": "錯誤",
"questionPrompt": "題幹",
"questionPromptPlaceholder": "請輸入題目內容",
"questionExplanation": "解析",
"questionExplanationPlaceholder": "請輸入答題解析,答錯後會直接展示給員工",
"questionOptions": "選項",
"addOption": "添加選項",
"optionLabel": "選項 {label}",
"optionPlaceholder": "請輸入選項內容",
"validation": {
"questionRequired": "請至少配置一道培訓題目",
"questionPromptRequired": "第 {index} 題題幹不能為空",
"questionSingleOptions": "第 {index} 題至少需要 2 個有效選項",
"questionAnswerRequired": "第 {index} 題請選擇正確答案"
}
}
},
"question": {
@@ -883,6 +945,7 @@
},
"role": {
"user": "普通用戶",
"hr": "HR",
"admin": "管理員",
"guest": "訪客"
},