From f3b5cc5e732e00cb4837963a3b7af34506cdc005 Mon Sep 17 00:00:00 2001 From: biss Date: Sun, 1 Nov 2026 20:33:11 +0800 Subject: [PATCH] feat: localize teaching requests and evaluations --- web/scripts/check-i18n.mjs | 4 +- web/src/i18n/messages/en-US.ts | 3 + web/src/i18n/messages/zh-CN.ts | 3 + web/src/views/ApprovalCenterView.vue | 162 +++++++++++++----------- web/src/views/CourseAdjustmentsView.vue | 160 +++++++++++------------ web/src/views/EvaluationView.vue | 120 +++++++++--------- 6 files changed, 235 insertions(+), 217 deletions(-) diff --git a/web/scripts/check-i18n.mjs b/web/scripts/check-i18n.mjs index 174140a..034b7be 100644 --- a/web/scripts/check-i18n.mjs +++ b/web/scripts/check-i18n.mjs @@ -16,7 +16,7 @@ const missing = [...reference].filter((key) => !candidate.has(key)) const extra = [...candidate].filter((key) => !reference.has(key)) // Fully migrated pages must not silently reintroduce hardcoded Chinese UI copy. -const completedViews = ['CoursesView.vue', 'OtherExamsView.vue', 'BaseDataView.vue', 'OfficialDocumentsView.vue', 'CampusRegistrationsView.vue', 'ClassroomReservationsView.vue'] +const completedViews = ['CoursesView.vue', 'OtherExamsView.vue', 'BaseDataView.vue', 'OfficialDocumentsView.vue', 'CampusRegistrationsView.vue', 'ClassroomReservationsView.vue', 'CourseAdjustmentsView.vue'] const hardcoded = completedViews.filter((name) => { const file = fileURLToPath(new URL(`../src/views/${name}`, import.meta.url)) let source = readFileSync(file, 'utf8') @@ -26,7 +26,7 @@ const hardcoded = completedViews.filter((name) => { }) // These pages retain Chinese API values or editable business defaults in script. // Guard their templates separately, ignoring non-rendered comments. -for (const name of ['TeachingMonitoringView.vue', 'AcademicPlanningView.vue', 'PersonnelView.vue', 'StatisticsView.vue']) { +for (const name of ['TeachingMonitoringView.vue', 'AcademicPlanningView.vue', 'PersonnelView.vue', 'StatisticsView.vue', 'EvaluationView.vue', 'ApprovalCenterView.vue']) { const source = readFileSync(new URL(`../src/views/${name}`, import.meta.url), 'utf8') const start = source.indexOf('') diff --git a/web/src/i18n/messages/en-US.ts b/web/src/i18n/messages/en-US.ts index 8bca8d9..a5ce136 100644 --- a/web/src/i18n/messages/en-US.ts +++ b/web/src/i18n/messages/en-US.ts @@ -1,4 +1,7 @@ export default { + approvalBatch: {"k0": "Request course exemption", "k1": "Request a deferred exam", "k2": "Grade change request", "k3": "Request course substitution", "k4": "New request", "k5": "Enter a reason for the request", "k6": "Select a course for exemption", "k7": "Select a course for a deferred exam", "k8": "Select a grade record", "k9": "Select both the original and substitute courses", "k10": "Request submitted", "k11": "Approved", "k12": "Pending review", "k13": "Rejected", "k14": "Flexible course", "k15": "Timetable published", "k16": "Awaiting timetable publication", "k17": "Request changes for courses you take and track review progress and outcomes.", "k18": "Submit teaching requests and track their progress in one place.", "k19": "Manage academic requests and reviews in one place.", "k20": "Request exemption", "k21": "Select from current courses or courses with published timetables", "k22": "Request deferred exam", "k23": "Course and teaching class details are submitted together", "k24": "Request course substitution", "k25": "Current or failed course → passed course", "k26": "Request a class adjustment", "k27": "Request rescheduling, cancellation, makeup classes, or substitution", "k28": "Fill out request", "k29": "Request a grade change", "k30": "Submit the reason for the correction for review", "k31": "No pending requests", "k32": "Exemption requests", "k33": "No exemption requests submitted", "k34": "Deferred exam requests", "k35": "No deferred exam requests submitted", "k36": "Course substitution requests", "k37": "No course substitution requests submitted", "k38": "No requests yet", "k39": "Submit your first request", "k40": "Select a teaching class for exemption", "k41": "Select a teaching class for a deferred exam", "k42": "The list includes current-term courses and unarchived assigned or enrolled courses with published timetables.", "k43": "Search by course name, code, teaching class number, or teacher", "k44": "Teacher to be assigned", "k45": "No matching courses", "k46": "No eligible courses", "k47": "Courses must be published teaching tasks assigned to your administrative class or selected by you. Current-term courses and courses with published timetables are shown.", "k48": "Both substitution conditions must be met", "k49": "The original course must be a current or scheduled course you take, or one you failed. The substitute must have a published score of at least 60.", "k50": "Original course", "k51": "Current courses / previously failed", "k52": "Search courses", "k53": "Enrolled", "k54": "Failed", "k55": "No eligible original courses", "k56": "Published passing grade", "k57": "No passed courses", "k58": "Scheduled courses without published grades cannot be used as substitutes.", "k59": "Grade record", "k60": "Select a published grade", "k61": "Change to", "k62": "Reason for request", "k63": "Explain why you cannot attend the exam on time", "k64": "Explain how the courses correspond in content, credits, or degree requirements", "k65": "Explain the basis and circumstances of your request", "k66": "Select a substitute course", "k67": "Select the original course", "k68": "Enter the reason for rejection", "k69": "Course exemption", "k70": "Deferred exam", "k71": "Grade change", "k72": "Course substitution", "k73": "Student status change", "k74": "Grade review", "k75": "Attendance appeal", "k76": "View →", "k77": "Review comment: {comment}", "k78": "{count} courses available", "k79": "{count} eligible substitutes", "k80": "Pending ({count})", "k81": "My records", "k82": "My records ({count})", "k83": "{count} credits", "k84": "{score} points", "k85": "{teacher} · {credits} credits", "k86": "points"}, + adjustmentBatch: {"k0": "Reschedule", "k1": "Cancel class", "k2": "Makeup class", "k3": "Substitute teacher", "k4": "Draft", "k5": "Pending review", "k6": "Approved", "k7": "Returned", "k8": "Select a teaching class", "k9": "Select the original class session", "k10": "This session already has an adjustment. Select another session.", "k11": "Select a target date", "k12": "Select a target period", "k13": "Enter a reason for the request", "k14": "Request submitted", "k15": "Submitted for review", "k16": "Class adjustments", "k17": "Teachers request rescheduling, cancellation, makeup classes, or substitution. Changes take effect after college review and relevant people are notified.", "k18": "My requests", "k19": "Original session", "k20": "No fixed classroom", "k21": "Add makeup class", "k22": "Move to", "k23": "Result", "k24": "Cancel this session only", "k25": "Other weeks remain unchanged", "k26": "Reason: ", "k27": "Date: ", "k28": "Day: ", "k29": "Periods: ", "k30": "Cancelled week: ", "k31": "Substitute teacher: ", "k32": "Submitted: ", "k33": "Review comment: {comment}", "k34": "Submit for review", "k35": "No class adjustment requests", "k36": "No requests awaiting review", "k37": "Return", "k38": "Request a single class adjustment", "k39": "Select adjustment type", "k40": "Each request applies to one specific session.", "k41": "Move the original session to a different date and period; the original time is freed.", "k42": "Cancel only the selected session; other weeks are unaffected.", "k43": "Keep the original session and add a makeup class.", "k44": "Add a substitute teacher to the teaching class.", "k45": "Select the original session", "k46": "Choose from the published timetable instead of entering the week and day manually.", "k47": "Teaching class", "k48": "Select a teaching class you teach", "k49": "Select a week, day, and period", "k50": "Request exists", "k51": "No published sessions are available for this teaching class", "k52": "Schedule the rescheduled session", "k53": "Schedule the makeup session", "k54": "The original duration is retained. Teacher, class, and classroom conflicts are checked during review.", "k55": "Target session", "k56": "Select a date", "k57": "Select a period", "k58": "Target date", "k59": "Select a date within this term", "k60": "Target starting period", "k61": "Select a period", "k62": "Target classroom", "k63": "Leave blank to use the original classroom", "k64": "Select a substitute teacher", "k65": "The substitute must be an active teacher.", "k66": "Substitute teacher", "k67": "Reason for request", "k68": "Explain the reason for the adjustment", "k69": "Send for review immediately", "k70": "Return request", "k71": "Return comment", "k72": "Explain why this request is being returned", "k73": "Confirm return", "k74": "Period {number}", "k75": "Period {number} · {name} {start}–{end}", "k76": "Week {week} · {date} {day} · periods {start}–{end}{room}", "k77": "Week {week} · {date} · periods {start}–{end}", "k78": "{date} · periods {start}–{end}", "k79": "Periods {start}–{end}", "k80": "Week {week}", "k81": "From period {number}", "k82": "Batch {page}", "k83": "{count} people"}, + evaluationBatch: {"k0": "Enter a plan name", "k1": "Dimension maximum scores must total 100", "k2": "Plan updated", "k3": "Plan created", "k4": "Evaluation opened", "k5": "Evaluation closed", "k6": "This cannot be undone. Delete the plan?", "k7": "Delete evaluation plan", "k8": "Evaluation submitted. Thank you for your feedback!", "k9": "Evaluation added to the teaching improvement process", "k10": "Improvement plan submitted", "k11": "Submitted for review", "k12": "Review completed", "k13": "Awaiting implementation", "k14": "In progress", "k15": "Awaiting review", "k16": "Rework required", "k17": "Review passed", "k18": "Student evaluation", "k19": "Evaluation results", "k20": "Teaching evaluation", "k21": "Evaluate each course taken this term objectively. Each is scored out of 100.", "k22": "View average student evaluation scores for your courses.", "k23": "Manage evaluation plans and view results.", "k24": "Evaluation plans", "k25": "New plan", "k26": "No evaluation plans", "k27": "Plan name", "k28": "Closed", "k29": "Dimensions", "k30": "Evaluations", "k31": "Open", "k32": "No evaluation data", "k33": "Teaching class number", "k34": "Average total score", "k35": "Students responding", "k36": "Edit evaluation plan", "k37": "New evaluation plan", "k38": "For example: Fall 2026 student evaluations", "k39": "Scoring dimensions", "k40": "Balanced ✓", "k41": "Total {count} (must be 100)", "k42": "Dimension name", "k43": "Add dimension", "k44": "Save plan", "k45": "No courses available for evaluation", "k46": "Evaluated", "k47": "Evaluate", "k48": "{score} / {max} points", "k49": " / 100 points", "k50": "Submit evaluation", "k51": "No evaluation results", "k52": "/ 100 · {count} responses", "k53": "Teaching improvement plans", "k54": "Turn evaluation findings into actions that can be reviewed.", "k55": "New plan", "k56": "No improvement plans. Create one for a teaching class you teach.", "k57": "Issue summary", "k58": "Due date", "k59": "Submit for review", "k60": "Peer / supervisor evaluation", "k61": "Use observations alongside student evaluations to avoid relying on a single score.", "k62": "No teaching classes available for evaluation this term", "k63": "Teaching class", "k64": "Your teaching class", "k65": "Evaluate", "k66": "Improvement tracking by term", "k67": "Track evaluations, plans, and reviews by term to identify outstanding actions.", "k68": "No improvement plans", "k69": "Improvement issue", "k70": "Latest review comment", "k71": "Review", "k72": "Submit peer / supervisor evaluation", "k73": "Evaluation type", "k74": "Peer evaluation", "k75": "Supervisor evaluation", "k76": "Overall score", "k77": "Teaching strengths", "k78": "Areas for improvement", "k79": "Recommendations", "k80": "Submit evaluation", "k81": "New teaching improvement plan", "k82": "Actions and evidence", "k83": "Describe actions, completion criteria, and evidence for review", "k84": "Submit plan", "k85": "Review improvement plan", "k86": "Approve and close", "k87": "Return for further improvement", "k88": "Review comment (required)", "k89": "{count} evaluations", "k90": "{count} teaching classes", "k91": "{count} students", "k92": "{count} plans", "k93": "{count} reviewed"}, personnel: {"teachers": "Teacher records", "students": "Student records", "teacherIntro": "Maintain teachers’ affiliations, titles, employment status, and contact details using their employee numbers.", "studentIntro": "Maintain students’ classes, enrollment information, and status using their student numbers.", "teacherHint": "Employee numbers identify teachers and their teaching assignments", "studentHint": "Student numbers connect enrollment, course selection, grades, and graduation", "exportHint": "Excel export uses the current filters", "currentResults": "Current results", "records": "records", "addTitle": "Add {title}", "editTitle": "Edit {title}", "searchTeachers": "Search employee number, name, or title", "searchStudents": "Search student number or name", "college": "College", "selected": "{count} selected on this page", "archived": "Archived", "unarchived": "Not archived", "teacherType": "Teacher type", "external": "External", "internal": "Internal", "dormOccupancy": "Occupancy {count}/{capacity}", "bedOccupancy": "Bed {bed} · occupancy {count}/{capacity}", "totalCredits": "Total credits", "activated": "Activated", "notActivated": "Not activated", "activateAccount": "Activate account", "timetable": "Timetable", "restore": "Restore", "archive": "Archive", "empty": "No records match the filters", "total": "{count} records", "titlePlaceholder": "Professor, associate professor, lecturer, etc.", "employmentStatus": "Employment status", "hireDate": "Hire date", "enrollmentDate": "Enrollment date", "studentStatus": "Student status", "dormRoom": "Dormitory building / room", "bedCapacity": "Bed / capacity", "noBed": "No bed assigned", "dormInfo": "{bed} · occupancy {count}/{capacity}", "noDorm": "No dormitory assigned to this student", "dormHint": "Manage accommodation in Dormitory Hygiene → Dormitories and occupancy.", "profile": "Personal information", "specialTags": "Special tags", "saveRecord": "Save record", "activationTitle": "Activate teacher account", "activationHint": "After activation, the teacher can sign in using their employee number and initial password. Share the password securely.", "initialPassword": "Initial password", "passwordHint": "At least 8 characters, including uppercase and lowercase letters, numbers, and special characters", "confirmPassword": "Confirm initial password", "confirmActivate": "Confirm activation", "unknown": "Not set", "male": "Male", "female": "Female", "activeTeacher": "Active", "onLeave": "On leave", "retired": "Retired", "departed": "Departed", "activeStudent": "Enrolled", "suspended": "Suspended", "graduated": "Graduated", "withdrawn": "Withdrawn", "templateFile": "{title} import template.xlsx", "exported": "{title} exported", "previewImport": "Preview passed: {created} new and {updated} updated records, {total} total. Import now?", "confirmImport": "Confirm import", "importNow": "Import", "imported": "Import complete: {created} added, {updated} updated", "requiredName": "Enter {number} and name.", "updated": "Record updated", "created": "Record created", "deleteConfirm": "Delete the {title} for “{name}”?", "deleteTitle": "Delete record", "deleted": "Record deleted", "setPassword": "Set an initial password for the teacher.", "passwordInvalid": "The password must contain at least 8 characters, including uppercase and lowercase letters, numbers, and special characters.", "accountActivated": "Teacher account {name} activated"}, statisticsStatuses: { active: 'Enrolled', suspended: 'Suspended', graduated: 'Graduated', withdrawn: 'Withdrawn', unknown: 'Not set', fail: 'Fail', pass: 'Pass', average: 'Satisfactory', good: 'Good', excellent: 'Excellent' }, statisticsPage: {"intro": "Summaries and visual analysis of students, courses, grades, teaching workload, and classroom utilization.", "students": "Student statistics", "courses": "Course statistics", "grades": "Grade statistics", "passRates": "Pass rate statistics", "workload": "Teaching workload", "workloadExport": "Teaching workload statistics", "classrooms": "Classroom utilization", "classroomsExport": "Classroom utilization statistics", "studentCollege": "Students by college", "genderDistribution": "Gender distribution", "studentStatus": "Student status", "enrollmentTrend": "Enrollment trend", "male": "Male", "female": "Female", "year": "{year}", "coursesByCollege": "Courses by college", "courseNature": "Course nature", "creditDistribution": "Credit distribution", "assessment": "Assessment method", "scoreDistribution": "Score distribution", "gpaDistribution": "GPA distribution", "collegePassRate": "Pass rate by college (%)", "courseAverageTop": "Top 15 course averages", "coursePassRateTop": "Top 15 course pass rates (%)", "termPassTrend": "Pass rate by term (%)", "natureRecords": "Records by course nature", "teacherWorkloadTop": "Top 20 teacher workloads (hours)", "collegeHours": "Average hours per teacher by college", "titleHours": "Average hours by professional title", "hoursRange": "{range} hours", "workloadDistribution": "Workload distribution", "buildingUtilization": "Utilization by building (%)", "dayUtilization": "Utilization by weekday (%)", "slotUtilization": "Utilization by period (%)", "typeUtilization": "Utilization by classroom type (%)", "period": "Period {number}", "excel": "Export Excel", "details": "Details", "category": "Course category", "practice": "Practice", "gradeRecords": "Grade records", "collegePassDetails": "College pass rate details", "lowPassCourses": "Lowest pass rate courses (bottom 10)", "workloadDetails": "Teacher workload details (top 50)", "classCount": "Teaching classes", "buildingDetails": "Building utilization details", "classroomCount": "Classrooms", "utilization": "Utilization", "usedPeriods": "Used periods", "availablePeriods": "Available periods", "recordsMetric": "{count} grade records", "averageMetric": "Average score {value}", "passMetric": "Pass rate {value}%", "overallPassMetric": "Overall pass rate {value}%", "teachersMetric": "{count} teachers", "hoursMetric": "Total hours {count}", "averageHoursMetric": "Average hours {count}", "classroomsMetric": "{count} classrooms", "overallUtilizationMetric": "Overall utilization {value}%"}, diff --git a/web/src/i18n/messages/zh-CN.ts b/web/src/i18n/messages/zh-CN.ts index a4304ab..d120bd0 100644 --- a/web/src/i18n/messages/zh-CN.ts +++ b/web/src/i18n/messages/zh-CN.ts @@ -1,4 +1,7 @@ export default { + approvalBatch: {"k0": "发起免修申请", "k1": "发起缓考申请", "k2": "成绩修改申请", "k3": "发起课程替代申请", "k4": "发起申请", "k5": "请填写申请原因", "k6": "请选择申请免修的课程", "k7": "请选择申请缓考的课程", "k8": "请选择成绩记录", "k9": "请完整选择被替代课程和替代课程", "k10": "申请已提交", "k11": "已通过", "k12": "待审核", "k13": "已驳回", "k14": "非排时课程", "k15": "课表已发布", "k16": "等待课表发布", "k17": "从实际修读课程发起申请,查看审核进度与处理结果。", "k18": "从一个入口发起教学申请,集中追踪处理进度。", "k19": "集中处理全部教务申请与审核任务。", "k20": "申请免修", "k21": "从当前或已发布课表的修读课程中选择", "k22": "申请缓考", "k23": "课程与教学班信息一并提交", "k24": "申请课程替代", "k25": "修读中或未通过课程 → 已通过课程", "k26": "发起调停课", "k27": "调课、停课、补课、代课统一从审批工作台发起", "k28": "填写申请", "k29": "发起成绩修改", "k30": "提交成绩修正依据,进入同一审批队列", "k31": "暂无待审批", "k32": "免修申请", "k33": "尚未提交免修申请", "k34": "缓考申请", "k35": "尚未提交缓考申请", "k36": "课程替代申请", "k37": "尚未提交课程替代申请", "k38": "还没有申请记录", "k39": "发起第一项申请", "k40": "选择申请免修的教学班", "k41": "选择申请缓考的教学班", "k42": "列表包含当前学期课程,以及仍未归档且课表已发布的行政班或已选课程。", "k43": "搜索课程名称、代码、教学班号或教师", "k44": "教师待定", "k45": "没有匹配的课程", "k46": "暂无可申请课程", "k47": "课程需为已发布教学任务,并分配到您的行政班或已完成选课;当前学期课程或已发布课表的课程均会显示。", "k48": "替代关系须同时满足两个条件", "k49": "被替代课程应为当前或已发布课表的修读课程,或已有未通过成绩的课程;替代课程必须已有正式发布且不低于 60 分的成绩。", "k50": "被替代课程", "k51": "修读课程 / 历史未通过", "k52": "搜索课程", "k53": "修读", "k54": "未通过", "k55": "暂无可被替代课程", "k56": "已发布且成绩及格", "k57": "暂无已通过课程", "k58": "已排课但尚未发布成绩的课程不属于可替代课程。", "k59": "成绩记录", "k60": "选择已发布成绩", "k61": "修改为", "k62": "申请原因", "k63": "请说明无法按时参加考试的原因及相关情况", "k64": "请说明两门课程在内容、学分或培养要求上的对应关系", "k65": "请说明申请依据及相关情况", "k66": "请选择替代课程", "k67": "请选择被替代课程", "k68": "请填写驳回原因", "k69": "免修", "k70": "缓考", "k71": "成绩修改", "k72": "课程替代", "k73": "学籍异动", "k74": "成绩审核", "k75": "考勤申诉", "k76": "查看 →", "k77": "审核意见:{comment}", "k78": "{count} 门可选", "k79": "{count} 门可替代", "k80": "待审批 ({count})", "k81": "我的记录", "k82": "我的记录 ({count})", "k83": "{count} 学分", "k84": "{score} 分", "k85": "{teacher} · {credits} 学分", "k86": "分"}, + adjustmentBatch: {"k0": "调课", "k1": "停课", "k2": "补课", "k3": "代课", "k4": "草稿", "k5": "待审核", "k6": "已通过", "k7": "已退回", "k8": "请选择教学班", "k9": "请选择要处理的原课次", "k10": "该课次已有调停课记录,请选择其他课次", "k11": "请选择目标日期", "k12": "请选择目标节次", "k13": "请填写申请原因", "k14": "申请已提交", "k15": "已提交审核", "k16": "调停课管理", "k17": "教师提交调课、停课、补课、代课申请,学院审核后生效并通知相关人员。", "k18": "我的申请", "k19": "原课次", "k20": "无固定教室", "k21": "新增补课", "k22": "调整至", "k23": "处理结果", "k24": "仅停掉本次课程", "k25": "其他周次保持不变", "k26": "原因:", "k27": "日期:", "k28": "星期:", "k29": "节次:", "k30": "停课周次:", "k31": "代课教师:", "k32": "提交时间:", "k33": "审核意见:{comment}", "k34": "提交审核", "k35": "暂无调停课申请", "k36": "暂无待审核申请", "k37": "退回", "k38": "发起单次课程调整", "k39": "选择业务类型", "k40": "每次申请只处理一个具体课次。", "k41": "把原课次移到另一个日期和节次,原时间不再上课。", "k42": "只停掉选中的这一次课,不影响其他周次。", "k43": "保留原课次,另外增加一次补课。", "k44": "为教学班增加代课教师。", "k45": "锁定原课次", "k46": "从已发布课表中选择,不再手填周次和星期。", "k47": "教学班", "k48": "选择本人承担的教学班", "k49": "选择第几周、哪一天、哪一节课", "k50": "已有申请", "k51": "该教学班没有可用的已发布课次", "k52": "安排调课后课次", "k53": "安排补课课次", "k54": "课程时长沿用原课次,系统会在审批时检查教师、班级和教室冲突。", "k55": "目标课次", "k56": "待选日期", "k57": "待选节次", "k58": "目标日期", "k59": "选择本学期内日期", "k60": "目标起始节次", "k61": "选择节次", "k62": "目标教室", "k63": "留空则沿用原教室", "k64": "选择代课教师", "k65": "代课教师必须为在职教师。", "k66": "代课教师", "k67": "申请原因", "k68": "请详细说明调停课原因", "k69": "提交后直接送审", "k70": "退回申请", "k71": "退回意见", "k72": "请说明退回原因", "k73": "确认退回", "k74": "第 {number} 节", "k75": "第 {number} 节 · {name} {start}–{end}", "k76": "第 {week} 周 · {date} {day} · 第 {start}–{end} 节{room}", "k77": "第 {week} 周 · {date} · 第 {start}–{end} 节", "k78": "{date} · 第 {start}–{end} 节", "k79": "第 {start}–{end} 节", "k80": "第 {week} 周", "k81": "第 {number} 节起", "k82": "第 {page} 批", "k83": "{count} 人"}, + evaluationBatch: {"k0": "请输入方案名称", "k1": "维度满分必须合计 100", "k2": "方案已更新", "k3": "方案已创建", "k4": "已开启评教", "k5": "已关闭评教", "k6": "删除后不可恢复,确定删除?", "k7": "删除评教方案", "k8": "评教提交成功,感谢您的反馈!", "k9": "评价已纳入教学改进闭环", "k10": "改进计划已提交", "k11": "已提交复评", "k12": "复评已完成", "k13": "待落实", "k14": "进行中", "k15": "待复评", "k16": "需返工", "k17": "复评通过", "k18": "学生评教", "k19": "评教结果", "k20": "教学评价", "k21": "请对本学期修读的每门课程进行客观评价,每门课满分 100 分。", "k22": "查看您所授课程的学生评教平均分。", "k23": "管理评教方案,查看评教结果统计。", "k24": "评教方案", "k25": "新建方案", "k26": "暂无评教方案", "k27": "方案名称", "k28": "已关闭", "k29": "维度", "k30": "评教数", "k31": "开启", "k32": "暂无评教数据", "k33": "教学班号", "k34": "总分均分", "k35": "评教人数", "k36": "编辑评教方案", "k37": "新建评教方案", "k38": "如:2026年秋季学期学生评教", "k39": "评分维度", "k40": "已平衡 ✓", "k41": "合计 {count}(需为 100)", "k42": "维度名称", "k43": "添加维度", "k44": "保存方案", "k45": "暂无可评教的课程", "k46": "已评教", "k47": "去评教", "k48": "{score} / {max} 分", "k49": " / 100 分", "k50": "提交评教", "k51": "暂无评教结果", "k52": "/ 100 · {count} 人参评", "k53": "教学改进计划", "k54": "把评价结论转为可复评的行动。", "k55": "新建计划", "k56": "暂无改进计划;可针对您承担的教学班建立计划", "k57": "问题概述", "k58": "完成期限", "k59": "提交复评", "k60": "同行 / 督导评价", "k61": "观察记录与学生评教并行,避免单一分数决定教学判断。", "k62": "当前学期暂无可评价教学班", "k63": "教学班", "k64": "本人教学班", "k65": "去评价", "k66": "按学期闭环追踪", "k67": "评价、计划、复评均按学期沉淀,可识别未闭环事项。", "k68": "暂无改进计划", "k69": "改进问题", "k70": "最近复评意见", "k71": "复评", "k72": "提交同行 / 督导评价", "k73": "评价类型", "k74": "同行评价", "k75": "督导评价", "k76": "综合评分", "k77": "教学亮点", "k78": "待改进问题", "k79": "改进建议", "k80": "提交评价", "k81": "新建教学改进计划", "k82": "改进措施与证据", "k83": "说明行动、完成标准和可供复评的证据", "k84": "提交计划", "k85": "改进计划复评", "k86": "通过,形成闭环", "k87": "退回补充改进", "k88": "复评意见(必填)", "k89": "{count} 条评教", "k90": "{count} 个教学班", "k91": "{count} 名学生", "k92": "{count} 项计划", "k93": "{count} 已复评"}, personnel: {"teachers": "教师档案", "students": "学生档案", "teacherIntro": "以工号维护教师归属、职称、任职状态与联系信息。", "studentIntro": "以学号维护学生班级归属、入学信息与学籍状态。", "teacherHint": "工号是教师身份与教学任务的唯一索引", "studentHint": "学号贯穿学籍、选课、成绩与毕业业务", "exportHint": "当前筛选结果会原样用于 Excel 导出", "currentResults": "当前结果", "records": "条档案", "addTitle": "新增{title}", "editTitle": "编辑{title}", "searchTeachers": "搜索工号、姓名或职称", "searchStudents": "搜索学号、姓名", "college": "所属学院", "selected": "已选 {count} 条(当前页)", "archived": "已归档", "unarchived": "未归档", "teacherType": "教师类别", "external": "外聘", "internal": "校内", "dormOccupancy": "入住 {count}/{capacity} 人", "bedOccupancy": "{bed}床 · 入住 {count}/{capacity} 人", "totalCredits": "总学分", "activated": "已激活", "notActivated": "未激活", "activateAccount": "激活账号", "timetable": "课表", "restore": "恢复", "archive": "归档", "empty": "没有符合条件的档案", "total": "共 {count} 条", "titlePlaceholder": "教授、副教授、讲师等", "employmentStatus": "任职状态", "hireDate": "入职日期", "enrollmentDate": "入学日期", "studentStatus": "学籍状态", "dormRoom": "宿舍楼 / 宿舍号", "bedCapacity": "床位 / 容量", "noBed": "未设置床位", "dormInfo": "{bed} · 入住 {count}/{capacity} 人", "noDorm": "该学生尚未分配宿舍", "dormHint": "请前往“宿舍卫生管理 → 宿舍与入住”维护住宿安排。", "profile": "个人资料", "specialTags": "特殊标记", "saveRecord": "保存档案", "activationTitle": "激活教师账号", "activationHint": "账号激活后,教师可使用工号和初始密码登录。请通过安全方式将密码交给教师。", "initialPassword": "初始密码", "passwordHint": "至少 8 位,含大小写字母、数字和特殊字符", "confirmPassword": "确认初始密码", "confirmActivate": "确认激活", "unknown": "未设置", "male": "男", "female": "女", "activeTeacher": "在职", "onLeave": "离岗", "retired": "退休", "departed": "离职", "activeStudent": "在籍", "suspended": "休学", "graduated": "毕业", "withdrawn": "退学", "templateFile": "{title}导入模板.xlsx", "exported": "{title}已导出", "previewImport": "预检通过:将新增 {created} 条、更新 {updated} 条,共处理 {total} 条。确认正式导入?", "confirmImport": "确认导入", "importNow": "正式导入", "imported": "导入完成:新增 {created} 条,更新 {updated} 条", "requiredName": "请填写{number}和姓名。", "updated": "档案已更新", "created": "档案已建立", "deleteConfirm": "确定删除“{name}”的{title}吗?", "deleteTitle": "删除档案", "deleted": "档案已删除", "setPassword": "请设置教师的初始密码。", "passwordInvalid": "密码至少 8 位,并包含大写字母、小写字母、数字和特殊字符。", "accountActivated": "教师账号 {name} 已激活"}, statisticsStatuses: { active: '在籍', suspended: '休学', graduated: '毕业', withdrawn: '退学', unknown: '未设置', fail: '不及格', pass: '及格', average: '中等', good: '良好', excellent: '优秀' }, statisticsPage: {"intro": "学生、课程、成绩、教师工作量与教室利用率的数据汇总与可视化分析。", "students": "学生统计", "courses": "课程统计", "grades": "成绩统计", "passRates": "通过率统计", "workload": "教师工作量", "workloadExport": "教师工作量统计", "classrooms": "教室利用率", "classroomsExport": "教室利用率统计", "studentCollege": "各学院学生分布", "genderDistribution": "性别分布", "studentStatus": "学籍状态", "enrollmentTrend": "历年招生趋势", "male": "男", "female": "女", "year": "{year}年", "coursesByCollege": "各学院课程数", "courseNature": "课程性质", "creditDistribution": "学分分布", "assessment": "考核方式", "scoreDistribution": "分数段分布", "gpaDistribution": "GPA分布", "collegePassRate": "各学院通过率(%)", "courseAverageTop": "课程均分Top15", "coursePassRateTop": "课程通过率Top15(%)", "termPassTrend": "学期通过率趋势(%)", "natureRecords": "各性质课程记录数", "teacherWorkloadTop": "教师工作量Top20(学时)", "collegeHours": "各学院人均学时", "titleHours": "各职称人均学时", "hoursRange": "{range}学时", "workloadDistribution": "工作量分布", "buildingUtilization": "各教学楼利用率(%)", "dayUtilization": "各工作日利用率(%)", "slotUtilization": "各节次利用率(%)", "typeUtilization": "各教室类型利用率(%)", "period": "第{number}节", "excel": "导出Excel", "details": "明细数据", "category": "课程类别", "practice": "实践环节", "gradeRecords": "成绩条数", "collegePassDetails": "各学院通过率明细", "lowPassCourses": "低通过率课程 (底10)", "workloadDetails": "教师工作量明细 (Top50)", "classCount": "教学班数", "buildingDetails": "各教学楼利用率明细", "classroomCount": "教室数", "utilization": "利用率", "usedPeriods": "已用节次", "availablePeriods": "可用节次", "recordsMetric": "{count} 条成绩", "averageMetric": "平均分 {value}", "passMetric": "通过率 {value}%", "overallPassMetric": "总通过率 {value}%", "teachersMetric": "{count} 位教师", "hoursMetric": "总学时 {count}", "averageHoursMetric": "人均学时 {count}", "classroomsMetric": "{count} 间教室", "overallUtilizationMetric": "总利用率 {value}%"}, diff --git a/web/src/views/ApprovalCenterView.vue b/web/src/views/ApprovalCenterView.vue index 42b3b9a..73dbd40 100644 --- a/web/src/views/ApprovalCenterView.vue +++ b/web/src/views/ApprovalCenterView.vue @@ -99,11 +99,11 @@ const form = reactive({ }) const dialogTitle = computed(() => ({ - exemption: '发起免修申请', - deferred: '发起缓考申请', - gradeMod: '成绩修改申请', - substitution: '发起课程替代申请', -}[dialogType.value] ?? '发起申请')) + exemption: t('approvalBatch.k0'), + deferred: t('approvalBatch.k1'), + gradeMod: t('approvalBatch.k2'), + substitution: t('approvalBatch.k3'), +}[dialogType.value] ?? t('approvalBatch.k4'))) const actionableApprovalTypes = ['CourseExemption', 'DeferredExam', 'CourseSubstitution', 'CourseAdjustment'] @@ -151,7 +151,7 @@ const substitutionTargets = computed(() => { courseName: grade.courseName, credits: grade.credits, source: 'failed', - detail: `${grade.academicTermName} · ${grade.totalScore} 分`, + detail: `${grade.academicTermName} · ${t('approvalBatch.k84', { score: grade.totalScore })}`, }) } } @@ -245,14 +245,14 @@ function openDialog(type: string) { async function submitForm() { if (!form.reason.trim()) { - ElMessage.warning('请填写申请原因') + ElMessage.warning(t('approvalBatch.k5')) return } submitting.value = true try { if (dialogType.value === 'exemption') { if (!form.teachingTaskId) { - ElMessage.warning('请选择申请免修的课程') + ElMessage.warning(t('approvalBatch.k6')) return } await http.post('/approvals/exemptions', { @@ -261,7 +261,7 @@ async function submitForm() { }) } else if (dialogType.value === 'deferred') { if (!form.teachingTaskId) { - ElMessage.warning('请选择申请缓考的课程') + ElMessage.warning(t('approvalBatch.k7')) return } await http.post('/approvals/deferred', { @@ -270,7 +270,7 @@ async function submitForm() { }) } else if (dialogType.value === 'gradeMod') { if (!form.gradeRecordId) { - ElMessage.warning('请选择成绩记录') + ElMessage.warning(t('approvalBatch.k8')) return } await http.post('/approvals/grade-modifications', { @@ -280,7 +280,7 @@ async function submitForm() { }) } else if (dialogType.value === 'substitution') { if (!form.originalCourseId || !form.substituteCourseId) { - ElMessage.warning('请完整选择被替代课程和替代课程') + ElMessage.warning(t('approvalBatch.k9')) return } await http.post('/approvals/substitutions', { @@ -290,7 +290,7 @@ async function submitForm() { }) } dialog.value = false - ElMessage.success('申请已提交') + ElMessage.success(t('approvalBatch.k10')) await load() } catch (e) { ElMessage.error(apiErrorMessage(e)) @@ -304,7 +304,7 @@ async function approveItem(item: any) { const ep = approvalEndpoint(item.type) if (ep) { await http.post(`${ep}/${item.id}/approve`) - ElMessage.success('已通过') + ElMessage.success(t('approvalBatch.k11')) await load() } } catch (e) { @@ -341,8 +341,20 @@ function approvalEndpoint(type: string) { return segment ? `/approvals/${segment}` : '' } +function approvalLabel(item: any) { + const types: Record = { + CourseExemption: 'k69', DeferredExam: 'k70', GradeModification: 'k71', + CourseSubstitution: 'k72', StudentStatusChange: 'k73', GradeSheet: 'k74', AttendanceAppeal: 'k75', + } + if (item.type === 'CourseAdjustment') { + const adjustments: Record = { '调课': 'k0', '停课': 'k1', '补课': 'k2', '代课': 'k3' } + return adjustments[item.label] ? t(`adjustmentBatch.${adjustments[item.label]}`) : item.label + } + return types[item.type] ? t(`approvalBatch.${types[item.type]}`) : item.label +} + function statusText(status: string) { - return status === 'Submitted' ? '待审核' : status === 'Approved' ? '已通过' : '已驳回' + return status === 'Submitted' ? t('approvalBatch.k12') : status === 'Approved' ? t('approvalBatch.k11') : t('approvalBatch.k13') } function statusType(status: string) { @@ -350,8 +362,8 @@ function statusType(status: string) { } function courseScheduleText(course: CourseOption) { - if (course.schedulingMode === 'Flexible') return '非排时课程' - return course.hasPublishedSchedule ? '课表已发布' : '等待课表发布' + if (course.schedulingMode === 'Flexible') return t('approvalBatch.k14') + return course.hasPublishedSchedule ? t('approvalBatch.k15') : t('approvalBatch.k16') } onMounted(() => { @@ -366,7 +378,7 @@ onMounted(() => {
APPROVAL CENTER

