diff --git a/web/src/i18n/messages/en-US.ts b/web/src/i18n/messages/en-US.ts index 6d5ba16..7a03ef2 100644 --- a/web/src/i18n/messages/en-US.ts +++ b/web/src/i18n/messages/en-US.ts @@ -1,4 +1,5 @@ export default { + warningsPage: {"failed":"Failed-course credits","lowGpa":"Low GPA","absence":"Absence","delay":"Delayed graduation risk","active":"Active","acknowledged":"Acknowledged","processed":"Processed","ignored":"Ignored","failedUnit":" failed courses","gpaThreshold":"Minimum GPA","absenceUnit":" absences / late arrivals","cumulativeUnit":" cumulative failed courses","daily":"Every day","monday":"Monday","tuesday":"Tuesday","wednesday":"Wednesday","thursday":"Thursday","friday":"Friday","saturday":"Saturday","sunday":"Sunday","exportFile":"Academic warnings.xlsx","rulesSaved":"Warning rules saved","detectConfirm":"The system will scan all currently enrolled students in the current term and notify students and counselors of generated warnings.","detectTitle":"Run academic warning detection","detectStart":"Start detection","acknowledgePrompt":"Acknowledge this warning? You can optionally add a comment.","acknowledgeTitle":"Acknowledge warning","confirm":"Confirm","confirmed":"Acknowledged","taskUpdated":"Follow-up task updated","contentRequired":"Enter the record content","entrySaved":"Intervention record saved","studentTitle":"My warnings","managerTitle":"Academic warnings","managerDescription":"Configure warning rules, run detection, and review warnings.","counselorDescription":"View academic warnings for assigned students.","studentDescription":"View and acknowledge your academic warning notifications.","rulesTitle":"Warning rules","saveRules":"Save rules","runDetection":"Run detection","threshold":"Threshold","toggle":"Enabled","student":"Student","autoDetection":"Automatic detection","every":"Every","hour":"hour","minute":"minute","recordsTitle":"Warning records","studentSearch":"Name / Student number","organization":"Organization","details":"Threshold / Details","emptyRecords":"No warning records. Run detection first.","riskTitle":"Risk intervention follow-up","privacyHint":"Interview and support records are sensitive and visible only to assigned counselors and academic administrators.","warningType":"Warning type","followUpDue":"Follow-up deadline","reviewDate":"Review date","unset":"Not set","pendingFollowUp":"Pending follow-up","inProgress":"In progress","pendingReview":"Pending review","closed":"Closed","intervene":"Manage","emptyTasks":"No risk tasks require follow-up","emptyWarnings":"No academic warnings","mySupport":"My support and review progress","mySupportHint":"View your counselor’s interview, support, and review records.","unscheduled":"Not scheduled","interview":"Interview","support":"Support measure","reviewEntry":"Review","emptyEntries":"Your counselor has not entered intervention records","riskDialog":"Academic risk intervention (sensitive)","followUpStatus":"Follow-up status","saveTask":"Save task","addEntry":"Add intervention record","entryType":"Record type","occurredAt":"Date and time","content":"Content","entryPlaceholder":"Record interview points, support measures, or review conclusions","history":"Intervention history","detected":"Detection complete: {count} warnings generated","grade":"Enrolled {year}","page":"Batch {page}","pendingCount":"Pending {count}","lastRun":"Last run: {date}","followUpValue":"Follow-up deadline: {date}","reviewValue":"Review date: {date}","recordedBy":"Recorded by: {name}"}, officialDocuments: {"transcript":"Official electronic transcript","certificate":"Student status certificate","valid":"Valid","invalidated":"Invalidated","superseded":"Reissued","selectStudent":"Select a student.","reused":"Your recently requested valid document has been retained.","issued":"Official document issued.","generated":"The electronic document is ready to download from the list.","invalidatePrompt":"After invalidation, students cannot download the document; verification of downloaded copies will show it as invalid. Enter a reason.","confirmInvalidate":"Confirm invalidation","reasonLength":"The reason must contain 2–500 characters","invalidateSuccess":"Document invalidated.","reissuePrompt":"The original will be frozen and a new number and QR code generated using current official data. Enter the reason for reissue.","reissueTitle":"Reissue document","confirmReissue":"Confirm reissue","reissueSuccess":"A new document was issued and the original marked as superseded.","managerTitle":"Official document issuance","studentTitle":"Electronic transcripts and certificates","managerDescription":"The server preserves an issuance snapshot and PDF. Each document has a unique number and a publicly verifiable QR code.","studentDescription":"Request a PDF online and use its QR code for public verification.","issueNew":"Issue new document","request":"Request electronic document","uniqueNumber":"Unique number","uniqueHint":"Each issuance has a unique number","qr":"QR verification","qrHint":"Shows current validity","downloadTracking":"Download audit","downloadHint":"Time, account and source are recorded","lifecycle":"Invalidation and reissue","lifecycleHint":"The original document history is retained","allTypes":"All document types","missingReason":"No reason provided","downloadPdf":"Download PDF","invalidate":"Invalidate","reissue":"Reissue","emptyManager":"No official documents match the filters","emptyStudent":"No electronic documents yet. Use the button above to request one.","issueTitle":"Issue official document","managerNotice":"Issuance preserves the current official data. Subsequent changes do not alter issued documents.","studentNotice":"The document is generated from your student record. Transcripts include only officially published grades. Identical requests within five minutes reuse the existing file.","student":"Student","searchStudent":"Search by name or student number","documentType":"Document type","purpose":"Purpose (optional)","purposeHint":"For example, further study or internship applications","confirmIssue":"Confirm issuance","submitRequest":"Submit request","history":"Document download history","downloadedBy":"Downloaded by","downloadTime":"Download time","sourceIp":"Source IP","emptyHistory":"No download history","total":"{count} documents","issuedBy":"Issued {date} · {name}","purposeValue":"Purpose: {purpose}","downloadCount":"Download history ({count})","statusReason":"{status}: {reason}"}, baseData: {"campus":"Campus","campusHint":"Physical university campuses","college":"College","collegeHint":"Teaching organizations","major":"Major","majorHint":"Majors and awarded degrees","class":"Administrative class","classHint":"Classes organized by enrollment year","term":"Term","termHint":"Teaching timeline","building":"Teaching building","buildingHint":"Teaching buildings on campus","classroom":"Classroom","classroomHint":"Teaching spaces available for scheduling","category":"Course category","categoryHint":"Teaching field of a course","organization":"Organizations","organizationDescription":"Maintain the hierarchy of campuses, colleges, majors, and administrative classes.","academicTerms":"Academic years and terms","termDescription":"Maintain academic years, term boundaries, and the current working term.","facilities":"Teaching facilities","facilitiesDescription":"Maintain classrooms available for scheduling by campus and building.","categoryDescription":"Maintain teaching fields including foundational studies, arts, ethics, innovation, and entrepreneurship. Course nature and category are independent.","generalRoom":"General classroom","laboratory":"Laboratory","training":"Training room","computerLab":"Computer lab","languageLab":"Language lab","sports":"Sports venue","arts":"Arts venue","unset":"Not set","bachelor":"Bachelor","confirmImport":"Confirm import","import":"Import","cancel":"Cancel","requiredFields":"Enter the code and name.","saved":"Changes saved","deleteTitle":"Confirm deletion","delete":"Delete","deleted":"Deleted","switchTerm":"Switch current term","switchCurrent":"Set as current","tabsAria":"Base data categories","allArchive":"All archive statuses","unarchived":"Not archived","archived":"Archived","search":"Search code, name, or parent organization","enrollmentYear":"Enrollment year","allCampuses":"All campuses","allBuildings":"All teaching buildings","venueNature":"Venue nature","minimumCapacity":"Minimum capacity","disabled":"Disabled","excelImport":"Import Excel","export":"Export results","switchHint":"Switching the current term changes only the default working term. Archive manually; makeup exams and grade corrections remain available after archiving.","selectTerms":"Select terms","archiveMany":"Archive selected","restoreMany":"Restore selected","current":"Current","historical":"Historical term","setCurrent":"Set as current","unarchive":"Unarchive","archive":"Archive","archiveHistory":"Archive history","viewHistory":"View history","code":"Code","name":"Name","parentCampus":"Campus","parentCollege":"College","degreeType":"Degree type","parentMajor":"Major","counselor":"Counselor","unassigned":"Unassigned","academicYear":"Academic year","operationalStatus":"Operational status","floor":"Floor","enabled":"Enabled","empty":"No data yet. Use the button at the top right to add an item.","edit":"Edit","add":"Add","unique":"Unique identifier","address":"Address","shortName":"College short name","schoolingYears":"Program duration in years","counselorAccount":"Counselor account","season":"Term season","autumn":"Autumn term","spring":"Spring term","summer":"Summer term","setCurrentTerm":"Set as current term","unarchiveFirst":"Unarchive the term first.","parentBuilding":"Teaching building","locatedFloor":"Floor","roomType":"Classroom type","teachingVenueNature":"Teaching venue nature","equipment":"Equipment","sort":"Sort order","templateFile":"{title}-import template.xlsx","exported":"{title} exported","importConfirm":"Preview passed: {created} new records, {updated} updates, {total} records in total. Import now?","imported":"Import complete: {created} added, {updated} updated","created":"{title} added","deleteConfirm":"Delete “{name}”? Data referenced by business records cannot be deleted.","switchConfirm":"Set “{name}” as the current term? Other terms will display as historical but will not be archived, and grades and makeup exams will remain editable.","switched":"Current term switched to “{name}”","addTitle":"Add {title}","editTitle":"Edit {title}","total":"{count} records","floorNumber":"Floor {floor}","listSeparator":", "}, courses: {"generalRequired":"General education required","majorRequired":"Major required","majorElective":"Major elective","generalElective":"General education elective","practice":"Practical course","examination":"Examination","assessment":"Assessment","percentage":"Percentage","passFail":"Pass / Fail","letterGrade":"ABCDE letter grades","collegeFallback":"Assigned college","allScope":"University-wide courses · All course natures","templateFile":"Course catalog import template.xlsx","exportFile":"Course catalog.xlsx","confirmImport":"Confirm import","import":"Import","cancel":"Cancel","requiredFields":"Enter the course code, name, offering college, and category.","hoursInvalid":"Lecture hours plus practical hours cannot exceed total hours.","updated":"Course updated","created":"Course added to the catalog","deleteTitle":"Delete course","delete":"Delete","deleted":"Course deleted","title":"Course catalog","description":"General education courses are coordinated university-wide. Major and practical courses are maintained by the offering college and shared with curricula and teaching tasks.","export":"Export results","newCourse":"Add course","visible":"Currently visible","coursesUnit":"courses","scope":"Maintenance scope","collegeScopeHint":"General education courses can be viewed and referenced","schoolScopeHint":"Coordinates standards across colleges","searchPlaceholder":"Search course code, Chinese or English name","ownCollege":"Assigned offering college","allColleges":"All offering colleges","allCategories":"All course categories","allNatures":"All course natures","allArchives":"All archive statuses","unarchived":"Not archived","archived":"Archived","disabled":"Disabled","excelImport":"Import Excel","archiveMany":"Archive selected","restoreMany":"Restore selected","archiveStatus":"Archive status","code":"Course code","college":"Offering college","category":"Course category","uncategorized":"Uncategorized","nature":"Nature","creditHours":"Credits / Hours","hoursComposition":"Hour breakdown","assessmentLabel":"Assessment","evaluation":"Grading method","prerequisites":"Prerequisites","enabled":"Enabled","restore":"Restore","archive":"Archive","archiveHistory":"Archive history","schoolOnly":"University-level maintenance","empty":"No courses match the filters","edit":"Edit","add":"Add","uniqueCode":"Unique across the university","englishName":"English name","courseNature":"Course nature","twoDimensions":"Two dimensions","categoryHint":"Category identifies the teaching field; nature determines how the course is managed within curricula.","totalHours":"Total hours","assessmentMethod":"Assessment method","lectureHours":"Lecture hours","practiceHours":"Practical hours","gradeMethod":"Grading method","gpaHint":"For ABCDE grades, A–D pass and E fails. GPA points are A=4, B=3, C=2, D=1, E=0. Pass/fail courses are excluded from GPA.","selectPrerequisites":"Select courses that must be passed before taking this course","prerequisitesHint":"Student planning checks whether these courses have already been passed or scheduled in an earlier simulated term.","courseDescription":"Course description","sortOrder":"Sort order","save":"Save course","collegeScope":"{college} · Major and practical courses","importConfirm":"Preview passed: {created} new courses, {updated} updates, {total} courses in total. Import now?","imported":"Import complete: {created} added, {updated} updated, {total} courses processed.","deleteConfirm":"Delete course “{name}”? Courses referenced by curricula cannot be deleted.","exportHint":"Excel export uses the current filters · {total} courses","selectedCount":"{count} selected on this page","creditsAndHours":"{credits} credits · {hours} hours","hoursBreakdown":"Lecture {lecture} / Practical {practice}","total":"{count} courses","page":"Batch {page}","editTitle":"Edit course","addTitle":"Add course"}, diff --git a/web/src/i18n/messages/zh-CN.ts b/web/src/i18n/messages/zh-CN.ts index df7df17..af86562 100644 --- a/web/src/i18n/messages/zh-CN.ts +++ b/web/src/i18n/messages/zh-CN.ts @@ -1,4 +1,5 @@ export default { + warningsPage: {"failed":"不及格学分","lowGpa":"低绩点","absence":"缺勤","delay":"延毕风险","active":"生效中","acknowledged":"已确认","processed":"已处理","ignored":"已忽略","failedUnit":"门 不及格","gpaThreshold":"GPA 下限","absenceUnit":"次 缺勤/迟到","cumulativeUnit":"门 累计不及格","daily":"每天","monday":"周一","tuesday":"周二","wednesday":"周三","thursday":"周四","friday":"周五","saturday":"周六","sunday":"周日","exportFile":"学业预警记录.xlsx","rulesSaved":"预警规则已保存","detectConfirm":"系统将扫描当前学期全部在籍学生,产生的预警将自动通知学生及辅导员。","detectTitle":"执行学业预警检测","detectStart":"开始检测","acknowledgePrompt":"确认已知晓此预警?(可选填备注)","acknowledgeTitle":"确认预警","confirm":"确认","confirmed":"已确认","taskUpdated":"跟进任务已更新","contentRequired":"请填写记录内容","entrySaved":"处置记录已保存","studentTitle":"我的预警","managerTitle":"学业预警","managerDescription":"配置预警规则,执行检测,查看预警记录。","counselorDescription":"查看所管学生的学业预警情况。","studentDescription":"查看并确认您的学业预警通知。","rulesTitle":"预警规则配置","saveRules":"保存规则","runDetection":"执行检测","threshold":"阈值","toggle":"开关","student":"学生","autoDetection":"自动检测","every":"每","hour":"时","minute":"分","recordsTitle":"预警记录","studentSearch":"姓名 / 学号","organization":"组织信息","details":"阈值/详情","emptyRecords":"暂无预警记录,请先执行检测。","riskTitle":"风险处置跟进","privacyHint":"谈话和帮扶记录为敏感信息,仅被指派辅导员和学业管理人员可见。","warningType":"预警类型","followUpDue":"跟进截止","reviewDate":"复核日期","unset":"待设置","pendingFollowUp":"待跟进","inProgress":"跟进中","pendingReview":"待复核","closed":"已结案","intervene":"处置","emptyTasks":"暂无需要跟进的风险任务","emptyWarnings":"暂无学业预警","mySupport":"我的帮扶与复核进度","mySupportHint":"这里展示辅导员针对本人的谈话、帮扶和复核记录。","unscheduled":"待安排","interview":"谈话记录","support":"帮扶措施","reviewEntry":"复核记录","emptyEntries":"辅导员暂未填写处置记录","riskDialog":"学业风险处置(敏感)","followUpStatus":"跟进状态","saveTask":"保存任务","addEntry":"新增处置记录","entryType":"记录类别","occurredAt":"发生时间","content":"内容","entryPlaceholder":"记录谈话要点、帮扶措施或复核结论","history":"处置历史","detected":"检测完成,生成 {count} 条预警","grade":"{year}级","page":"第 {page} 批","pendingCount":"待办 {count}","lastRun":"上次: {date}","followUpValue":"跟进截止:{date}","reviewValue":"复核日期:{date}","recordedBy":"记录人:{name}"}, officialDocuments: {"transcript":"官方电子成绩单","certificate":"学籍状态证明","valid":"有效","invalidated":"已失效","superseded":"已重签","selectStudent":"请选择学生。","reused":"已为你保留刚申请的同类有效凭证。","issued":"官方凭证已签发。","generated":"电子凭证已生成,可在列表中下载。","invalidatePrompt":"失效后学生不能再下载,但已下载文件仍可扫码看到“已失效”。请输入原因。","confirmInvalidate":"确认失效","reasonLength":"原因需为 2-500 个字符","invalidateSuccess":"凭证已失效。","reissuePrompt":"系统会冻结原凭证并按当前正式数据生成新编号和新二维码。请输入重签原因。","reissueTitle":"重签凭证","confirmReissue":"确认重签","reissueSuccess":"新凭证已签发,原凭证已标记为被替代。","managerTitle":"官方凭证签发中心","studentTitle":"电子成绩单与证明","managerDescription":"服务端固化签发快照和 PDF,凭证编号唯一,二维码可公开验真。","studentDescription":"在线申请后即时生成,可下载 PDF,并通过二维码公开验真。","issueNew":"签发新凭证","request":"申请电子凭证","uniqueNumber":"唯一编号","uniqueHint":"每次签发独立编号","qr":"二维码验真","qrHint":"实时显示有效状态","downloadTracking":"下载留痕","downloadHint":"时间、账号与来源可追溯","lifecycle":"失效与重签","lifecycleHint":"旧凭证保留完整链路","allTypes":"全部凭证类型","missingReason":"未填写原因","downloadPdf":"下载 PDF","invalidate":"设为失效","reissue":"重签","emptyManager":"暂无符合条件的官方凭证","emptyStudent":"暂无电子凭证,可点击上方按钮在线申请","issueTitle":"签发官方凭证","managerNotice":"签发后将固化当前正式数据;后续数据修改不会悄悄改变已签发文件。","studentNotice":"系统将按你的学籍档案即时生成;成绩单仅包含已正式发布的成绩,5 分钟内重复申请同类型、同用途凭证将复用已有文件。","student":"学生","searchStudent":"按姓名或学号搜索","documentType":"凭证类型","purpose":"用途(可选)","purposeHint":"例如:升学申请、实习材料","confirmIssue":"确认签发","submitRequest":"提交申请","history":"凭证下载记录","downloadedBy":"下载人","downloadTime":"下载时间","sourceIp":"来源 IP","emptyHistory":"尚无下载记录","total":"共 {count} 份凭证","issuedBy":"签发于 {date} · {name}","purposeValue":"用途:{purpose}","downloadCount":"下载记录({count})","statusReason":"{status}:{reason}"}, baseData: {"campus":"校区","campusHint":"学校的物理校区","college":"学院","collegeHint":"教学组织单位","major":"专业","majorHint":"专业与授予学位","class":"行政班","classHint":"按年级组织的班级","term":"学期","termHint":"教学运行时间轴","building":"教学楼","buildingHint":"校区内教学建筑","classroom":"教室","classroomHint":"可排课教学空间","category":"课程分类","categoryHint":"课程所属教学领域","organization":"组织机构","organizationDescription":"维护校区、学院、专业与行政班的稳定组织层级。","academicTerms":"学年学期","termDescription":"集中维护教学年度、学期边界与当前运行学期。","facilities":"教学场所","facilitiesDescription":"按校区和教学楼维护可用于排课的教室资源。","categoryDescription":"统一维护基础课、美育、德育、创新创业等课程教学领域。课程性质与课程分类相互独立。","generalRoom":"普通教室","laboratory":"实验室","training":"实训室","computerLab":"计算机机房","languageLab":"语音室","sports":"体育场地","arts":"艺术场地","unset":"未设置","bachelor":"学士","confirmImport":"确认导入","import":"正式导入","cancel":"取消","requiredFields":"请填写编码和名称。","saved":"已保存修改","deleteTitle":"删除确认","delete":"删除","deleted":"已删除","switchTerm":"切换当前学期","switchCurrent":"切换为当前","tabsAria":"基础数据分类","allArchive":"全部归档状态","unarchived":"未归档","archived":"已归档","search":"搜索编码、名称或所属单位","enrollmentYear":"入学年级","allCampuses":"全部校区","allBuildings":"全部教学楼","venueNature":"场地性质","minimumCapacity":"最小容量","disabled":"停用","excelImport":"Excel 导入","export":"导出结果","switchHint":"切换当前学期只改变默认工作学期;归档需手动执行,归档后仍可处理补考与成绩更正。","selectTerms":"选择学期","archiveMany":"批量归档","restoreMany":"批量恢复","current":"当前","historical":"历史学期","setCurrent":"设为当前","unarchive":"撤销归档","archive":"归档","archiveHistory":"归档历史","viewHistory":"查看历史","code":"编码","name":"名称","parentCampus":"所属校区","parentCollege":"所属学院","degreeType":"学位类型","parentMajor":"所属专业","counselor":"辅导员","unassigned":"未分配","academicYear":"学年","operationalStatus":"运行状态","floor":"楼层","enabled":"启用","empty":"暂无数据,点击右上角开始新增","edit":"编辑","add":"新增","unique":"用于唯一识别","address":"地址","shortName":"学院简称","schoolingYears":"学制","counselorAccount":"辅导员账号","season":"学期季","autumn":"秋季学期","spring":"春季学期","summer":"夏季学期","setCurrentTerm":"设为当前学期","unarchiveFirst":"已归档学期需先撤销归档。","parentBuilding":"所属教学楼","locatedFloor":"所在楼层","roomType":"教室类型","teachingVenueNature":"教学场地性质","equipment":"设备","sort":"排序","templateFile":"{title}导入模板.xlsx","exported":"{title}已导出","importConfirm":"预检通过:将新增 {created} 条、更新 {updated} 条,共处理 {total} 条。确认正式导入?","imported":"导入完成:新增 {created} 条,更新 {updated} 条","created":"已新增{title}","deleteConfirm":"确定删除“{name}”吗?已被业务引用的数据将无法删除。","switchConfirm":"将“{name}”切换为当前学期?其他学期会自动转为历史显示,但不会自动归档,也不会冻结成绩和补考。","switched":"当前学期已切换为“{name}”","addTitle":"新增{title}","editTitle":"编辑{title}","total":"共 {count} 条","floorNumber":"{floor} 层","listSeparator":"、"}, courses: {"generalRequired":"通识必修","majorRequired":"专业必修","majorElective":"专业选修","generalElective":"通识选修","practice":"实践课程","examination":"考试","assessment":"考查","percentage":"百分制","passFail":"合格/不合格","letterGrade":"ABCDE 等级制","collegeFallback":"所属学院","allScope":"全校课程 · 全性质","templateFile":"课程库导入模板.xlsx","exportFile":"课程库.xlsx","confirmImport":"确认导入","import":"正式导入","cancel":"取消","requiredFields":"请填写课程编码、名称、开课学院和课程分类。","hoursInvalid":"讲授学时与实践学时之和不能超过总学时。","updated":"课程已更新","created":"课程已加入课程库","deleteTitle":"删除课程","delete":"删除","deleted":"课程已删除","title":"课程库","description":"通识课程由校级统筹,专业课与实践课由开课学院维护,统一供培养方案与教学任务引用。","export":"导出结果","newCourse":"新增课程","visible":"当前可见","coursesUnit":"门课程","scope":"维护范围","collegeScopeHint":"通识课程可查看、可引用","schoolScopeHint":"负责跨学院标准统筹","searchPlaceholder":"搜索课程编码、中英文名称","ownCollege":"所属开课学院","allColleges":"全部开课学院","allCategories":"全部课程分类","allNatures":"全部课程性质","allArchives":"全部归档状态","unarchived":"未归档","archived":"已归档","disabled":"停用","excelImport":"Excel 导入","archiveMany":"批量归档","restoreMany":"批量恢复","archiveStatus":"归档状态","code":"课程编码","college":"开课学院","category":"课程分类","uncategorized":"未分类","nature":"性质","creditHours":"学分/学时","hoursComposition":"学时构成","assessmentLabel":"考核","evaluation":"成绩评价","prerequisites":"先修课程","enabled":"启用","restore":"恢复","archive":"归档","archiveHistory":"归档历史","schoolOnly":"校级维护","empty":"没有符合条件的课程","edit":"编辑","add":"新增","uniqueCode":"全校唯一","englishName":"英文名称","courseNature":"课程性质","twoDimensions":"两个维度","categoryHint":"分类表示教学领域,性质决定课程在培养方案中的管理方式。","totalHours":"总学时","assessmentMethod":"考核方式","lectureHours":"讲授学时","practiceHours":"实践学时","gradeMethod":"成绩评价方式","gpaHint":"ABCDE 中 A–D 通过、E 不通过,并按 A=4、B=3、C=2、D=1、E=0 计入 GPA;合格制不计 GPA。","selectPrerequisites":"选择修读本课程前必须通过的课程","prerequisitesHint":"学生规划时会检查这些课程是否已经通过,或安排在更早的模拟学期。","courseDescription":"课程简介","sortOrder":"排序","save":"保存课程","collegeScope":"{college} · 专业课与实践课","importConfirm":"预检通过:将新增 {created} 门、更新 {updated} 门,共处理 {total} 门。确认正式导入?","imported":"导入完成:新增 {created} 门,更新 {updated} 门,共处理 {total} 门。","deleteConfirm":"确定删除课程“{name}”吗?已进入培养方案的课程将无法删除。","exportHint":"当前筛选条件会原样用于 Excel 导出 · 共 {total} 门","selectedCount":"已选 {count} 条(当前页)","creditsAndHours":"{credits} 学分 · {hours} 学时","hoursBreakdown":"讲授 {lecture} / 实践 {practice}","total":"共 {count} 门","page":"第 {page} 批","editTitle":"编辑课程","addTitle":"新增课程"}, diff --git a/web/src/views/ApprovalCenterView.vue b/web/src/views/ApprovalCenterView.vue index 8d9ec52..42b3b9a 100644 --- a/web/src/views/ApprovalCenterView.vue +++ b/web/src/views/ApprovalCenterView.vue @@ -325,7 +325,7 @@ async function rejectSubmit() { if (ep) { await http.post(`${ep}/${rejectItem.value.id}/reject`, { comment: rejectComment.value }) rejectDialog.value = false - ElMessage.success('已驳回') + ElMessage.success(t('statusChanges.states.Rejected')) await load() } } catch (e) { diff --git a/web/src/views/ClassroomReservationsView.vue b/web/src/views/ClassroomReservationsView.vue index 52f04ae..2352615 100644 --- a/web/src/views/ClassroomReservationsView.vue +++ b/web/src/views/ClassroomReservationsView.vue @@ -405,7 +405,7 @@ async function rejectReservation(item: Reservation | Record) { await http.post(`/classroom-reservations/${item.id}/reject`, { comment: result.value.trim(), }) - ElMessage.success('申请已驳回。') + ElMessage.success(t('statusChanges.messages.rejected')) await loadReview() } catch (error) { if (error === 'cancel' || error === 'close') return diff --git a/web/src/views/CourseAdjustmentsView.vue b/web/src/views/CourseAdjustmentsView.vue index 93c3de7..10c6db9 100644 --- a/web/src/views/CourseAdjustmentsView.vue +++ b/web/src/views/CourseAdjustmentsView.vue @@ -284,7 +284,7 @@ async function doReject() { comment: rejectComment.value, }) rejectDialog.value = false - ElMessage.success('已退回') + ElMessage.success(t('dashboard.teacher.status.Returned')) await load() } catch (e) { ElMessage.error(apiErrorMessage(e)) } } diff --git a/web/src/views/CourseSelectionView.vue b/web/src/views/CourseSelectionView.vue index c25483c..8332fcf 100644 --- a/web/src/views/CourseSelectionView.vue +++ b/web/src/views/CourseSelectionView.vue @@ -798,7 +798,7 @@ async function withdraw(offering: any) { { type: 'warning', confirmButtonText: '确认退选', cancelButtonText: '暂不退选' }, ) await http.delete(`/course-selections/student/enrollments/${enrollment.id}`) - ElMessage.success('已退选') + ElMessage.success(t('enrollmentManagement.statuses.Withdrawn')) await selectRound(selectedRound.value) } catch (error: any) { if (error !== 'cancel' && error !== 'close') ElMessage.error(apiErrorMessage(error)) diff --git a/web/src/views/DormitoryHygieneView.vue b/web/src/views/DormitoryHygieneView.vue index b896bcd..133fabd 100644 --- a/web/src/views/DormitoryHygieneView.vue +++ b/web/src/views/DormitoryHygieneView.vue @@ -113,7 +113,7 @@ async function loadCalculationOptions(){if(!calculationTermId.value)return;const async function loadCalculations(page=calculationPage.value){calculationPage.value=page;const{data}=await http.get('/dormitory-hygiene/calculations',{params:{page,pageSize:calculationPageSize.value}});calculations.value=data.items??[];calculationTotal.value=data.total??0} const calculationStatus=(v:any)=>({1:'排队中',2:'计算中',3:'已完成',4:'失败'} as Record)[enumCode(v,{Queued:1,Running:2,Succeeded:3,Failed:4})]??'未知' async function openCalculation(x:any,pageOrColumn:any=1){const page=typeof pageOrColumn==='number'?pageOrColumn:1;calculationResultPage.value=page;const{data}=await http.get(`/dormitory-hygiene/calculations/${x.id}`,{params:{page,pageSize:50}});selectedCalculation.value=data.calculation;calculationResults.value=data.results.items??[];calculationResultTotal.value=data.results.total??0} -async function startCalculation(){if(!calculationTermId.value)return ElMessage.warning('请选择学期');if(!calculationBatchIds.value.length)return ElMessage.warning('请至少选择一个检查批次');saving.value=true;await safe(async()=>{const{data}=await http.post('/dormitory-hygiene/calculations',{academicTermId:calculationTermId.value,batchIds:calculationBatchIds.value});ElMessage.success('汇总任务已进入后台队列');let completed=false;for(let attempt=0;attempt<300;attempt++){await wait(1000);const detail=(await http.get(`/dormitory-hygiene/calculations/${data.id}`,{params:{page:1,pageSize:50}})).data;selectedCalculation.value=detail.calculation;calculationResults.value=detail.results.items??[];calculationResultTotal.value=detail.results.total??0;const status=enumCode(detail.calculation.status,{Queued:1,Running:2,Succeeded:3,Failed:4});if(status===3){completed=true;ElMessage.success('本学期宿舍卫生平均分已入库');break}if(status===4)throw new Error(detail.calculation.errorMessage||'汇总计算失败')}if(!completed)throw new Error('后台计算仍在进行,可稍后从计算记录中查看结果');await loadCalculations()});saving.value=false} +async function startCalculation(){if(!calculationTermId.value)return ElMessage.warning(t('businessLabels.selectTerm'));if(!calculationBatchIds.value.length)return ElMessage.warning('请至少选择一个检查批次');saving.value=true;await safe(async()=>{const{data}=await http.post('/dormitory-hygiene/calculations',{academicTermId:calculationTermId.value,batchIds:calculationBatchIds.value});ElMessage.success('汇总任务已进入后台队列');let completed=false;for(let attempt=0;attempt<300;attempt++){await wait(1000);const detail=(await http.get(`/dormitory-hygiene/calculations/${data.id}`,{params:{page:1,pageSize:50}})).data;selectedCalculation.value=detail.calculation;calculationResults.value=detail.results.items??[];calculationResultTotal.value=detail.results.total??0;const status=enumCode(detail.calculation.status,{Queued:1,Running:2,Succeeded:3,Failed:4});if(status===3){completed=true;ElMessage.success('本学期宿舍卫生平均分已入库');break}if(status===4)throw new Error(detail.calculation.errorMessage||'汇总计算失败')}if(!completed)throw new Error('后台计算仍在进行,可稍后从计算记录中查看结果');await loadCalculations()});saving.value=false} async function openBatch(x:any,page=1){selectedBatch.value=x;scorePage.value=page;const{data}=await http.get(`/dormitory-hygiene/batches/${x.id}/scores`,{params:{buildingId:hygieneBuilding.value,floor:hygieneFloor.value,page,pageSize:scorePageSize.value}});scores.value=data.scores.items;scoreTotal.value=data.scores.total??0;scoreSummary.value=data.summary} function openBatchForm(x?:any){editingBatch.value=x;Object.assign(batchForm,x?{name:x.name,inspectionDate:x.inspectionDate,inspector:x.inspector??''}:{name:'',inspectionDate:localDateValue(),inspector:''});batchDialog.value=true} async function saveBatch(){if(!batchForm.name.trim())return ElMessage.warning('请填写批次名称');await safe(async()=>{editingBatch.value?await http.put(`/dormitory-hygiene/batches/${editingBatch.value.id}`,batchForm):await http.post('/dormitory-hygiene/batches',batchForm);batchDialog.value=false;ElMessage.success(editingBatch.value?'批次已修改':'批次已创建');await loadBatches();if(editingBatch.value&&selectedBatch.value?.id===editingBatch.value.id){const updated=batches.value.find(x=>x.id===editingBatch.value.id);if(updated)await openBatch(updated)}})} @@ -121,7 +121,7 @@ async function deleteBatch(x:any){if(enumCode(x.status,{Draft:1,Published:2})=== async function searchScoreRooms(keyword=''){const requestId=++scoreRoomsRequestId;scoreRoomsLoading.value=true;try{const{data}=await http.get('/dormitory-hygiene/rooms',{params:{keyword:keyword.trim()||undefined,page:1,pageSize:50}});if(requestId!==scoreRoomsRequestId)return;const selected=scoreRooms.value.find(item=>item.id===scoreForm.dormitoryRoomId);scoreRooms.value=[...(selected?[selected]:[]),...data.items.filter((item:any)=>item.id!==selected?.id)]}catch(e){ElMessage.error(apiErrorMessage(e))}finally{if(requestId===scoreRoomsRequestId)scoreRoomsLoading.value=false}} async function newScore(x?:any){Object.assign(scoreForm,x?{dormitoryRoomId:x.dormitoryRoomId,floorScore:x.floorScore,beddingScore:x.beddingScore,belongingsScore:x.belongingsScore,facilitiesScore:x.facilitiesScore,safetyScore:x.safetyScore,isViolation:Boolean(x.isViolation),issues:x.issues??'',notes:x.notes??''}:{dormitoryRoomId:'',floorScore:20,beddingScore:20,belongingsScore:20,facilitiesScore:20,safetyScore:20,isViolation:false,issues:'',notes:''});scoreRooms.value=x?[{id:x.dormitoryRoomId,buildingName:x.buildingName,roomNumber:x.roomNumber}]:[];await searchScoreRooms();scoreDialog.value=true} async function saveScore(){if(!selectedBatch.value||!scoreForm.dormitoryRoomId)return;await safe(async()=>{await http.put(`/dormitory-hygiene/batches/${selectedBatch.value.id}/scores`,{scores:[scoreForm]});scoreDialog.value=false;await openBatch(selectedBatch.value);ElMessage.success('成绩已保存')})} -async function publish(){if(!selectedBatch.value)return;try{await ElMessageBox.confirm('确认发布本批次成绩?','发布成绩',{type:'warning'});await http.post(`/dormitory-hygiene/batches/${selectedBatch.value.id}/publish`);await Promise.all([openBatch(selectedBatch.value),loadBatches()]);ElMessage.success('成绩已发布')}catch(e){if(e!=='cancel'&&e!=='close')ElMessage.error(apiErrorMessage(e))}} +async function publish(){if(!selectedBatch.value)return;try{await ElMessageBox.confirm('确认发布本批次成绩?','发布成绩',{type:'warning'});await http.post(`/dormitory-hygiene/batches/${selectedBatch.value.id}/publish`);await Promise.all([openBatch(selectedBatch.value),loadBatches()]);ElMessage.success(t('otherExams.published'))}catch(e){if(e!=='cancel'&&e!=='close')ElMessage.error(apiErrorMessage(e))}} async function downloadScoreTemplate(){if(selectedBatch.value)await safe(async()=>downloadApiFile(`/dormitory-hygiene/batches/${selectedBatch.value.id}/template`,`${selectedBatch.value.name}-卫生成绩导入模板.xlsx`))} async function exportScores(){if(selectedBatch.value)await safe(async()=>downloadApiFile(`/dormitory-hygiene/batches/${selectedBatch.value.id}/export.xlsx`,`${selectedBatch.value.name}-卫生成绩.xlsx`,{params:{buildingId:hygieneBuilding.value,floor:hygieneFloor.value}}))} async function importScores(event:Event){const input=event.target as HTMLInputElement,file=input.files?.[0];input.value='';if(!file||!selectedBatch.value)return;saving.value=true;await safe(async()=>{const{data}=await importExcel(`/dormitory-hygiene/batches/${selectedBatch.value.id}/import`,file);ElMessage.success(`已合并导入 ${data.imported} 间宿舍成绩`);await Promise.all([openBatch(selectedBatch.value),loadBatches()])});saving.value=false} diff --git a/web/src/views/EvaluationView.vue b/web/src/views/EvaluationView.vue index f28d73d..45fae1f 100644 --- a/web/src/views/EvaluationView.vue +++ b/web/src/views/EvaluationView.vue @@ -75,7 +75,7 @@ function openEdit(setup: any) { async function saveSetup() { if (!setupForm.name.trim()) { ElMessage.warning('请输入方案名称'); return } - if (!setupForm.academicTermId) { ElMessage.warning('请选择学期'); return } + if (!setupForm.academicTermId) { ElMessage.warning(t('businessLabels.selectTerm')); return } if (dimSum.value !== 100) { ElMessage.warning('维度满分必须合计 100'); return } try { const payload = { @@ -109,7 +109,7 @@ async function deleteSetup(id: string) { try { await ElMessageBox.confirm('删除后不可恢复,确定删除?', '删除评教方案', { type: 'warning', confirmButtonText: '删除' }) await http.delete(`/evaluations/setups/${id}`) - ElMessage.success('已删除') + ElMessage.success(t('baseData.deleted')) await loadSetups() } catch (e: any) { if (e !== 'cancel' && e !== 'close') ElMessage.error(apiErrorMessage(e)) } } diff --git a/web/src/views/GradeAnalyticsView.vue b/web/src/views/GradeAnalyticsView.vue index 4cb4f60..cc149e2 100644 --- a/web/src/views/GradeAnalyticsView.vue +++ b/web/src/views/GradeAnalyticsView.vue @@ -404,7 +404,7 @@ async function submitComment() { if (!courseId) return const content = commentContent.value.trim() if (!content) { - ElMessage.warning('请先输入评论内容。') + ElMessage.warning(t('discussion.messages.enterContent')) return } commentSubmitting.value = true @@ -425,7 +425,7 @@ async function deleteComment(comment: GradeAnalyticsComment) { await ElMessageBox.confirm('删除后不能恢复,确定要删除这条评论吗?', '删除评论', { type: 'warning' }) await http.delete(`/grade-analytics/comments/${comment.id}`) comments.value = comments.value.filter(item => item.id !== comment.id) - ElMessage.success('评论已删除。') + ElMessage.success(t('discussion.messages.deleted')) } catch (error) { if (error !== 'cancel' && error !== 'close') ElMessage.error(apiErrorMessage(error)) } diff --git a/web/src/views/PersonnelView.vue b/web/src/views/PersonnelView.vue index 4ffc23d..7736bf9 100644 --- a/web/src/views/PersonnelView.vue +++ b/web/src/views/PersonnelView.vue @@ -395,7 +395,7 @@ async function activateTeacherAccount() { return } if (activationForm.password !== activationForm.confirmPassword) { - ElMessage.warning('两次输入的密码不一致。') + ElMessage.warning(t('auth.activation.mismatch')) return } diff --git a/web/src/views/UsersView.vue b/web/src/views/UsersView.vue index a2e103b..9247bc5 100644 --- a/web/src/views/UsersView.vue +++ b/web/src/views/UsersView.vue @@ -344,7 +344,7 @@ async function resetPassword() { return } if (passwordForm.newPassword !== passwordForm.confirmPassword) { - ElMessage.warning('两次输入的密码不一致。') + ElMessage.warning(t('auth.activation.mismatch')) return } try { diff --git a/web/src/views/WarningsView.vue b/web/src/views/WarningsView.vue index f8e29ff..7423725 100644 --- a/web/src/views/WarningsView.vue +++ b/web/src/views/WarningsView.vue @@ -59,20 +59,20 @@ function recordRequestParams(includePage = true) { } } -const typeLabels: Record = { 1: '不及格学分', 2: '低绩点', 3: '缺勤', 4: '延毕风险' } -const statusLabels: Record = { 1: '生效中', 2: '已确认', 3: '已处理', 4: '已忽略' } +const typeLabels = computed>(() => ({ 1: t('warningsPage.failed'), 2: t('warningsPage.lowGpa'), 3: t('warningsPage.absence'), 4: t('warningsPage.delay') })) +const statusLabels = computed>(() => ({ 1: t('warningsPage.active'), 2: t('warningsPage.acknowledged'), 3: t('warningsPage.processed'), 4: t('warningsPage.ignored') })) function tagType(type: number): 'danger' | 'warning' | 'info' { return type === 1 ? 'danger' : type === 2 ? 'warning' : 'info' } function thresholdUnit(type: number): string { - if (type === 1) return '门 不及格' - if (type === 2) return 'GPA 下限' - if (type === 3) return '次 缺勤/迟到' - return '门 累计不及格' + if (type === 1) return t('warningsPage.failedUnit') + if (type === 2) return t('warningsPage.gpaThreshold') + if (type === 3) return t('warningsPage.absenceUnit') + return t('warningsPage.cumulativeUnit') } -const weekOptions = [{ value: 0, label: '每天' }, { value: 1, label: '周一' }, { value: 2, label: '周二' }, { value: 3, label: '周三' }, { value: 4, label: '周四' }, { value: 5, label: '周五' }, { value: 6, label: '周六' }, { value: 7, label: '周日' }] +const weekOptions = computed(() => [{ value: 0, label: t('warningsPage.daily') }, { value: 1, label: t('warningsPage.monday') }, { value: 2, label: t('warningsPage.tuesday') }, { value: 3, label: t('warningsPage.wednesday') }, { value: 4, label: t('warningsPage.thursday') }, { value: 5, label: t('warningsPage.friday') }, { value: 6, label: t('warningsPage.saturday') }, { value: 7, label: t('warningsPage.sunday') }]) const ruleRows = reactive([ { type: 1 as number, name: '不及格学分', threshold: 2, isEnabled: true, notifyStudent: true, notifyCounselor: true, description: '', autoCheckEnabled: false, checkDayOfWeek: 0, checkHour: 8, checkMinute: 0, lastCheckAt: null as string | null }, @@ -142,7 +142,7 @@ function onRecordMajorChange() { async function exportRecords() { try { - await downloadApiFile('/warnings/records/export.xlsx', '学业预警记录.xlsx', { params: recordRequestParams(false) }) + await downloadApiFile('/warnings/records/export.xlsx', t('warningsPage.exportFile'), { params: recordRequestParams(false) }) } catch (e) { ElMessage.error(apiErrorMessage(e)) } } @@ -165,24 +165,24 @@ async function saveRules() { const payload = ruleRows.map(r => ({ type: r.type, name: r.name, threshold: r.threshold, isEnabled: r.isEnabled, notifyStudent: r.notifyStudent, notifyCounselor: r.notifyCounselor, description: r.description, autoCheckEnabled: r.autoCheckEnabled, checkDayOfWeek: r.checkDayOfWeek, checkHour: r.checkHour, checkMinute: r.checkMinute })) await http.put('/warnings/rules', payload, { params: { academicTermId: termId.value } }) await load() - ElMessage.success('预警规则已保存') + ElMessage.success(t('warningsPage.rulesSaved')) } catch (e) { ElMessage.error(apiErrorMessage(e)) } } async function detectWarnings() { try { - await ElMessageBox.confirm('系统将扫描当前学期全部在籍学生,产生的预警将自动通知学生及辅导员。', '执行学业预警检测', { type: 'warning', confirmButtonText: '开始检测' }) + await ElMessageBox.confirm(t('warningsPage.detectConfirm'), t('warningsPage.detectTitle'), { type: 'warning', confirmButtonText: t('warningsPage.detectStart') }) detecting.value = true const res = await http.post('/warnings/detect', null, { params: { academicTermId: termId.value } }) - ElMessage.success(`检测完成,生成 ${res.data.generated} 条预警`) + ElMessage.success(t('warningsPage.detected', { count: res.data.generated })) await load() } catch (e: any) { if (e !== 'cancel' && e !== 'close') ElMessage.error(apiErrorMessage(e)) } finally { detecting.value = false } } async function acknowledge(w: any) { try { - const { value } = await ElMessageBox.prompt('确认已知晓此预警?(可选填备注)', '确认预警', { confirmButtonText: '确认', inputType: 'textarea' }) - await http.post(`/warnings/${w.id}/acknowledge`, { comment: value || null }); ElMessage.success('已确认'); await load() + const { value } = await ElMessageBox.prompt(t('warningsPage.acknowledgePrompt'), t('warningsPage.acknowledgeTitle'), { confirmButtonText: t('warningsPage.confirm'), inputType: 'textarea' }) + await http.post(`/warnings/${w.id}/acknowledge`, { comment: value || null }); ElMessage.success(t('warningsPage.acknowledged')); await load() } catch (e: any) { if (e !== 'cancel' && e !== 'close') ElMessage.error(apiErrorMessage(e)) } } @@ -194,14 +194,14 @@ async function saveRiskCase() { try { const c = selectedRiskCase.value await http.put(`/warnings/risk-cases/${c.id}`, { status: c.status, followUpDueDate: c.followUpDueDate, reviewDate: c.reviewDate || null }) - ElMessage.success('跟进任务已更新'); await load() + ElMessage.success(t('warningsPage.taskUpdated')); await load() } catch (e) { ElMessage.error(apiErrorMessage(e)) } } async function addRiskEntry() { - if (!riskEntry.content.trim()) { ElMessage.warning('请填写记录内容'); return } + if (!riskEntry.content.trim()) { ElMessage.warning(t('warningsPage.contentRequired')); return } try { await http.post(`/warnings/risk-cases/${selectedRiskCase.value.id}/entries`, { type: riskEntry.type, content: riskEntry.content, occurredAt: riskEntry.occurredAt || null }) - await openRiskCase(selectedRiskCase.value); await load(); ElMessage.success('处置记录已保存') + await openRiskCase(selectedRiskCase.value); await load(); ElMessage.success(t('warningsPage.entrySaved')) } catch (e) { ElMessage.error(apiErrorMessage(e)) } } @@ -214,7 +214,7 @@ onMounted(async () => {