feat: localize statistics and personnel records

This commit is contained in:
biss committed 2026-10-31 19:49:27 +08:00
1 parent 986de2fc40
commit 1a1ecfb912
6 files changed
+180 -147

No files matched your search

+3
View File
@@ -1,4 +1,7 @@
export default {
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}%"},
academicPlanning: {"waiting": "Waiting for simulation", "required": "Required", "elective": "Group elective", "semester": "Semester {number}", "arranged": "Scheduled {count} courses for {term}", "suggestionsApplied": "Scheduled {count} suggested courses for next semester", "intro": "Plan future courses by semester and check degree progress, prerequisites, and graduation timing.", "reset": "Reset data", "applySuggestion": "Apply next semester’s suggestions", "studentYear": "Enrolled {year} · {college}", "studentPlan": "{name}’s graduation plan", "completionAria": "Simulated degree plan completion", "completion": "Plan completion", "graduation": "Estimated graduation", "beyondStandard": "Beyond standard duration", "withinStandard": "Within standard duration", "summaryAria": "Graduation simulation summary", "earnedProjected": "Earned / projected credits", "creditGap": "Graduation credit gap", "credits": "{count} credits", "requirements": "Degree requirements", "requirementsCount": "{passed} / {total} requirements", "simulation": "This simulation", "coursesCredits": "{count} courses · {credits} credits", "nextAdvice": "Next semester suggestions", "noSuggestion": "No additional courses are suggested for next semester based on current courses, prerequisites, and recommended timing. You can explore other plans below.", "latestAudit": "Latest official graduation audit", "officialResult": "Official result: {result} · {credits} credits recognized", "eligible": "Eligible to graduate", "ineligible": "Not yet eligible to graduate", "auditNote": "Simulation does not change the official audit", "prerequisiteConflict": "Prerequisite conflict", "planningWarning": "Planning warning", "coursePool": "Courses to plan", "searchCourses": "Search courses", "allModules": "All curriculum modules", "selectAll": "Select all results ({count} selected)", "batchSemester": "Schedule in a semester", "termOption": "Semester {number} · {label}", "batchArrange": "Schedule selected", "selectCourse": "Select course {name}", "recommended": "Recommended in semester {number}", "prerequisites": "Prerequisites: ", "separator": ", ", "scheduleSemester": "Schedule in semester", "noCourses": "No courses to plan match the filters", "futureTerms": "Future semesters", "futureHint": "Courses must follow their prerequisites. More than 30 credits in one semester is flagged as a heavy workload.", "clear": "Clear plan", "extended": "Extended semester", "nextTerm": "Next semester", "futureSemester": "Future semester {number}", "removeCourse": "Remove course", "emptySemester": "No courses scheduled. Choose a semester from the course list.", "simulationEligible": "Simulation meets graduation requirements", "simulationIncomplete": "Degree requirements remain incomplete", "remaining": "Remaining requirements", "remainingCount": "{count} requirements remaining", "requirementsCovered": "Degree requirements covered", "allCovered": "This simulation covers all required courses and course group requirements", "termLabel": "{start}–{end} academic year, {season}", "autumn": "fall semester", "spring": "spring semester", "suggestionDue": "Recommended semester reached and prerequisites met", "suggestionRequired": "Required course in the curriculum sequence", "suggestionElective": "Counts toward module and total credits", "assumptionPass": "Simulated courses are assumed passed and do not change grades or enrollment.", "assumptionLimit": "Estimated graduation assumes at most {count} credits per semester.", "assumptionCurrent": "Current courses are assumed completed this semester.", "conflictOrder": "{prerequisite} must be scheduled before {course}.", "conflictMissing": "Prerequisite {prerequisite} for {course} is not completed or scheduled.", "workload": "Semester {semester} has {credits} credits, exceeding the recommended limit of {limit}.", "early": "{course} is scheduled before its recommended semester. Check whether it is offered.", "shortage": "{module} ({count} credits remaining)"},
teachingMonitoring: {"separator": ", ", "title": "Teaching monitoring", "intro": "Track entry, review, and publication of course and lab grades, and identify returned or unpublished grades after classes end.", "deadlines": "Deadlines", "refresh": "Refresh data", "searchPlaceholder": "Course, teaching class, teacher, or administrative class", "attentionOnly": "Needs follow-up only", "deadlineSummary": "Course grades due {grade}; lab grades due {experiment}. Overdue teaching classes: {courseCount} course, {experimentCount} lab.", "monitored": "Teaching classes monitored", "filtered": "Current filters", "coursePublication": "Course grade publication", "courseEntry": "Course grade entry", "labPublication": "Lab grade publication", "publishedClasses": "Published {count} / {total} teaching classes", "publishedProjects": "Published {count} / {total} lab projects", "sheetSummary": "Missing sheets {missing} · Pending review {pending} · Returned {returned}", "completedStudents": "Completed {count} / {total} students", "completionDefinition": "Completed means a final score, evaluation, or special exam status is recorded", "progress": "Teaching class progress", "progressIntro": "Progress is aggregated in real time within your authorized scope. Review flagged items first.", "classCount": "{count} teaching classes", "noClasses": "No teaching classes match the current filters", "teachingClass": "Teaching class", "needsAttention": "Needs follow-up", "teacherClass": "Teachers / classes", "noTeacher": "No teacher assigned", "enrolledStudents": "Enrolled students", "deadlineIssues": "Deadlines and issues", "courseDeadline": "Course: {date}", "labDeadline": "Lab: {date}", "lastReminder": "Last reminder: {date}", "studentProgress": "{count} / {total} students", "labProgress": "{count} / {total} student records", "updated": "Updated {date}", "noSheet": "No grade sheet yet", "expected": "{count} students expected", "projectsPublished": "{count} / {total} projects published", "noLabClass": "No lab projects for this teaching class", "noLabGrades": "No lab grades to maintain", "remind": "Remind teachers", "trends": "College publication trends", "trendsIntro": "Recent course grade publication rates within your authorized scope.", "unpublished": "Unpublished", "publicationRate": "Publication rate", "definitionLabel": "Monitoring criteria: ", "definition": "Follow-up includes returned grades, overdue grades, and unpublished course or lab grades after classes end. Reminders are subject to a cooldown to avoid repeatedly disturbing teachers.", "settingsTitle": "Teaching monitoring deadlines", "gradeDeadline": "Course grade publication deadline", "labDeadlineSetting": "Lab grade publication deadline", "cooldown": "Reminder cooldown for the same type (hours)", "saved": "Teaching monitoring deadlines saved", "reminded": "Reminders sent to the associated teachers", "exportFile": "Teaching monitoring.xlsx", "draft": "In progress", "submitted": "Pending review", "approved": "Approved", "published": "Published", "returned": "Returned", "noProjects": "No lab projects", "returnedCount": "{count} returned", "allPublished": "All published", "approvedCount": "{count} approved", "submittedCount": "{count} pending review", "scoring": "Scoring", "noSheetShort": "No grade sheet yet", "noUpdate": "No update", "reasonGradeReturned": "Course grades returned", "reasonGradeClosed": "Class ended; course grades unpublished", "reasonLabReturned": "Lab grades returned", "reasonLabClosed": "Class ended; some lab grades unpublished", "reasonGradeOverdue": "Course grades overdue by {count} days", "reasonLabOverdue": "Lab grades overdue by {count} days"},
attendanceBatch: {"k0":"My attendance","k1":"Check in by QR code or location and view submitted attendance records.","k2":"QR check-in","k3":"Awaiting check-in","k4":"The server checks the class roster, valid time, and permitted location.","k5":"Confirm the class details before checking in","k6":"Your current location will be obtained once for this check-in","k7":"Course attendance records","k8":"Attendance rates are grouped by course and include only records submitted by teachers","k9":"Course attendance rate","k10":"Attendance sessions","k11":"Exempt","k12":"No notes for this attendance session","k13":"Appeal","k14":"No submitted course attendance records","k15":"Attendance appeal","k16":"Appeal reason","k17":"Explain why you are disputing this attendance record","k18":"Submit appeal","k19":"The check-in code is invalid or you are not on the class roster.","k20":"This is not a valid classroom check-in QR code.","k21":"Unable to start scanning. Allow camera access for the app in system settings.","k22":"Enter a reason for the appeal","k23":"Appeal submitted","k24":"Take attendance and monitor each student’s attendance in this course.","k25":"Course, task number, or teaching class","k26":"Administrative class, major, or class code","k27":"Attendance records","k28":"Course statistics","k29":"No teaching classes are available for attendance","k30":"New attendance sheet","k31":"Attendance sheet name or notes","k32":"Submitted","k33":"Teacher roll call","k34":"Location check-in","k35":"No attendance sheets yet. Use the button above to create one.","k36":"Show check-in code","k37":"End early","k38":"Import Excel","k39":"Set in bulk:","k40":"Mark all present","k41":"Mark all absent","k42":"Mark all late","k43":"Self check-in","k44":"Not checked in","k45":"Select a teaching class to view statistics","k46":"Course attendance record","k47":"Export statistics to Excel","k48":"Overall course attendance rate","k49":"Present and late both count as attendance","k50":"Students","k51":"Submitted sessions","k52":"Students with perfect attendance","k53":"Students absent or late","k54":"Attendance status distribution","k55":"Only submitted sessions are counted. Exempt students are excluded from required attendance; leave counts as required but not attended.","k56":"Location permission was denied. Allow precise location access for the app in system settings.","k57":"Location request timed out. Move to a location with a better signal and try again.","k58":"Teacher phone location obtained","k59":"Enter an attendance sheet name.","k60":"Attendance records saved","k61":"Attendance sheet submitted","k62":"Attendance sheet deleted","k63":"Personal teaching calendar subscription","k64":"Live changes","k65":"Subscription enabled","k66":"Calendar clients update timetable, exam, and lab changes at the next sync.","k67":"Subscription URL","k68":"Copy subscription URL","k69":"This URL acts as an access key. Do not share it publicly.","k70":"Subscribe in a calendar app","k71":"Download one-time ICS","k72":"Reset URL","k73":"Disable subscription","k74":"Personal calendar","k75":"Sync teaching schedules to your calendar","k76":"Enabling creates a personal subscription URL that can be reset or disabled at any time.","k77":"Enable personal calendar subscription","k78":"Download one-time ICS only","k79":"Automatically synchronized","k80":"Published regular classes and the latest adjustments","k81":"Student exams and makeup exams; teacher classes and invigilation","k82":"Centralized labs and the student’s booked self-scheduled labs","k83":"Flexible courses generate an all-day reminder on the first day of term","k84":"Personal teaching calendar subscription enabled","k85":"Subscription URL reset","k86":"Personal teaching calendar subscription disabled","k87":"Subscription URL copied","k88":"Copy failed. Select the subscription URL manually.","k89":"Select a term","k90":"Select timetable version","k91":"Class timetable","k92":"Teacher timetable","k93":"Venue timetable","k94":"Select teacher","k95":"All teaching buildings","k96":"Batch export","k97":"Select up to 100 items from the current results","k98":"Select timetables to export","k99":"Select all filtered results","k100":"Clear","k101":"Overview","k102":"Week view","k103":"Day view","k104":"Previous week","k105":"Select teaching week","k106":"Next week","k107":"Go to current week","k108":"Subscribe to calendar","k109":"Export PDF","k110":"This term’s timetable has not been published","k111":"Flexible courses","k112":"Does not occupy regular class time or rooms","k113":"Full term overview","k114":"Regular classes are shown by period, followed by exams and labs by date","k115":"Course cards show the week range and odd/even week pattern","k116":"No classes, exams, or labs this week","k117":"Period","k118":"Lab","k119":"Lab class","k120":"Teacher to be determined","k121":"No teaching activities on this day","k122":"Published exam schedule","k123":"Lab schedule","k124":"My lab schedule"},
+3
View File
@@ -1,4 +1,7 @@
export default {
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}%"},
academicPlanning: {"waiting": "等待模拟", "required": "指定必修", "elective": "组内选修", "semester": "第 {number} 学期", "arranged": "已将 {count} 门课程安排到{term}", "suggestionsApplied": "已把 {count} 门建议课程安排到下一学期", "intro": "把未来课程排进学期航线,实时检查培养方案完成度、先修顺序与毕业时间。", "reset": "重置数据", "applySuggestion": "采用下学期建议", "studentYear": "{year} 级 · {college}", "studentPlan": "{name}的毕业航线", "completionAria": "模拟培养方案完成度", "completion": "方案完成度", "graduation": "预计毕业", "beyondStandard": "超过标准学制", "withinStandard": "标准学制内", "summaryAria": "毕业模拟摘要", "earnedProjected": "已获 / 预计学分", "creditGap": "毕业学分缺口", "credits": "{count} 学分", "requirements": "培养要求", "requirementsCount": "{passed} / {total} 项", "simulation": "本次模拟", "coursesCredits": "{count} 门 · {credits} 学分", "nextAdvice": "下一学期建议", "noSuggestion": "结合当前在读课程、先修条件和培养方案建议学期,下一学期暂无需要额外安排的课程;仍可在下方课程清单模拟其他路径。", "latestAudit": "最近正式毕业审核", "officialResult": "正式结果:{result} · 已认定 {credits} 学分", "eligible": "符合毕业条件", "ineligible": "暂不符合毕业条件", "auditNote": "模拟不会更改正式审核结果", "prerequisiteConflict": "先修冲突", "planningWarning": "安排提示", "coursePool": "待规划课程", "searchCourses": "搜索课程", "allModules": "全部培养模块", "selectAll": "全选当前结果(已选 {count} 门)", "batchSemester": "批量安排到学期", "termOption": "第 {number} 学期 · {label}", "batchArrange": "批量安排", "selectCourse": "选择课程 {name}", "recommended": "建议第 {number} 学期", "prerequisites": "先修:", "separator": "、", "scheduleSemester": "安排到学期", "noCourses": "没有符合条件的待规划课程", "futureTerms": "未来学期航线", "futureHint": "课程必须在其先修课程之后;单学期超过 30 学分会标记负荷风险。", "clear": "清空安排", "extended": "延长学期", "nextTerm": "下一学期", "futureSemester": "未来第 {number} 学期", "removeCourse": "移除课程", "emptySemester": "尚未安排课程,可从左侧课程清单选择学期。", "simulationEligible": "模拟达到毕业条件", "simulationIncomplete": "仍有培养要求未完成", "remaining": "剩余培养要求", "remainingCount": "还需完成 {count} 项", "requirementsCovered": "培养要求已覆盖", "allCovered": "本次模拟已覆盖全部指定课程和课程组要求", "termLabel": "{start}—{end} 学年{season}", "autumn": "秋季学期", "spring": "春季学期", "suggestionDue": "计划学期已到,且先修条件已满足", "suggestionRequired": "必修课程,按培养方案顺序推进", "suggestionElective": "用于补足培养模块与总学分", "assumptionPass": "模拟课程按顺利通过计算,不会写入成绩或正式选课。", "assumptionLimit": "预计毕业学期按每学期最多 {count} 学分估算。", "assumptionCurrent": "当前在读课程按本学期顺利完成计入预测。", "conflictOrder": "《{prerequisite}》必须安排在《{course}》之前。", "conflictMissing": "《{course}》的先修课程《{prerequisite}》尚未完成或安排。", "workload": "第 {semester} 学期安排了 {credits} 学分,超过建议上限 {limit} 学分。", "early": "《{course}》早于培养方案建议学期修读,请确认课程开设条件。", "shortage": "{module}(还差 {count} 学分)"},
teachingMonitoring: {"separator": "、", "title": "教学监测", "intro": "统一查看课程成绩与实验成绩的录入、审核和发布进度,及时发现已退回或结课后仍未发布的教学班。", "deadlines": "截止时间", "refresh": "刷新数据", "searchPlaceholder": "课程、教学班、教师或行政班", "attentionOnly": "仅看需跟进", "deadlineSummary": "课程成绩截止 {grade},实验成绩截止 {experiment};当前逾期教学班:课程 {courseCount} 个,实验 {experimentCount} 个。", "monitored": "监测教学班", "filtered": "当前筛选范围", "coursePublication": "课程成绩发布", "courseEntry": "课程成绩录入", "labPublication": "实验成绩发布", "publishedClasses": "已发布 {count} / {total} 个教学班", "publishedProjects": "已发布 {count} / {total} 个实验项目", "sheetSummary": "未建成绩单 {missing} · 待审核 {pending} · 退回 {returned}", "completedStudents": "已完成 {count} / {total} 名学生", "completionDefinition": "完成指已有最终成绩、评价或特殊考试状态", "progress": "教学班进度", "progressIntro": "进度基于服务器端授权范围实时汇总;展开关注标记可优先处理异常项。", "classCount": "共 {count} 个教学班", "noClasses": "当前筛选范围内没有教学班", "teachingClass": "教学班", "needsAttention": "需跟进", "teacherClass": "教师 / 班级", "noTeacher": "未安排教师", "enrolledStudents": "选课学生组成", "deadlineIssues": "截止与异常", "courseDeadline": "课程 {date}", "labDeadline": "实验 {date}", "lastReminder": "最近催办 {date}", "studentProgress": "{count} / {total} 人", "labProgress": "{count} / {total} 人次", "updated": "更新于 {date}", "noSheet": "尚未建立成绩单", "expected": "预计覆盖 {count} 名学生", "projectsPublished": "{count} / {total} 个项目已发布", "noLabClass": "本教学班无实验项目", "noLabGrades": "无需维护实验成绩", "remind": "催办教师", "trends": "学院发布趋势", "trendsIntro": "最近学期课程成绩发布率,数据仍受当前账号后端范围限制。", "unpublished": "未发布", "publicationRate": "发布率", "definitionLabel": "监测口径:", "definition": "“需跟进”包括成绩被退回、超过配置截止时间,以及教学班已结课但课程成绩或已有实验项目尚未全部发布。催办受冷却时间限制,避免重复打扰任课教师。", "settingsTitle": "教学监测截止时间", "gradeDeadline": "课程成绩发布截止时间", "labDeadlineSetting": "实验成绩发布截止时间", "cooldown": "同类催办冷却时间(小时)", "saved": "教学监测截止时间已保存", "reminded": "已向关联任课教师发送催办消息", "exportFile": "教学监测.xlsx", "draft": "录入中", "submitted": "待审核", "approved": "审核通过", "published": "已发布", "returned": "已退回", "noProjects": "无实验项目", "returnedCount": "{count} 项已退回", "allPublished": "全部发布", "approvedCount": "{count} 项审核通过", "submittedCount": "{count} 项待审核", "scoring": "评分中", "noSheetShort": "尚未建成绩单", "noUpdate": "暂无更新", "reasonGradeReturned": "课程成绩已退回", "reasonGradeClosed": "已结课但课程成绩未发布", "reasonLabReturned": "实验成绩已退回", "reasonLabClosed": "已结课但实验成绩未全部发布", "reasonGradeOverdue": "课程成绩逾期 {count} 天", "reasonLabOverdue": "实验成绩逾期 {count} 天"},
attendanceBatch: {"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":"导入 Excel","k39":"批量设置:","k40":"全部出勤","k41":"全部缺勤","k42":"全部迟到","k43":"自主签到","k44":"尚未签到","k45":"请选择一个教学班查看统计","k46":"课程出勤档案","k47":"导出统计 Excel","k48":"课程总体出勤率","k49":"出勤与迟到计为到课","k50":"统计学生","k51":"已提交点名","k52":"全勤学生","k53":"有缺勤或迟到","k54":"考勤状态占比","k55":"仅统计已提交点名;免修不计入应到次数,请假计入应到但不计到课。","k56":"定位权限被拒绝,请在系统设置中允许本应用获取精确位置。","k57":"获取位置超时,请移到信号较好的位置后重试。","k58":"已获取教师手机当前位置","k59":"请填写考勤表名称。","k60":"考勤记录已保存","k61":"考勤表已提交","k62":"考勤表已删除","k63":"个人教学日历订阅","k64":"实时变动","k65":"订阅已启用","k66":"课表、考试和实验安排变更后,日历客户端会在下次同步时自动更新。","k67":"订阅地址","k68":"复制订阅地址","k69":"此地址等同于访问密钥,请勿分享到公开群聊或网页。","k70":"在日历客户端中订阅","k71":"下载一次性 ICS","k72":"重置地址","k73":"停用订阅","k74":"个人日历","k75":"将教学安排同步到常用日历","k76":"启用后会生成仅属于你的长期订阅地址,可随时重置或停用。","k77":"启用个人日历订阅","k78":"仅下载一次性 ICS","k79":"自动同步范围","k80":"已发布课表中的固定课程和调停课后的最新安排","k81":"学生考试、补考;教师授课、监考和补考监考","k82":"集中实验及学生本人已预约的自主实验场次","k83":"非排时课程会在学期首日生成全天提醒","k84":"个人教学日历订阅已启用","k85":"订阅地址已重置","k86":"个人教学日历订阅已停用","k87":"订阅地址已复制","k88":"复制失败,请手动选择订阅地址。","k89":"选择学期","k90":"选择课表版本","k91":"班级课表","k92":"教师课表","k93":"场地课表","k94":"选择教师","k95":"全部教学楼","k96":"批量导出","k97":"按当前筛选结果多选,最多 100 项","k98":"选择要批量导出的课表","k99":"全选筛选结果","k100":"清空","k101":"总视图","k102":"周视图","k103":"日视图","k104":"上一周","k105":"选择教学周","k106":"下一周","k107":"回到本周","k108":"订阅日历","k109":"导出 PDF","k110":"本学期课表尚未发布","k111":"非排时课程","k112":"不占正常上课时间与场地","k113":"全学期总览","k114":"固定课程按节次展示,考试与实验按日期列于下方","k115":"课程卡片保留起止周与单双周信息","k116":"本周没有课程、考试或实验安排","k117":"节次","k118":"实验","k119":"实验课","k120":"教师待定","k121":"当日无教学安排","k122":"已发布考试安排","k123":"实验安排","k124":"个人实验安排"},
+70 -71
View File
@@ -87,8 +87,8 @@ const availableClasses = computed(() => {
const majorIds = new Set(availableMajors.value.map((item) => item.id))
return classes.value.filter((item) => majorIds.has(item.majorId))
})
const pageTitle = computed(() => active.value === 'teachers' ? '教师档案' : '学生档案')
const numberLabel = computed(() => active.value === 'teachers' ? '工号' : '学号')
const pageTitle = computed(() => t(active.value === 'teachers' ? 'personnel.teachers' : 'personnel.students'))
const numberLabel = computed(() => t(active.value === 'teachers' ? 'businessLabels.employeeNumber' : 'businessLabels.studentNumber'))
const filteredMajors = computed(() =>
query.collegeId
? availableMajors.value.filter((item) => item.collegeId === query.collegeId)
@@ -110,19 +110,20 @@ const filteredClasses = computed(() => {
})
const formClasses = computed(() => availableClasses.value)
const genderLabels: Record<string, string> = {
Unknown: '未设置', Male: '男', Female: '女',
}
const teacherStatusLabels: Record<string, string> = {
Active: '在职', OnLeave: '离岗', Retired: '退休', Departed: '离职',
}
const studentStatusLabels: Record<string, string> = {
Active: '在籍', Suspended: '休学', Graduated: '毕业', Withdrawn: '退学',
}
const genderLabels = computed<Record<string, string>>(() => ({
Unknown: t('personnel.unknown'), Male: t('personnel.male'), Female: t('personnel.female'),
}))
const teacherStatusLabels = computed<Record<string, string>>(() => ({
Active: t('personnel.activeTeacher'), OnLeave: t('personnel.onLeave'), Retired: t('personnel.retired'), Departed: t('personnel.departed'),
}))
const studentStatusLabels = computed<Record<string, string>>(() => ({
Active: t('personnel.activeStudent'), Suspended: t('personnel.suspended'), Graduated: t('personnel.graduated'), Withdrawn: t('personnel.withdrawn'),
}))
const specialTagOptions = [
'肢体残疾', '行动不便', '轮椅使用者', '视力障碍', '听力障碍',
'言语障碍', '学习支持', '健康关注',
]
const specialTagLabel = (value: string) => t(`studentProfile.specialTags.${specialTagOptions.indexOf(value)}`)
function splitSpecialTags(value: unknown) {
return typeof value === 'string'
@@ -277,7 +278,7 @@ async function downloadTemplate() {
try {
await downloadApiFile(
`/personnel/${active.value}/template`,
`${pageTitle.value}导入模板.xlsx`,
t('personnel.templateFile', { title: pageTitle.value }),
)
} catch (error) {
ElMessage.error(apiErrorMessage(error))
@@ -291,7 +292,7 @@ async function exportRows() {
`${pageTitle.value}.xlsx`,
{ params: exportParams() },
)
ElMessage.success(`${pageTitle.value}已导出`)
ElMessage.success(t('personnel.exported', { title: pageTitle.value }))
} catch (error) {
ElMessage.error(apiErrorMessage(error))
}
@@ -311,13 +312,13 @@ async function handleImport(event: Event) {
const path = `/personnel/${active.value}/import`
const preview = (await importExcel(path, file, true)).data
const confirmed = await ElMessageBox.confirm(
`预检通过:将新增 ${preview.created} 条、更新 ${preview.updated} 条,共处理 ${preview.total} 条。确认正式导入?`,
'确认导入',
{ type: 'warning', confirmButtonText: '正式导入', cancelButtonText: '取消' },
t('personnel.previewImport', { created: preview.created, updated: preview.updated, total: preview.total }),
t('personnel.confirmImport'),
{ type: 'warning', confirmButtonText: t('personnel.importNow'), cancelButtonText: t('businessLabels.cancel') },
).then(() => true).catch(() => false)
if (!confirmed) return
const { data } = await importExcel(path, file)
ElMessage.success(`导入完成:新增 ${data.created} 条,更新 ${data.updated} 条`)
ElMessage.success(t('personnel.imported', { created: data.created, updated: data.updated }))
await load()
} catch (error) {
ElMessage.error(apiErrorMessage(error))
@@ -341,7 +342,7 @@ function openEdit(row: any) {
async function save() {
const number = active.value === 'teachers' ? form.teacherNumber : form.studentNumber
if (!number?.trim() || !form.name?.trim()) {
ElMessage.warning(`请填写${numberLabel.value}和姓名。`)
ElMessage.warning(t('personnel.requiredName', { number: numberLabel.value }))
return
}
try {
@@ -351,7 +352,7 @@ async function save() {
: form
if (editingId.value) await http.put(`${path}/${editingId.value}`, payload)
else await http.post(path, payload)
ElMessage.success(editingId.value ? '档案已更新' : '档案已建立')
ElMessage.success(editingId.value ? t('personnel.updated') : t('personnel.created'))
dialogVisible.value = false
await load()
} catch (error) {
@@ -362,12 +363,12 @@ async function save() {
async function remove(row: any) {
try {
await ElMessageBox.confirm(
`确定删除“${row.name}”的${pageTitle.value}吗?`,
'删除档案',
{ type: 'warning', confirmButtonText: '删除', cancelButtonText: '取消' },
t('personnel.deleteConfirm', { name: row.name, title: pageTitle.value }),
t('personnel.deleteTitle'),
{ type: 'warning', confirmButtonText: t('businessLabels.delete'), cancelButtonText: t('businessLabels.cancel') },
)
await http.delete(`/personnel/${active.value}/${row.id}`)
ElMessage.success('档案已删除')
ElMessage.success(t('personnel.deleted'))
await load()
} catch (error: any) {
if (error !== 'cancel' && error !== 'close') ElMessage.error(apiErrorMessage(error))
@@ -383,7 +384,7 @@ function openActivation(row: any) {
async function activateTeacherAccount() {
if (!activationForm.password) {
ElMessage.warning('请设置教师的初始密码。')
ElMessage.warning(t('personnel.setPassword'))
return
}
if (activationForm.password.length < 8 ||
@@ -391,7 +392,7 @@ async function activateTeacherAccount() {
!/[A-Z]/.test(activationForm.password) ||
!/\d/.test(activationForm.password) ||
!/[^A-Za-z0-9]/.test(activationForm.password)) {
ElMessage.warning('密码至少 8 位,并包含大写字母、小写字母、数字和特殊字符。')
ElMessage.warning(t('personnel.passwordInvalid'))
return
}
if (activationForm.password !== activationForm.confirmPassword) {
@@ -406,7 +407,7 @@ async function activateTeacherAccount() {
{ password: activationForm.password },
)
activationDialog.value = false
ElMessage.success(`教师账号 ${data.userName} 已激活`)
ElMessage.success(t('personnel.accountActivated', { name: data.userName }))
await load()
} catch (error) {
ElMessage.error(apiErrorMessage(error))
@@ -437,26 +438,24 @@ watch(active, async () => {
</span>
<h2>{{ pageTitle }}</h2>
<p>
{{ active === 'teachers'
? '以工号维护教师归属、职称、任职状态与联系信息。'
: '以学号维护学生班级归属、入学信息与学籍状态。' }}
{{ t(active === 'teachers' ? 'personnel.teacherIntro' : 'personnel.studentIntro') }}
</p>
</div>
<el-button v-if="canManage" type="primary" :icon="Plus" @click="openCreate">
新增{{ pageTitle }}
{{ t('personnel.addTitle', { title: pageTitle }) }}
</el-button>
</section>
<section class="registry-banner" :class="{ student: active === 'students' }">
<div>
<span>{{ active === 'teachers' ? 'STAFF DIRECTORY' : 'STUDENT DIRECTORY' }}</span>
<b>{{ active === 'teachers' ? '工号是教师身份与教学任务的唯一索引' : '学号贯穿学籍、选课、成绩与毕业业务' }}</b>
<small>当前筛选结果会原样用于 Excel 导出</small>
<b>{{ t(active === 'teachers' ? 'personnel.teacherHint' : 'personnel.studentHint') }}</b>
<small>{{ t('personnel.exportHint') }}</small>
</div>
<div class="registry-total">
<span>当前结果</span>
<span>{{ t('personnel.currentResults') }}</span>
<strong>{{ total }}</strong>
<small>条档案</small>
<small>{{ t('personnel.records') }}</small>
</div>
</section>
@@ -466,14 +465,14 @@ watch(active, async () => {
v-model="query.keyword"
:prefix-icon="Search"
clearable
:placeholder="`搜索${numberLabel}、姓名${active === 'teachers' ? '或职称' : ''}`"
:placeholder="t(active === 'teachers' ? 'personnel.searchTeachers' : 'personnel.searchStudents')"
@keyup.enter="query.page = 1; load()"
/>
<el-select
v-model="query.collegeId"
:clearable="!scopedCollegeId"
:disabled="Boolean(scopedCollegeId)"
:placeholder="scopedCollegeId ? '所属学院' : '全部学院'"
:placeholder="scopedCollegeId ? t('personnel.college') : t('businessLabels.allColleges')"
>
<el-option v-for="item in availableColleges" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
@@ -482,7 +481,7 @@ watch(active, async () => {
<el-option v-for="item in filteredMajors" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
<el-input-number v-model="query.enrollmentYear" :min="2000" :max="2200" controls-position="right" :placeholder="t('baseData.enrollmentYear')" />
<el-select v-model="query.classId" clearable filterable placeholder="全部班级">
<el-select v-model="query.classId" clearable filterable :placeholder="t('businessLabels.allClasses')">
<el-option v-for="item in filteredClasses" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</template>
@@ -516,11 +515,11 @@ watch(active, async () => {
<div v-if="canManage" style="display:flex; gap:8px; flex-wrap:wrap; margin:12px 0">
<el-button :disabled="!archiveSelection.length" @click="archiveDialog?.open(active, archiveSelection, true)">{{ t('courses.archiveMany') }}</el-button>
<el-button :disabled="!archiveSelection.length" @click="archiveDialog?.open(active, archiveSelection, false)">{{ t('courses.restoreMany') }}</el-button>
<span>已选 {{ archiveSelection.length }} 条(当前页)</span>
<span>{{ t('personnel.selected', { count: archiveSelection.length }) }}</span>
</div>
<el-table v-loading="loading" :data="rows" class="data-table registry-table" @selection-change="archiveSelection = $event">
<el-table-column v-if="canManage" type="selection" width="44" />
<el-table-column :label="t('courses.archiveStatus')" width="110"><template #default="{ row }"><el-tag :type="row.isArchived ? 'info' : 'success'">{{ row.isArchived ? '已归档' : '未归档' }}</el-tag></template></el-table-column>
<el-table-column :label="t('courses.archiveStatus')" width="110"><template #default="{ row }"><el-tag :type="row.isArchived ? 'info' : 'success'">{{ t(row.isArchived ? 'personnel.archived' : 'personnel.unarchived') }}</el-tag></template></el-table-column>
<el-table-column :label="numberLabel" width="135">
<template #default="{ row }"><span class="registry-number">{{ active === 'teachers' ? row.teacherNumber : row.studentNumber }}</span></template>
</el-table-column>
@@ -532,12 +531,12 @@ watch(active, async () => {
</div>
</template>
</el-table-column>
<el-table-column v-if="active === 'teachers'" prop="collegeName" label="所属学院" min-width="150" />
<el-table-column v-if="active === 'teachers'" prop="collegeName" :label="t('personnel.college')" min-width="150" />
<el-table-column v-if="active === 'teachers'" prop="title" :label="t('businessLabels.title')" width="110">
<template #default="{ row }">{{ row.title || '—' }}</template>
</el-table-column>
<el-table-column v-if="active === 'teachers'" label="教师类别" width="105">
<template #default="{ row }">{{ row.isExternal ? '外聘' : '校内' }}</template>
<el-table-column v-if="active === 'teachers'" :label="t('personnel.teacherType')" width="105">
<template #default="{ row }">{{ t(row.isExternal ? 'personnel.external' : 'personnel.internal') }}</template>
</el-table-column>
<el-table-column v-if="active === 'students'" prop="className" :label="t('businessLabels.administrativeClass')" min-width="155" />
<el-table-column v-if="active === 'students'" prop="majorName" :label="t('businessLabels.major')" min-width="170" />
@@ -546,12 +545,12 @@ watch(active, async () => {
<template #default="{ row }">
<div v-if="row.dormitoryBuildingName" class="record-name">
<b>{{ row.dormitoryBuildingName }} · {{ row.dormitoryRoomNumber }}</b>
<span>{{ row.dormitoryBedNumber ? `${row.dormitoryBedNumber}床 · ` : '' }}入住 {{ row.dormitoryOccupantCount }}/{{ row.dormitoryCapacity }} 人</span>
<span>{{ row.dormitoryBedNumber ? t('personnel.bedOccupancy', { bed: row.dormitoryBedNumber, count: row.dormitoryOccupantCount, capacity: row.dormitoryCapacity }) : t('personnel.dormOccupancy', { count: row.dormitoryOccupantCount, capacity: row.dormitoryCapacity }) }}</span>
</div>
<span v-else>{{ t('baseData.unassigned') }}</span>
</template>
</el-table-column>
<el-table-column v-if="active === 'students'" label="总学分" width="95">
<el-table-column v-if="active === 'students'" :label="t('personnel.totalCredits')" width="95">
<template #default="{ row }">{{ row.totalCredits ?? 0 }}</template>
</el-table-column>
<el-table-column :label="t('businessLabels.status')" width="95">
@@ -564,7 +563,7 @@ watch(active, async () => {
<el-table-column :label="t('auth.account.username')" width="105">
<template #default="{ row }">
<span class="table-status" :class="{ off: !row.userId }">
{{ row.userId ? '已激活' : '未激活' }}
{{ t(row.userId ? 'personnel.activated' : 'personnel.notActivated') }}
</span>
</template>
</el-table-column>
@@ -586,7 +585,7 @@ watch(active, async () => {
:disabled="row.status !== 'Active'"
@click="openActivation(row)"
>
激活账号
{{ t('personnel.activateAccount') }}
</el-button>
<el-button
v-if="active === 'teachers'"
@@ -596,19 +595,19 @@ watch(active, async () => {
:disabled="row.status !== 'Active'"
@click="viewTimetable(row)"
>
课表
{{ t('personnel.timetable') }}
</el-button>
<el-button link type="warning" @click="archiveDialog?.open(active, [{ id: row.id }], !row.isArchived)">{{ row.isArchived ? '恢复' : '归档' }}</el-button>
<el-button link type="warning" @click="archiveDialog?.open(active, [{ id: row.id }], !row.isArchived)">{{ t(row.isArchived ? 'personnel.restore' : 'personnel.archive') }}</el-button>
<el-button link @click="archiveDialog?.showHistory(active, row.id)">{{ t('courses.archiveHistory') }}</el-button>
<el-button link type="primary" :disabled="row.isArchived" @click="openEdit(row)">{{ t('businessLabels.edit') }}</el-button>
<el-button link type="danger" :disabled="row.isArchived" @click="remove(row)">{{ t('businessLabels.delete') }}</el-button>
</template>
</el-table-column>
<template #empty><el-empty description="没有符合条件的档案" /></template>
<template #empty><el-empty :description="t('personnel.empty')" /></template>
</el-table>
<div class="pagination-bar">
<span>共 {{ total }} 条</span>
<span>{{ t('personnel.total', { count: total }) }}</span>
<el-pagination
v-model:current-page="query.page"
:page-size="query.pageSize"
@@ -619,7 +618,7 @@ watch(active, async () => {
</div>
</section>
<el-dialog v-model="dialogVisible" :title="`${editingId ? '编辑' : '新增'}${pageTitle}`" width="min(860px, 94vw)">
<el-dialog v-model="dialogVisible" :title="t(editingId ? 'personnel.editTitle' : 'personnel.addTitle', { title: pageTitle })" width="min(860px, 94vw)">
<el-form label-position="top" class="entity-form">
<template v-if="active === 'teachers'">
<div class="form-grid">
@@ -627,12 +626,12 @@ watch(active, async () => {
<el-form-item :label="t('businessLabels.name')" required><el-input v-model="form.name" /></el-form-item>
</div>
<div class="form-grid">
<el-form-item label="所属学院" required>
<el-form-item :label="t('personnel.college')" required>
<el-select v-model="form.collegeId">
<el-option v-for="item in availableColleges" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item :label="t('businessLabels.title')"><el-input v-model="form.title" placeholder="教授、副教授、讲师等" /></el-form-item>
<el-form-item :label="t('businessLabels.title')"><el-input v-model="form.title" :placeholder="t('personnel.titlePlaceholder')" /></el-form-item>
</div>
<div class="form-grid">
<el-form-item :label="t('businessLabels.gender')">
@@ -640,15 +639,15 @@ watch(active, async () => {
<el-option v-for="(label, value) in genderLabels" :key="value" :label="label" :value="value" />
</el-select>
</el-form-item>
<el-form-item label="任职状态">
<el-form-item :label="t('personnel.employmentStatus')">
<el-select v-model="form.status">
<el-option v-for="(label, value) in teacherStatusLabels" :key="value" :label="label" :value="value" />
</el-select>
</el-form-item>
</div>
<div class="form-grid">
<el-form-item label="入职日期"><el-date-picker v-model="form.hireDate" value-format="YYYY-MM-DD" /></el-form-item>
<el-form-item label="教师类别"><el-switch v-model="form.isExternal" active-text="外聘" inactive-text="校内" /></el-form-item>
<el-form-item :label="t('personnel.hireDate')"><el-date-picker v-model="form.hireDate" value-format="YYYY-MM-DD" /></el-form-item>
<el-form-item :label="t('personnel.teacherType')"><el-switch v-model="form.isExternal" :active-text="t('personnel.external')" :inactive-text="t('personnel.internal')" /></el-form-item>
</div>
</template>
<template v-else>
@@ -668,7 +667,7 @@ watch(active, async () => {
</el-form-item>
<div class="form-grid">
<el-form-item :label="t('baseData.enrollmentYear')"><el-input-number v-model="form.enrollmentYear" :min="2000" :max="2200" /></el-form-item>
<el-form-item label="入学日期"><el-date-picker v-model="form.enrollmentDate" value-format="YYYY-MM-DD" /></el-form-item>
<el-form-item :label="t('personnel.enrollmentDate')"><el-date-picker v-model="form.enrollmentDate" value-format="YYYY-MM-DD" /></el-form-item>
</div>
<div class="form-grid">
<el-form-item :label="t('businessLabels.gender')">
@@ -676,7 +675,7 @@ watch(active, async () => {
<el-option v-for="(label, value) in genderLabels" :key="value" :label="label" :value="value" />
</el-select>
</el-form-item>
<el-form-item label="学籍状态">
<el-form-item :label="t('personnel.studentStatus')">
<el-select v-model="form.status">
<el-option v-for="(label, value) in studentStatusLabels" :key="value" :label="label" :value="value" />
</el-select>
@@ -684,12 +683,12 @@ watch(active, async () => {
</div>
<el-divider content-position="left">{{ t('studentProfile.dormitory') }}</el-divider>
<div v-if="form.dormitoryBuildingName" class="form-grid">
<el-form-item label="宿舍楼 / 宿舍号"><el-input :model-value="`${form.dormitoryBuildingName} · ${form.dormitoryRoomNumber}`" disabled /></el-form-item>
<el-form-item label="床位 / 容量"><el-input :model-value="`${form.dormitoryBedNumber || '未设置床位'} · 入住 ${form.dormitoryOccupantCount}/${form.dormitoryCapacity} 人`" disabled /></el-form-item>
<el-form-item :label="t('personnel.dormRoom')"><el-input :model-value="`${form.dormitoryBuildingName} · ${form.dormitoryRoomNumber}`" disabled /></el-form-item>
<el-form-item :label="t('personnel.bedCapacity')"><el-input :model-value="t('personnel.dormInfo', { bed: form.dormitoryBedNumber || t('personnel.noBed'), count: form.dormitoryOccupantCount, capacity: form.dormitoryCapacity })" disabled /></el-form-item>
</div>
<el-alert v-else title="该学生尚未分配宿舍" description="请前往“宿舍卫生管理 → 宿舍与入住”维护住宿安排。" type="info" :closable="false" show-icon />
<el-alert v-else :title="t('personnel.noDorm')" :description="t('personnel.dormHint')" type="info" :closable="false" show-icon />
<el-form-item :label="t('studentProfile.birthDate')"><el-date-picker v-model="form.dateOfBirth" value-format="YYYY-MM-DD" /></el-form-item>
<el-divider content-position="left">个人资料</el-divider>
<el-divider content-position="left">{{ t('personnel.profile') }}</el-divider>
<div class="form-grid">
<el-form-item :label="t('studentProfile.englishName')"><el-input v-model="form.englishName" /></el-form-item>
<el-form-item :label="t('studentProfile.idNumber')"><el-input v-model="form.idCardNumber" /></el-form-item>
@@ -718,9 +717,9 @@ watch(active, async () => {
<el-form-item :label="t('studentProfile.relationship')"><el-input v-model="form.emergencyContactRelationship" /></el-form-item>
<el-form-item :label="t('studentProfile.emergencyPhone')"><el-input v-model="form.emergencyContactPhone" /></el-form-item>
</div>
<el-form-item label="特殊标记">
<el-form-item :label="t('personnel.specialTags')">
<el-select v-model="form.specialTags" multiple filterable :placeholder="t('studentProfile.selectSpecialTag')">
<el-option v-for="tag in specialTagOptions" :key="tag" :label="tag" :value="tag" />
<el-option v-for="tag in specialTagOptions" :key="tag" :label="specialTagLabel(tag)" :value="tag" />
</el-select>
</el-form-item>
<el-form-item :label="t('studentProfile.specialNeeds')"><el-input v-model="form.specialNeeds" type="textarea" :rows="3" /></el-form-item>
@@ -734,18 +733,18 @@ watch(active, async () => {
</el-form>
<template #footer>
<el-button @click="dialogVisible = false">{{ t('businessLabels.cancel') }}</el-button>
<el-button type="primary" @click="save">保存档案</el-button>
<el-button type="primary" @click="save">{{ t('personnel.saveRecord') }}</el-button>
</template>
</el-dialog>
<el-dialog
v-model="activationDialog"
title="激活教师账号"
:title="t('personnel.activationTitle')"
width="520px"
@closed="activatingTeacher = null"
>
<el-alert
title="账号激活后,教师可使用工号和初始密码登录。请通过安全方式将密码交给教师。"
:title="t('personnel.activationHint')"
type="info"
:closable="false"
show-icon
@@ -759,16 +758,16 @@ watch(active, async () => {
<el-input :model-value="activatingTeacher.teacherNumber" disabled />
</el-form-item>
</div>
<el-form-item label="初始密码" required>
<el-form-item :label="t('personnel.initialPassword')" required>
<el-input
v-model="activationForm.password"
type="password"
show-password
autocomplete="new-password"
placeholder="至少 8 位,含大小写字母、数字和特殊字符"
:placeholder="t('personnel.passwordHint')"
/>
</el-form-item>
<el-form-item label="确认初始密码" required>
<el-form-item :label="t('personnel.confirmPassword')" required>
<el-input
v-model="activationForm.confirmPassword"
type="password"
@@ -785,7 +784,7 @@ watch(active, async () => {
:loading="activationLoading"
@click="activateTeacherAccount"
>
确认激活
{{ t('personnel.confirmActivate') }}
</el-button>
</template>
</el-dialog>
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff. Show more