feat(training): 完成员工培训闭环与管理配置

This commit is contained in:
runny committed 2026-07-06 01:52:55 +08:00
1 parent 91758ef2b4
commit 95f3906779
37 files changed
+1766 -249

No files matched your search

+27 -9
View File
@@ -470,8 +470,8 @@
}
},
"training": {
"badge": "Onboarding Training Workspace",
"title": "Onboarding Training Agent",
"badge": "Employee Training Workspace",
"title": "",
"subtitle": "Complete video learning, knowledge review, one-question-at-a-time testing, and HR reporting in the same chat page.",
"tabs": {
"learner": "Learner",
@@ -481,7 +481,8 @@
"syncLearnerToChat": "Sync learner context to chat",
"syncHrToChat": "Sync HR filters to chat",
"expandWorkspace": "Expand workspace",
"collapseWorkspace": "Collapse workspace"
"collapseWorkspace": "Collapse Workspace",
"viewExamPdf": "View Exam PDF"
},
"steps": {
"video": "Watch Video",
@@ -513,7 +514,7 @@
"title": "Step 3: One-question-at-a-time exam",
"questionCounter": "Question {current} / {total}",
"currentScore": "Current score: {score}",
"passLine": "Pass line: 90 points",
"passLine": "Pass line: {passScore} points",
"correctFeedback": "Correct. Move on to the next question.",
"wrongFeedback": "Incorrect. The correct answer is now shown.",
"selectedAnswer": "Your answer: {answer}",
@@ -526,8 +527,8 @@
"failedTag": "Retake required",
"passTitle": "Congratulations, you passed the onboarding exam",
"failTitle": "This attempt did not meet the requirement",
"passDescription": "The frontend pass-state interaction is complete. Once the backend is connected, it can write training records and the completion date.",
"failDescription": "According to HR rules, any score below 90 requires a full retake until the learner passes.",
"passDescription": "You passed this exam successfully. The score is automatically synced to the HR console and saved into the training record.",
"failDescription": "According to HR rules, any score below {passScore} requires a full retake until the learner passes.",
"scoreLabel": "Final score",
"attemptsLabel": "Attempts",
"correctCount": "Correct answers",
@@ -544,9 +545,9 @@
},
"rules": {
"title": "Exam rules",
"rule1": "There are 20 questions, 5 points each, with a full score of 100.",
"rule1": "There are {total} questions, and the system calculates the result on a 100-point scale.",
"rule2": "The system enforces one question, one answer, one feedback. Wrong answers show the correct answer immediately.",
"rule3": "Any score below 90 is treated as failed and requires a retake.",
"rule3": "Any score below {passScore} is treated as failed and requires a retake.",
"rule4": "HR can view statistics and export Excel from the same chat page."
},
"hr": {
@@ -593,7 +594,24 @@
"afterSummary": "I finished reviewing the knowledge points. Please switch to exam mode and ask the first question.",
"afterPass": "I passed the onboarding training exam with a score of {score}. Please help me generate a short completion summary.",
"afterFail": "I scored {score} in the onboarding training exam and did not pass. Please summarize the weak points and prepare a retake reminder.",
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue."
"examInProgress": "I am taking the onboarding training exam and am currently on question {index}/{total}. Please stay in proctor mode and continue.",
"assistantVideoIntro": "👋 Welcome aboard! I am your onboarding training assistant. Today's training has three steps: watch the video ➡️ review the key knowledge points ➡️ take the quiz ({passScore} points to pass).\n\n▶️ Please start with the onboarding training video. After watching it, move on to the knowledge review.",
"assistantSummaryIntro": "Great. Based on the video, I pulled together the key knowledge points you are most likely to be tested on:",
"assistantSummaryReady": "Ready for the challenge? Click Start Exam directly or reply \"Start Exam\" in the chat.",
"assistantQuestionSingleType": "Single choice",
"assistantQuestionBooleanType": "True or false",
"assistantQuestionReplyHint": "Reply with the option or the answer text directly.",
"assistantResultPass": "🎉 **Congratulations!** Your final score is **{score}**. You passed the onboarding assessment, and your score has been synced to HR automatically.",
"assistantResultFail": "📊 **Exam finished!** Your final score is **{score}**. The passing line is {passScore}. Reply \"Retake Exam\" to try again.",
"startExamCommand": "Start Exam",
"restartExamCommand": "Retake Exam"
},
"errors": {
"persistTitle": "Training record save failed",
"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."
},
"summaryPoints": [
"Salary is paid on the 15th of each month, and attendance or leave requests must go through OA.",
+27 -9
View File
@@ -470,8 +470,8 @@
}
},
"training": {
"badge": "พื้นที่อบรมพนักงานใหม่",
"title": "Onboarding Training Agent",
"badge": "พื้นที่อบรมพนักงาน",
"title": "",
"subtitle": "ทำวิดีโอเรียนรู้ ทบทวนความรู้ สอบทีละข้อ และดูสถิติ HR ได้ในหน้าแชตเดียวกัน",
"tabs": {
"learner": "ผู้เรียน",
@@ -481,7 +481,8 @@
"syncLearnerToChat": "ส่งบริบทผู้เรียนเข้าแชต",
"syncHrToChat": "ส่งตัวกรอง HR เข้าแชต",
"expandWorkspace": "ขยายพื้นที่ทำงาน",
"collapseWorkspace": "ย่อพื้นที่ทำงาน"
"collapseWorkspace": "ย่อพื้นที่ทำงาน",
"viewExamPdf": "ดู PDF ข้อสอบ"
},
"steps": {
"video": "ดูวิดีโอ",
@@ -513,7 +514,7 @@
"title": "ขั้นตอน 3: สอบทีละข้อ",
"questionCounter": "ข้อ {current} / {total}",
"currentScore": "คะแนนปัจจุบัน: {score}",
"passLine": "ผ่านเมื่อได้ 90 คะแนน",
"passLine": "เกณฑ์ผ่าน: {passScore} คะแนน",
"correctFeedback": "ตอบถูก ไปข้อถัดไปได้",
"wrongFeedback": "ตอบผิด ระบบแสดงคำตอบที่ถูกต้องแล้ว",
"selectedAnswer": "คำตอบของคุณ: {answer}",
@@ -526,8 +527,8 @@
"failedTag": "ต้องสอบใหม่",
"passTitle": "ยินดีด้วย คุณผ่านการสอบอบรมพนักงานใหม่แล้ว",
"failTitle": "การสอบครั้งนี้ยังไม่ผ่านเกณฑ์",
"passDescription": "ฝั่งหน้าเว็บรองรับสถานะผ่านแล้ว และสามารถเชื่อมต่อหลังบ้านเพื่อบันทึกผลได้ในขั้นถัดไป",
"failDescription": "ตามกฎของ HR หากได้ต่ำกว่า 90 คะแนน ต้องสอบใหม่จนกว่าจะผ่าน",
"passDescription": "คุณผ่านการสอบครั้งนี้แล้ว ระบบจะซิงก์คะแนนไปยังหน้าจอ HR และบันทึกลงประวัติการอบรมโดยอัตโนมัติ",
"failDescription": "ตามกฎของ HR หากได้ต่ำกว่า {passScore} คะแนน ต้องสอบใหม่จนกว่าจะผ่าน",
"scoreLabel": "คะแนนสุดท้าย",
"attemptsLabel": "จำนวนครั้งที่สอบ",
"correctCount": "จำนวนข้อที่ถูก",
@@ -544,9 +545,9 @@
},
"rules": {
"title": "กติกาการสอบ",
"rule1": "มีทั้งหมด 20 ข้อ ข้อละ 5 คะแนน เต็ม 100 คะแนน",
"rule1": "มีทั้งหมด {total} ข้อ และระบบจะคำนวณผลสอบบนสเกล 100 คะแนน",
"rule2": "ระบบทำงานแบบหนึ่งข้อหนึ่งคำตอบหนึ่งฟีดแบ็ก และจะแสดงคำตอบที่ถูกเมื่อผู้ใช้ตอบผิด",
"rule3": "หากได้ต่ำกว่า 90 คะแนน ถือว่าไม่ผ่านและต้องสอบใหม่",
"rule3": "หากได้ต่ำกว่า {passScore} คะแนน ถือว่าไม่ผ่านและต้องสอบใหม่",
"rule4": "HR สามารถดูสถิติและส่งออก Excel ได้จากหน้าแชตเดียวกัน"
},
"hr": {
@@ -593,7 +594,24 @@
"afterSummary": "ฉันทบทวนความรู้เสร็จแล้ว โปรดเริ่มโหมดสอบและถามข้อแรก",
"afterPass": "ฉันผ่านการสอบอบรมพนักงานใหม่ด้วยคะแนน {score} โปรดช่วยสรุปการอบรมให้สั้น ๆ",
"afterFail": "ฉันได้คะแนน {score} ในการสอบอบรมพนักงานใหม่และยังไม่ผ่าน โปรดสรุปจุดอ่อนและเตือนให้สอบใหม่",
"examInProgress": "ฉันกำลังสอบอบรมพนักงานใหม่ ตอนนี้อยู่ที่ข้อ {index}/{total} โปรดทำหน้าที่เป็นผู้คุมสอบและถามต่อ"
"examInProgress": "ฉันกำลังสอบอบรมพนักงานใหม่ ตอนนี้อยู่ที่ข้อ {index}/{total} โปรดทำหน้าที่เป็นผู้คุมสอบและถามต่อ",
"assistantVideoIntro": "👋 ยินดีต้อนรับสู่บริษัท! ฉันคือผู้ช่วยอบรมพนักงานใหม่ของคุณ วันนี้มี 3 ขั้นตอนคือ ดูวิดีโอ ➡️ ทบทวนความรู้ ➡️ ทำแบบทดสอบ (ผ่านที่ {passScore} คะแนน)\n\n▶️ โปรดเริ่มจากการดูวิดีโออบรมพนักงานใหม่ แล้วจึงเข้าสู่ช่วงทบทวนความรู้",
"assistantSummaryIntro": "ยอดเยี่ยม จากวิดีโอเมื่อครู่นี้ ฉันสรุปประเด็นสำคัญที่มีโอกาสออกสอบไว้ให้แล้ว:",
"assistantSummaryReady": "พร้อมรับความท้าทายหรือยัง? กดเริ่มสอบได้เลย หรือพิมพ์ \"เริ่มสอบ\" ในแชตก็ได้",
"assistantQuestionSingleType": "ปรนัย",
"assistantQuestionBooleanType": "ถูกหรือผิด",
"assistantQuestionReplyHint": "ตอบด้วยตัวเลือกหรือข้อความคำตอบได้โดยตรง",
"assistantResultPass": "🎉 **ยินดีด้วย!** คุณได้คะแนนสุดท้าย **{score}** และผ่านการประเมินพนักงานใหม่แล้ว ระบบได้ซิงก์คะแนนไปยัง HR โดยอัตโนมัติ",
"assistantResultFail": "📊 **สอบเสร็จแล้ว!** คะแนนสุดท้ายของคุณคือ **{score}** เกณฑ์ผ่านคือ {passScore} คะแนน พิมพ์ \"สอบใหม่\" เพื่อเริ่มอีกครั้ง",
"startExamCommand": "เริ่มสอบ",
"restartExamCommand": "สอบใหม่"
},
"errors": {
"persistTitle": "บันทึกประวัติการอบรมไม่สำเร็จ",
"persistBody": "ผลสอบปัจจุบันยังไม่ได้เขียนลงฐานข้อมูล ดังนั้นหน้าจอ HR และสถิติจะไม่อัปเดต",
"loadTitle": "โหลดประวัติการอบรมไม่สำเร็จ",
"loadBody": "ไม่สามารถอ่านประวัติการอบรมจากฐานข้อมูลได้ในขณะนี้ ดังนั้นหน้าปัจจุบันอาจไม่ใช่ผลล่าสุด",
"questionBankEmpty": "คลังข้อสอบการอบรมว่างอยู่ โปรดตั้งค่าใน Agent configuration ก่อน"
},
"summaryPoints": [
"เงินเดือนจ่ายทุกวันที่ 15 ของเดือน และการลาหรือการลงเวลาต้องทำผ่าน OA",
+29 -11
View File
@@ -470,8 +470,8 @@
}
},
"training": {
"badge": "新人培训工作区",
"title": "新人入职培训 Agent",
"badge": "员工培训工作区",
"title": "",
"subtitle": "在同一个 Chat 页面内完成视频学习、知识点复盘、逐题考试以及 HR 管理统计。",
"tabs": {
"learner": "学员端",
@@ -481,7 +481,8 @@
"syncLearnerToChat": "同步学员上下文到聊天",
"syncHrToChat": "同步 HR 筛选到聊天",
"expandWorkspace": "展开工作区",
"collapseWorkspace": "收起工作区"
"collapseWorkspace": "收起工作区",
"viewExamPdf": "查看试题 PDF"
},
"steps": {
"video": "观看视频",
@@ -513,7 +514,7 @@
"title": "第三步:逐题考试",
"questionCounter": "第 {current} / {total} 题",
"currentScore": "当前分数:{score} 分",
"passLine": "及格线:90 分",
"passLine": "及格线:{passScore} 分",
"correctFeedback": "回答正确,继续下一题",
"wrongFeedback": "回答错误,已显示正确答案",
"selectedAnswer": "你的答案:{answer}",
@@ -526,8 +527,8 @@
"failedTag": "需补考",
"passTitle": "恭喜,你已通过新人培训考试",
"failTitle": "本次考试未达标,需要重新考试",
"passDescription": "前端已完成通过态交互,后续接入后端后可直接回写培训记录与完成日期。",
"failDescription": "按照 HR 规则,未达到 90 分必须重新考试,直到最终通过为止。",
"passDescription": "您已顺利通过本次考试,成绩会自动同步到 HR 管理端并计入培训记录。",
"failDescription": "按照 HR 规则,未达到 {passScore} 分必须重新考试,直到最终通过为止。",
"scoreLabel": "最终得分",
"attemptsLabel": "考试次数",
"correctCount": "答对题数",
@@ -544,9 +545,9 @@
},
"rules": {
"title": "考试规则",
"rule1": "共 20 题,每题 5 分,满分 100 分。",
"rule1": "共 {total} 题,系统按百分制自动计算成绩。",
"rule2": "系统按“一题一答一反馈”执行,答错立即展示正确答案。",
"rule3": "低于 90 分判定为未通过,必须重新考试。",
"rule3": "低于 {passScore} 分判定为未通过,必须重新考试。",
"rule4": "HR 管理端可在同一聊天页查看统计并导出 Excel。"
},
"hr": {
@@ -593,7 +594,24 @@
"afterSummary": "我已完成知识点复盘,请切换到考试模式并开始第一题。",
"afterPass": "我已经通过新人培训考试,得分 {score} 分,请帮我生成一段培训完成总结。",
"afterFail": "我本次新人培训考试得分 {score} 分,未达到及格线,请帮我总结错题重点并安排重考提醒。",
"examInProgress": "我正在进行新人培训考试,目前做到第 {index}/{total} 题。题目是:{question}。请保持考官模式,评价我的表现并引导我继续。"
"examInProgress": "我正在进行新人培训考试,目前做到第 {index}/{total} 题。题目是:{question}。请保持考官模式,评价我的表现并引导我继续。",
"assistantVideoIntro": "👋 欢迎加入公司!我是你的专属入职培训助手。今天的培训分为三个步骤:看视频 ➡️ 知识点复盘 ➡️ 随堂测试({passScore} 分及格)。\n\n▶️ 请先点击观看【入职培训视频】。观看完毕后,点击进入【知识点复盘】。",
"assistantSummaryIntro": "太棒了!结合刚才的视频,我为你提炼了以下核心知识点(必考哦):",
"assistantSummaryReady": "准备好接受挑战了吗?直接点击【开始考试】或在 Chat 中回复【开始考试】。",
"assistantQuestionSingleType": "单选题",
"assistantQuestionBooleanType": "判断题",
"assistantQuestionReplyHint": "请直接回复选项或内容。",
"assistantResultPass": "🎉 **恭喜!** 您的最终得分是 **{score} 分**,已顺利通过新人考核!您的成绩已自动同步至人事部门。",
"assistantResultFail": "📊 **考试结束!** 您的最终得分是 **{score} 分**。及格线为 {passScore} 分。请回复【重新考试】再次挑战!",
"startExamCommand": "开始考试",
"restartExamCommand": "重新考试"
},
"errors": {
"persistTitle": "培训记录保存失败",
"persistBody": "当前考试结果尚未写入数据库,HR 管理与统计不会更新",
"loadTitle": "培训记录读取失败",
"loadBody": "当前无法从数据库读取培训记录,页面展示可能不是最新结果",
"questionBankEmpty": "当前培训题库为空,请先在后台 Agent 配置中维护题库"
},
"summaryPoints": [
"工资每月 15 号发放,考勤与请假均需要走 OA 流程。",
@@ -617,8 +635,8 @@
"id": "q1",
"type": "single",
"prompt": "工资每月几号发放?",
"answer": "a",
"explanation": "根据新人培训试卷答案,工资固定在每月 8 号发放。",
"answer": "c",
"explanation": "根据新人培训试卷答案,工资固定在每月 15 号发放。",
"options": [
{ "id": "a", "label": "A. 8号" },
{ "id": "b", "label": "B. 9号" },
+27 -9
View File
@@ -470,8 +470,8 @@
}
},
"training": {
"badge": "新人培訓工作區",
"title": "新人入職培訓 Agent",
"badge": "員工培訓工作區",
"title": "",
"subtitle": "在同一個 Chat 頁面內完成影片學習、知識點複盤、逐題考試與 HR 管理統計。",
"tabs": {
"learner": "學員端",
@@ -481,7 +481,8 @@
"syncLearnerToChat": "同步學員上下文到聊天",
"syncHrToChat": "同步 HR 篩選到聊天",
"expandWorkspace": "展開工作區",
"collapseWorkspace": "收起工作區"
"collapseWorkspace": "收起工作區",
"viewExamPdf": "查看試題 PDF"
},
"steps": {
"video": "觀看影片",
@@ -513,7 +514,7 @@
"title": "第三步:逐題考試",
"questionCounter": "第 {current} / {total} 題",
"currentScore": "當前分數:{score} 分",
"passLine": "及格線:90 分",
"passLine": "及格線:{passScore} 分",
"correctFeedback": "回答正確,繼續下一題",
"wrongFeedback": "回答錯誤,已顯示正確答案",
"selectedAnswer": "你的答案:{answer}",
@@ -526,8 +527,8 @@
"failedTag": "需補考",
"passTitle": "恭喜,你已通過新人培訓考試",
"failTitle": "本次考試未達標,需要重新考試",
"passDescription": "前端已完成通過態互動,後續接入後端後可直接回寫培訓記錄與完成日期。",
"failDescription": "依照 HR 規則,低於 90 分必須重新考試,直到最終通過。",
"passDescription": "你已順利通過本次考試,成績會自動同步到 HR 管理端並記入培訓紀錄。",
"failDescription": "依照 HR 規則,低於 {passScore} 分必須重新考試,直到最終通過。",
"scoreLabel": "最終得分",
"attemptsLabel": "考試次數",
"correctCount": "答對題數",
@@ -544,9 +545,9 @@
},
"rules": {
"title": "考試規則",
"rule1": "共 20 題,每題 5 分,滿分 100 分。",
"rule1": "共 {total} 題,系統按百分制自動計算成績。",
"rule2": "系統依「一題一答一回饋」執行,答錯立即顯示正確答案。",
"rule3": "低於 90 分視為未通過,必須重新考試。",
"rule3": "低於 {passScore} 分視為未通過,必須重新考試。",
"rule4": "HR 管理端可在同一聊天頁查看統計並匯出 Excel。"
},
"hr": {
@@ -593,7 +594,24 @@
"afterSummary": "我已完成知識點複盤,請切換到考試模式並開始第一題。",
"afterPass": "我已通過新人培訓考試,得分 {score} 分,請幫我生成一段培訓完成總結。",
"afterFail": "我本次新人培訓考試得分 {score} 分,未達及格線,請幫我總結錯題重點並安排重考提醒。",
"examInProgress": "我正在進行新人培訓考試,目前做到第 {index}/{total} 題,請保持考官模式繼續出題。"
"examInProgress": "我正在進行新人培訓考試,目前做到第 {index}/{total} 題,請保持考官模式繼續出題。",
"assistantVideoIntro": "👋 歡迎加入公司!我是你的專屬入職培訓助手。今天的培訓分為三個步驟:看影片 ➡️ 知識點複盤 ➡️ 隨堂測試({passScore} 分及格)。\n\n▶️ 請先點擊觀看【入職培訓影片】。觀看完畢後,點擊進入【知識點複盤】。",
"assistantSummaryIntro": "太棒了!結合剛才的影片,我為你提煉了以下核心知識點(必考哦):",
"assistantSummaryReady": "準備好接受挑戰了嗎?直接點擊【開始考試】或在 Chat 中回覆【開始考試】。",
"assistantQuestionSingleType": "單選題",
"assistantQuestionBooleanType": "判斷題",
"assistantQuestionReplyHint": "請直接回覆選項或內容。",
"assistantResultPass": "🎉 **恭喜!** 你的最終得分是 **{score} 分**,已順利通過新人考核!成績已自動同步至人事部門。",
"assistantResultFail": "📊 **考試結束!** 你的最終得分是 **{score} 分**。及格線為 {passScore} 分。請回覆【重新考試】再次挑戰!",
"startExamCommand": "開始考試",
"restartExamCommand": "重新考試"
},
"errors": {
"persistTitle": "培訓記錄保存失敗",
"persistBody": "當前考試結果尚未寫入資料庫,HR 管理與統計不會更新",
"loadTitle": "培訓記錄讀取失敗",
"loadBody": "目前無法從資料庫讀取培訓記錄,頁面顯示可能不是最新結果",
"questionBankEmpty": "當前培訓題庫為空,請先在後台 Agent 配置中維護題庫"
},
"summaryPoints": [
"工資每月 15 號發放,考勤與請假均需走 OA 流程。",