{{ t('dashboard.admin.actions.approvals.label') }}

-

{{ isStudent ? '从实际修读课程发起申请,查看审核进度与处理结果。' : isTeacher ? '从一个入口发起教学申请,集中追踪处理进度。' : '集中处理全部教务申请与审核任务。' }}

+

{{ isStudent ? t('approvalBatch.k17') : isTeacher ? t('approvalBatch.k18') : t('approvalBatch.k19') }}

{{ t('businessLabels.refresh') }} @@ -376,28 +388,28 @@ onMounted(() => { COURSE EXEMPTION - 申请免修 - 从当前或已发布课表的修读课程中选择 + {{ t('approvalBatch.k20') }} + {{ t('approvalBatch.k21') }} - {{ enrolledCourses.length }} 门可选 + {{ t('approvalBatch.k78', { count: enrolledCourses.length }) }} @@ -406,19 +418,19 @@ onMounted(() => { COURSE ADJUSTMENT - 发起调停课 - 调课、停课、补课、代课统一从审批工作台发起 + {{ t('approvalBatch.k26') }} + {{ t('approvalBatch.k27') }} - 填写申请 + {{ t('approvalBatch.k28') }} @@ -426,15 +438,15 @@ onMounted(() => {
- {{ item.label }} + {{ approvalLabel(item) }}
{{ item.title }}

{{ item.desc }}

@@ -451,11 +463,11 @@ onMounted(() => { type="primary" @click="$router.push(item.type==='StudentStatusChange'?'/student-status-changes':item.type==='GradeSheet'?'/grades':'/teacher-attendance')" > - 查看 → + {{ t('approvalBatch.k76') }}
- + {
@@ -528,12 +540,12 @@ onMounted(() => {
- {{ dialogType === 'exemption' ? '选择申请免修的教学班' : '选择申请缓考的教学班' }} -

列表包含当前学期课程,以及仍未归档且课表已发布的行政班或已选课程。

+ {{ dialogType === 'exemption' ? t('approvalBatch.k40') : t('approvalBatch.k41') }} +

{{ t('approvalBatch.k42') }}

- +

- 课程需为已发布教学任务,并分配到您的行政班或已完成选课;当前学期课程或已发布课表的课程均会显示。 + {{ t('approvalBatch.k47') }}

@@ -568,16 +580,16 @@ onMounted(() => { - + @@ -649,7 +661,7 @@ onMounted(() => {