feat: localize role dashboards

This commit is contained in:
biss committed 2026-10-31 10:19:33 +08:00
1 parent ea51c16d29
commit bc8757c098
5 files changed
+287 -210

No files matched your search

+39
View File
@@ -37,6 +37,45 @@ export default {
common: { reload: 'Reload', refresh: 'Refresh', listSeparator: ', ' },
dashboard: {
calendar: { label: 'Schedule reminder', title: 'Upcoming key dates', today: 'Today', inDays: 'In {days} days', viewAll: 'View calendar' },
student: {
myPlan: 'My study plan', classmate: 'Student', todayCourses: "Today's classes", teachingWeek: 'Teaching week {week}', outsideTerm: 'Outside the teaching term', viewAll: 'View all',
greeting: { morning: 'Good morning', noon: 'Good afternoon', afternoon: 'Good afternoon', evening: 'Good evening', title: '{greeting}, {name}' },
category: { General: 'General notice', Approval: 'Review task', Schedule: 'Schedule change', Grade: 'Grade notice', Attendance: 'Attendance message', CourseSelection: 'Course-selection message', Warning: 'Academic warning', Unknown: 'System message' },
examStatus: { Normal: 'Normal', Absent: 'Absent', Deferred: 'Deferred', Exempt: 'Exempt' },
risk: { label: 'Academic reminders', title: 'Academic risk radar', summary: '{count} academic risks need your attention. Review the alerts below first.', clear: 'No academic risks currently need your attention. Keep up your current study pace.', handle: 'Review' },
graduation: { label: 'Graduation progress', title: 'Graduation navigator', progress: '{completed} credits completed; {gap} more are required by your curriculum.', view: 'View graduation route' },
sections: { timetable: "Today's timetable", notifications: 'Message center', exams: 'Exam schedule', grades: 'Exam results', warnings: 'Academic risk radar' },
partialFailure: '{sections} could not load. Other content is unaffected.', fullTimetable: 'Full timetable', period: 'Period {period}', periodRange: 'Periods {start}–{end}',
locationPending: 'Location pending', datePending: 'Date pending', timePending: 'Time pending', unscheduled: 'Not scheduled', today: 'Today', tomorrow: 'Tomorrow', inDays: 'In {days} days', yesterday: 'Yesterday',
noCourses: 'No classes today', noCoursesHint: 'Use the time for self-study or pending work.', unread: '{count} unread', allMessages: 'All messages', noMessages: 'No messages', noMessagesHint: 'New academic notices will appear here.',
allExams: 'All exams', examRoomPending: 'Exam room pending', noExams: 'No upcoming exams', noExamsHint: 'Published exam arrangements will appear here.', allGrades: 'All grades', gradePoint: 'Grade point {value}', noGrades: 'No published grades', noGradesHint: 'Recently published exam results will appear here.',
},
admin: {
datePending: 'Not set', loadFailed: 'Academic overview could not load', loadFailedHint: 'The academic overview is temporarily unavailable. Check the service connection and try again.', scope: 'Data scope', overview: 'Academic operations overview', view: 'View', viewDetails: 'View details', updatedAt: 'Updated at {time}',
term: { calendarMissing: 'Term calendar not set', startsIn: 'Term starts in {days} days', ended: 'This term has ended', weekProgress: 'Teaching week {current} of {total}', current: 'Current term', starts: 'Starts {date}', progress: 'Term progress {percent}%', ends: 'Ends {date}', notSet: 'Not set', maintain: 'Manage term', contactAdmin: 'Ask a school academic administrator to configure the current term.' },
pending: { current: 'Pending now', followUp: 'items need follow-up', clear: 'No outstanding items', handle: 'Handle now', enter: 'Enter workspace', items: '{count} items' },
todo: {
label: 'Pending work', title: 'Needs action', hint: 'Only actionable items within your role and data scope are shown.', empty: 'No items need action', emptyHint: 'New review tasks will be collected here.',
qualifications: { label: 'Teaching qualification review', description: 'Teacher course declarations awaiting confirmation' }, gradeSheets: { label: 'Grade sheet review', description: 'Submitted by teachers and awaiting review or publication' }, adjustments: { label: 'Schedule-change review', description: 'Reschedule, cancellation, make-up, or substitute requests' },
statusChanges: { label: 'Student status review', college: 'Reviewed by a counselor and awaiting college action', school: 'Reviewed by the college and awaiting school action' }, gradeChanges: { label: 'Grade change review', college: 'Teacher grade-change requests awaiting college review', school: 'Reviewed by the college and awaiting final school review' },
rooms: { label: 'Classroom-use review', description: 'Classroom-use requests submitted by this college' }, other: { label: 'Other academic reviews', description: 'Exemptions, deferred exams, substitutions, or attendance appeals' },
},
metrics: { aria: 'Key teaching data', students: 'Active students', studentsHint: 'Current active records in {scope}', classes: 'Classes this term', published: '{count} published', scheduled: 'On the timetable', coverage: '{percent}% of published classes covered', enrollments: 'Active enrollments', roundsOpen: '{count} course-selection rounds open', noRounds: 'No course-selection rounds are open' },
actions: {
organization: { label: 'Organization and terms', description: 'Maintain reference data' }, personnel: { label: 'Personnel records', description: 'Teachers and students', collegeLabel: 'College personnel', college: 'Teacher and student records' },
tasks: { label: 'Teaching tasks', system: 'Create and publish classes', school: 'Coordinate school-wide offerings', college: 'Deliver college offerings' }, schedules: { label: 'Scheduling and timetables', description: 'Schedule, validate, and publish' },
approvals: { label: 'Review workspace', system: 'Handle business requests centrally', school: 'Handle school-level reviews', college: 'Handle college-level reviews', counselor: 'Handle student requests', teacher: 'Start and track teaching requests' },
statistics: { label: 'Reports', system: 'Monitor teaching quality', school: 'Analyze teaching across colleges', leader: 'View teaching operations data' }, operations: { label: 'Operations and audit', description: 'Jobs, logs, and system status' },
terms: { label: 'Academic years and terms', description: 'Maintain the teaching calendar' }, selections: { label: 'Course selection', school: 'Rounds and enrollment lists', college: 'View selections and rosters' }, grades: { label: 'Grade management', school: 'Review and publish grades', college: 'Review course grades', entryLabel: 'Grade entry', teacher: 'Maintain course grades' },
exams: { label: 'Exam management', description: 'Exams and room arrangements' }, qualifications: { label: 'Teaching qualifications', description: 'Review teacher declarations' }, curriculum: { label: 'Curriculum', description: 'Maintain program course structures' }, rooms: { label: 'Classroom use', description: 'Review college requests' },
timetable: { queryLabel: 'Timetable search', school: 'View school-wide timetables', myLabel: 'My timetable', teacher: 'View upcoming teaching' }, evaluations: { label: 'Teaching evaluation', description: 'View evaluation results' }, students: { label: 'Student records', description: 'View assigned students' }, attendance: { label: 'Class attendance', description: 'View class attendance' }, warnings: { label: 'Academic warnings', description: 'Follow up with at-risk students' }, roster: { label: 'Course roster', description: 'View students in each course' },
},
readiness: { label: 'Term progress', title: 'Teaching operations this term', hint: 'Track completion across teaching tasks, timetables, and grades.', tasks: 'Teaching task publication', noTasks: 'No teaching tasks have been created this term', unpublishedTasks: '{count} tasks are not published', schedules: 'Timetable coverage', scheduleAfterPublish: 'Publish teaching tasks before scheduling', unscheduledClasses: '{count} published classes are not on the timetable', grades: 'Grade publication', sheetsWaiting: '{count} grade sheets are waiting for review', noSheets: 'No grade sheets have been created this term', noGradeReviews: 'No grades are waiting for review' },
alerts: { label: 'Operational alerts', title: 'Items needing attention', count: '{count} items need attention', stable: 'Operations are stable', normal: 'Teaching tasks, timetables, and grade workflows are currently aligned.', tasksTitle: 'Teaching tasks are not published', tasksDetail: '{count} classes remain unpublished, blocking scheduling and course selection.', scheduleTitle: 'Timetable coverage gap', scheduleDetail: '{count} published classes are not on the timetable.', gradesTitle: 'Grade review is waiting', gradesDetail: '{count} grade sheets were submitted and await review or publication.', selectionTitle: 'Open selection has no active records', selectionDetail: '{count} course-selection rounds are open, but no active enrollments were found.' },
counselor: { label: 'Academic warnings', title: 'Students needing attention', count: '{count} active warnings are shown in newest-first order.', clear: 'No academic warnings are currently active.', all: 'All warnings', empty: 'No students currently need special attention', emptyHint: 'New academic warnings will appear here automatically.' },
quick: { label: 'Quick access', title: 'Common work', hint: 'Frequently used workflows for your current role.' },
summary: { teachers: 'active teachers', courses: 'enabled courses', enrollments: 'active enrollments', rounds: 'course-selection rounds open' },
},
teacher: {
loadFailed: 'Teaching dashboard could not load', loadFailedHint: 'Check the service connection and reload.', workspace: 'Teaching workspace',
gradeProgress: 'Grade entry progress', gradeManagement: 'Grade management', noPendingGrades: 'No grades are waiting for submission', noPendingGradesHint: 'Grade sheets will appear here in priority order.',
+39
View File
@@ -37,6 +37,45 @@ export default {
common: { reload: '重新加载', refresh: '刷新', listSeparator: '、' },
dashboard: {
calendar: { label: '日程提醒', title: '近期关键日程', today: '今天', inDays: '{days} 天后', viewAll: '查看校历' },
student: {
myPlan: '我的学习安排', classmate: '同学', todayCourses: '今日课程', teachingWeek: '第 {week} 教学周', outsideTerm: '当前不在教学周内', viewAll: '查看全部',
greeting: { morning: '早上好', noon: '中午好', afternoon: '下午好', evening: '晚上好', title: '{greeting},{name}' },
category: { General: '一般通知', Approval: '审核待办', Schedule: '课程变动', Grade: '成绩通知', Attendance: '考勤消息', CourseSelection: '选课消息', Warning: '学业预警', Unknown: '系统消息' },
examStatus: { Normal: '正常', Absent: '缺考', Deferred: '缓考', Exempt: '免修' },
risk: { label: '学业提醒', title: '学业风险雷达', summary: '发现 {count} 项需要你关注的学习风险,建议优先处理下方提示。', clear: '系统暂未发现需要你处理的学业风险,继续保持当前学习节奏。', handle: '去处理' },
graduation: { label: '毕业进度', title: '毕业导航', progress: '已完成 {completed} 学分,距离培养方案要求还差 {gap} 学分。', view: '查看毕业航线' },
sections: { timetable: '当日课表', notifications: '消息中心', exams: '考试安排', grades: '考试成绩', warnings: '学业风险雷达' },
partialFailure: '{sections}暂时无法加载,其余内容不受影响。', fullTimetable: '完整课表', period: '第 {period} 节', periodRange: '第 {start}—{end} 节',
locationPending: '地点待定', datePending: '日期待定', timePending: '时间待定', unscheduled: '待安排', today: '今天', tomorrow: '明天', inDays: '{days} 天后', yesterday: '昨天',
noCourses: '今天没有课程', noCoursesHint: '可以安排自习或处理待办。', unread: '{count} 未读', allMessages: '全部消息', noMessages: '暂无消息', noMessagesHint: '新的教务通知会显示在这里。',
allExams: '全部考试', examRoomPending: '考场待定', noExams: '近期没有考试', noExamsHint: '已发布的考试安排会显示在这里。', allGrades: '全部成绩', gradePoint: '绩点 {value}', noGrades: '暂无已发布成绩', noGradesHint: '最新发布的考试成绩会显示在这里。',
},
admin: {
datePending: '待设置', loadFailed: '教务总览加载失败', loadFailedHint: '教务总览暂时无法加载,请检查服务连接后重试。', scope: '数据范围', overview: '教务工作概览', view: '查看', viewDetails: '查看详情', updatedAt: '数据更新于 {time}',
term: { calendarMissing: '尚未设置学期日历', startsIn: '距离开学 {days} 天', ended: '本学期已结束', weekProgress: '第 {current} 教学周 / 共 {total} 周', current: '当前学期', starts: '{date} 开学', progress: '学期进度 {percent}%', ends: '{date} 结束', notSet: '尚未设置', maintain: '去维护学期', contactAdmin: '请联系校级教务管理员维护当前学期。' },
pending: { current: '当前待处理', followUp: '项工作需要跟进', clear: '暂无积压事项', handle: '立即处理', enter: '进入工作区', items: '{count} 项' },
todo: {
label: '待办事项', title: '需要处理', hint: '只显示当前角色和数据范围内可处理的事项。', empty: '当前没有待处理事项', emptyHint: '新的审核任务到达后会在这里集中显示。',
qualifications: { label: '授课资格审核', description: '教师申报的授课科目等待确认' }, gradeSheets: { label: '成绩登记审核', description: '教师已提交,等待审核或发布' }, adjustments: { label: '调停课审批', description: '调课、停课、补课或代课申请' },
statusChanges: { label: '学籍异动审核', college: '辅导员已审核,等待学院处理', school: '学院已审核,等待校级处理' }, gradeChanges: { label: '成绩修改审核', college: '教师申请的成绩修改等待学院审核', school: '学院已审核,等待校级终审' },
rooms: { label: '教室借用审核', description: '本学院提交的教室借用申请' }, other: { label: '其他教学审批', description: '免修、缓考、课程替代或考勤申诉' },
},
metrics: { aria: '关键教学数据', students: '在籍学生', studentsHint: '{scope}当前有效学籍', classes: '本学期教学班', published: '{count} 个已发布', scheduled: '已进入课表', coverage: '覆盖 {percent}% 已发布教学班', enrollments: '有效选课', roundsOpen: '{count} 个选课批次开放中', noRounds: '当前无开放选课批次' },
actions: {
organization: { label: '组织与学期', description: '维护基础数据' }, personnel: { label: '人员档案', description: '教师与学生', collegeLabel: '学院人员', college: '教师与学生档案' },
tasks: { label: '教学任务', system: '生成并发布教学班', school: '统筹全校开课', college: '落实本学院开课' }, schedules: { label: '排课与课表', description: '排课、校验与发布' },
approvals: { label: '审批工作台', system: '集中处理业务申请', school: '处理校级审核', college: '处理学院级审核', counselor: '处理学生申请', teacher: '发起与跟踪教学申请' },
statistics: { label: '统计报表', system: '观察教学质量', school: '跨学院教学分析', leader: '查看教学运行数据' }, operations: { label: '运维与审计', description: '任务、日志与系统状态' },
terms: { label: '学年学期', description: '维护教学日历' }, selections: { label: '选课管理', school: '批次与选课名单', college: '查看选课与名单' }, grades: { label: '成绩管理', school: '审核并发布成绩', college: '审核课程成绩', entryLabel: '成绩录入', teacher: '维护课程成绩' },
exams: { label: '考试管理', description: '考试与考场安排' }, qualifications: { label: '授课资格', description: '审核教师申报' }, curriculum: { label: '培养方案', description: '维护专业课程结构' }, rooms: { label: '教室借用', description: '审核学院申请' },
timetable: { queryLabel: '课表查询', school: '查看全校课表', myLabel: '我的课表', teacher: '查看近期授课' }, evaluations: { label: '教学评价', description: '查看评价结果' }, students: { label: '学生档案', description: '查看所带学生' }, attendance: { label: '教学点名', description: '查看班级考勤' }, warnings: { label: '学业预警', description: '跟进风险学生' }, roster: { label: '选课名单', description: '查看课程学生' },
},
readiness: { label: '学期进度', title: '本学期教学运行', hint: '关注教学任务、课表与成绩流程的完成情况。', tasks: '教学任务发布', noTasks: '本学期尚未建立教学任务', unpublishedTasks: '{count} 个任务尚未发布', schedules: '课表覆盖', scheduleAfterPublish: '发布教学任务后可安排课表', unscheduledClasses: '{count} 个已发布教学班尚未进入课表', grades: '成绩发布', sheetsWaiting: '{count} 张成绩登记册等待审核', noSheets: '本学期尚未生成成绩登记册', noGradeReviews: '当前没有待审核成绩' },
alerts: { label: '运行提醒', title: '需要关注的事项', count: '{count} 个事项需要关注', stable: '当前运行平稳', normal: '教学任务、课表与成绩流程当前衔接正常。', tasksTitle: '教学任务尚未发布', tasksDetail: '{count} 个教学班尚未发布,后续排课与选课无法推进。', scheduleTitle: '课表覆盖存在缺口', scheduleDetail: '{count} 个已发布教学班尚未进入课表。', gradesTitle: '成绩审核等待处理', gradesDetail: '{count} 张成绩登记册已提交,等待审核或发布。', selectionTitle: '开放选课尚无有效记录', selectionDetail: '{count} 个选课批次开放中,但当前未发现有效选课。' },
counselor: { label: '学业预警', title: '需重点关注的学生', count: '当前有 {count} 条生效预警,按最新记录展示。', clear: '当前没有生效中的学业预警。', all: '完整预警', empty: '当前没有重点关注学生', emptyHint: '新的学业预警会自动出现在这里。' },
quick: { label: '常用入口', title: '常用工作', hint: '按当前角色整理的高频业务入口。' },
summary: { teachers: '名在岗教师', courses: '门启用课程', enrollments: '条有效选课', rounds: '个选课批次开放中' },
},
teacher: {
loadFailed: '教学驾驶舱加载失败', loadFailedHint: '请检查服务连接后重新加载。', workspace: '教学工作台',
gradeProgress: '成绩登记进度', gradeManagement: '成绩管理', noPendingGrades: '当前没有待提交成绩', noPendingGradesHint: '成绩登记册会在这里按优先级显示。',
+132 -129
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
import type { Component } from 'vue'
import { computed, onMounted, ref } from 'vue'
import { computed, onMounted, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import {
Calendar,
@@ -95,6 +96,7 @@ interface WarningRecord {
}
const router = useRouter()
const { locale, t } = useI18n()
const auth = useAuthStore()
const roles = computed(() => auth.user?.roles ?? [])
const isStudentOverview = computed(() =>
@@ -138,15 +140,15 @@ function startOfDay(value: Date) {
function formatDate(value?: string) {
const date = parseDateOnly(value)
if (!date) return '待设置'
return new Intl.DateTimeFormat('zh-CN', {
if (!date) return t('dashboard.admin.datePending')
return new Intl.DateTimeFormat(locale.value, {
month: 'long',
day: 'numeric',
}).format(date)
}
function formatNumber(value: number) {
return new Intl.NumberFormat('zh-CN').format(value)
return new Intl.NumberFormat(locale.value).format(value)
}
function ratio(value: number, total: number) {
@@ -166,16 +168,16 @@ const termProgress = computed(() => {
const termContext = computed(() => {
const start = parseDateOnly(data.value?.currentTerm?.startDate)
const end = parseDateOnly(data.value?.currentTerm?.endDate)
if (!start || !end) return '尚未设置学期日历'
if (!start || !end) return t('dashboard.admin.term.calendarMissing')
const today = startOfDay(now.value)
const day = 86400000
if (today < start) {
return `距离开学 ${Math.ceil((start.getTime() - today.getTime()) / day)} 天`
return t('dashboard.admin.term.startsIn', { days: Math.ceil((start.getTime() - today.getTime()) / day) })
}
if (today > end) return '本学期已结束'
if (today > end) return t('dashboard.admin.term.ended')
const currentWeek = Math.floor((today.getTime() - start.getTime()) / day / 7) + 1
const totalWeeks = Math.ceil((end.getTime() - start.getTime() + day) / day / 7)
return `第 ${currentWeek} 教学周 / 共 ${totalWeeks} 周`
return t('dashboard.admin.term.weekProgress', { current: currentWeek, total: totalWeeks })
})
const pendingTotal = computed(() =>
@@ -188,54 +190,54 @@ const todoItems = computed(() => {
const items = [
{
key: 'teacher-applications',
label: '授课资格审核',
description: '教师申报的授课科目等待确认',
label: t('dashboard.admin.todo.qualifications.label'),
description: t('dashboard.admin.todo.qualifications.description'),
route: '/teaching-preferences',
count: pending.teacherApplications,
},
{
key: 'grade-sheets',
label: '成绩登记审核',
description: '教师已提交,等待审核或发布',
label: t('dashboard.admin.todo.gradeSheets.label'),
description: t('dashboard.admin.todo.gradeSheets.description'),
route: '/grades',
count: pending.gradeSheets,
},
{
key: 'course-adjustments',
label: '调停课审批',
description: '调课、停课、补课或代课申请',
label: t('dashboard.admin.todo.adjustments.label'),
description: t('dashboard.admin.todo.adjustments.description'),
route: '/approvals?tab=pending',
count: pending.courseAdjustments,
},
{
key: 'student-status',
label: '学籍异动审核',
label: t('dashboard.admin.todo.statusChanges.label'),
description: data.value?.audience.level === 'College'
? '辅导员已审核,等待学院处理'
: '学院已审核,等待校级处理',
? t('dashboard.admin.todo.statusChanges.college')
: t('dashboard.admin.todo.statusChanges.school'),
route: '/student-status-changes',
count: pending.studentStatusChanges,
},
{
key: 'grade-modifications',
label: '成绩修改审核',
label: t('dashboard.admin.todo.gradeChanges.label'),
description: data.value?.audience.level === 'College'
? '教师申请的成绩修改等待学院审核'
: '学院已审核,等待校级终审',
? t('dashboard.admin.todo.gradeChanges.college')
: t('dashboard.admin.todo.gradeChanges.school'),
route: '/approvals',
count: pending.gradeModifications,
},
{
key: 'classroom-reservations',
label: '教室借用审核',
description: '本学院提交的教室借用申请',
label: t('dashboard.admin.todo.rooms.label'),
description: t('dashboard.admin.todo.rooms.description'),
route: '/classroom-reservations',
count: pending.classroomReservations,
},
{
key: 'general-approvals',
label: '其他教学审批',
description: '免修、缓考、课程替代或考勤申诉',
label: t('dashboard.admin.todo.other.label'),
description: t('dashboard.admin.todo.other.description'),
route: '/approvals',
count: pending.generalApprovals,
},
@@ -249,32 +251,32 @@ const adminMetrics = computed(() => {
return [
{
key: 'students',
label: '在籍学生',
label: t('dashboard.admin.metrics.students'),
value: formatNumber(counts.students),
hint: `${data.value?.audience.scopeName}当前有效学籍`,
hint: t('dashboard.admin.metrics.studentsHint', { scope: data.value?.audience.scopeName }),
route: '/students',
},
{
key: 'tasks',
label: '本学期教学班',
label: t('dashboard.admin.metrics.classes'),
value: formatNumber(counts.teachingTasks),
hint: `${counts.publishedTeachingTasks} 个已发布`,
hint: t('dashboard.admin.metrics.published', { count: counts.publishedTeachingTasks }),
route: '/teaching-tasks',
},
{
key: 'schedules',
label: '已进入课表',
label: t('dashboard.admin.metrics.scheduled'),
value: formatNumber(counts.scheduledTeachingTasks),
hint: `覆盖 ${ratio(counts.scheduledTeachingTasks, counts.publishedTeachingTasks)}% 已发布教学班`,
hint: t('dashboard.admin.metrics.coverage', { percent: ratio(counts.scheduledTeachingTasks, counts.publishedTeachingTasks) }),
route: hasRole('SuperAdmin', 'AcademicAdmin') ? '/schedules' : '/class-timetable',
},
{
key: 'enrollments',
label: '有效选课',
label: t('dashboard.admin.metrics.enrollments'),
value: formatNumber(counts.courseEnrollments),
hint: counts.openCourseSelectionRounds > 0
? `${counts.openCourseSelectionRounds} 个选课批次开放中`
: '当前无开放选课批次',
? t('dashboard.admin.metrics.roundsOpen', { count: counts.openCourseSelectionRounds })
: t('dashboard.admin.metrics.noRounds'),
route: '/course-selections',
},
]
@@ -283,59 +285,59 @@ const adminMetrics = computed(() => {
const quickActions = computed<DashboardLink[]>(() => {
if (hasRole('SuperAdmin')) {
return [
{ key: 'organization', label: '组织与学期', description: '维护基础数据', route: '/base-data/organization', icon: School },
{ key: 'personnel', label: '人员档案', description: '教师与学生', route: '/teachers', icon: UserFilled },
{ key: 'tasks', label: '教学任务', description: '生成并发布教学班', route: '/teaching-tasks', icon: List },
{ key: 'schedules', label: '排课与课表', description: '排课、校验与发布', route: '/schedules', icon: Calendar },
{ key: 'approvals', label: '审批工作台', description: '集中处理业务申请', route: '/approvals', icon: DocumentChecked },
{ key: 'statistics', label: '统计报表', description: '观察教学质量', route: '/statistics', icon: DataAnalysis },
{ key: 'operations', label: '运维与审计', description: '任务、日志与系统状态', route: '/operations', icon: Operation },
{ key: 'organization', label: t('dashboard.admin.actions.organization.label'), description: t('dashboard.admin.actions.organization.description'), route: '/base-data/organization', icon: School },
{ key: 'personnel', label: t('dashboard.admin.actions.personnel.label'), description: t('dashboard.admin.actions.personnel.description'), route: '/teachers', icon: UserFilled },
{ key: 'tasks', label: t('dashboard.admin.actions.tasks.label'), description: t('dashboard.admin.actions.tasks.system'), route: '/teaching-tasks', icon: List },
{ key: 'schedules', label: t('dashboard.admin.actions.schedules.label'), description: t('dashboard.admin.actions.schedules.description'), route: '/schedules', icon: Calendar },
{ key: 'approvals', label: t('dashboard.admin.actions.approvals.label'), description: t('dashboard.admin.actions.approvals.system'), route: '/approvals', icon: DocumentChecked },
{ key: 'statistics', label: t('dashboard.admin.actions.statistics.label'), description: t('dashboard.admin.actions.statistics.system'), route: '/statistics', icon: DataAnalysis },
{ key: 'operations', label: t('dashboard.admin.actions.operations.label'), description: t('dashboard.admin.actions.operations.description'), route: '/operations', icon: Operation },
]
}
if (hasRole('AcademicAdmin')) {
return [
{ key: 'terms', label: '学年学期', description: '维护教学日历', route: '/base-data/terms', icon: Calendar },
{ key: 'tasks', label: '教学任务', description: '统筹全校开课', route: '/teaching-tasks', icon: List },
{ key: 'schedules', label: '排课与课表', description: '排课、校验与发布', route: '/schedules', icon: Management },
{ key: 'selections', label: '选课管理', description: '批次与选课名单', route: '/course-selections', icon: Tickets },
{ key: 'grades', label: '成绩管理', description: '审核并发布成绩', route: '/grades', icon: Checked },
{ key: 'exams', label: '考试管理', description: '考试与考场安排', route: '/exams', icon: EditPen },
{ key: 'approvals', label: '审批工作台', description: '处理校级审核', route: '/approvals', icon: DocumentChecked },
{ key: 'statistics', label: '统计报表', description: '跨学院教学分析', route: '/statistics', icon: DataAnalysis },
{ key: 'terms', label: t('dashboard.admin.actions.terms.label'), description: t('dashboard.admin.actions.terms.description'), route: '/base-data/terms', icon: Calendar },
{ key: 'tasks', label: t('dashboard.admin.actions.tasks.label'), description: t('dashboard.admin.actions.tasks.school'), route: '/teaching-tasks', icon: List },
{ key: 'schedules', label: t('dashboard.admin.actions.schedules.label'), description: t('dashboard.admin.actions.schedules.description'), route: '/schedules', icon: Management },
{ key: 'selections', label: t('dashboard.admin.actions.selections.label'), description: t('dashboard.admin.actions.selections.school'), route: '/course-selections', icon: Tickets },
{ key: 'grades', label: t('dashboard.admin.actions.grades.label'), description: t('dashboard.admin.actions.grades.school'), route: '/grades', icon: Checked },
{ key: 'exams', label: t('dashboard.admin.actions.exams.label'), description: t('dashboard.admin.actions.exams.description'), route: '/exams', icon: EditPen },
{ key: 'approvals', label: t('dashboard.admin.actions.approvals.label'), description: t('dashboard.admin.actions.approvals.school'), route: '/approvals', icon: DocumentChecked },
{ key: 'statistics', label: t('dashboard.admin.actions.statistics.label'), description: t('dashboard.admin.actions.statistics.school'), route: '/statistics', icon: DataAnalysis },
]
}
if (hasRole('CollegeAdmin')) {
return [
{ key: 'personnel', label: '学院人员', description: '教师与学生档案', route: '/teachers', icon: UserFilled },
{ key: 'qualifications', label: '授课资格', description: '审核教师申报', route: '/teaching-preferences', icon: Checked },
{ key: 'curriculum', label: '培养方案', description: '维护专业课程结构', route: '/curriculum', icon: Reading },
{ key: 'tasks', label: '教学任务', description: '落实本学院开课', route: '/teaching-tasks', icon: List },
{ key: 'selections', label: '选课管理', description: '查看选课与名单', route: '/course-selections', icon: Tickets },
{ key: 'grades', label: '成绩管理', description: '审核课程成绩', route: '/grades', icon: EditPen },
{ key: 'rooms', label: '教室借用', description: '审核学院申请', route: '/classroom-reservations', icon: OfficeBuilding },
{ key: 'approvals', label: '审批工作台', description: '处理学院级审核', route: '/approvals', icon: DocumentChecked },
{ key: 'personnel', label: t('dashboard.admin.actions.personnel.collegeLabel'), description: t('dashboard.admin.actions.personnel.college'), route: '/teachers', icon: UserFilled },
{ key: 'qualifications', label: t('dashboard.admin.actions.qualifications.label'), description: t('dashboard.admin.actions.qualifications.description'), route: '/teaching-preferences', icon: Checked },
{ key: 'curriculum', label: t('dashboard.admin.actions.curriculum.label'), description: t('dashboard.admin.actions.curriculum.description'), route: '/curriculum', icon: Reading },
{ key: 'tasks', label: t('dashboard.admin.actions.tasks.label'), description: t('dashboard.admin.actions.tasks.college'), route: '/teaching-tasks', icon: List },
{ key: 'selections', label: t('dashboard.admin.actions.selections.label'), description: t('dashboard.admin.actions.selections.college'), route: '/course-selections', icon: Tickets },
{ key: 'grades', label: t('dashboard.admin.actions.grades.label'), description: t('dashboard.admin.actions.grades.college'), route: '/grades', icon: EditPen },
{ key: 'rooms', label: t('dashboard.admin.actions.rooms.label'), description: t('dashboard.admin.actions.rooms.description'), route: '/classroom-reservations', icon: OfficeBuilding },
{ key: 'approvals', label: t('dashboard.admin.actions.approvals.label'), description: t('dashboard.admin.actions.approvals.college'), route: '/approvals', icon: DocumentChecked },
]
}
if (hasRole('Leader')) {
return [
{ key: 'statistics', label: '统计报表', description: '查看教学运行数据', route: '/statistics', icon: DataAnalysis },
{ key: 'timetable', label: '课表查询', description: '查看全校课表', route: '/class-timetable', icon: Calendar },
{ key: 'evaluations', label: '教学评价', description: '查看评价结果', route: '/evaluations', icon: Checked },
{ key: 'statistics', label: t('dashboard.admin.actions.statistics.label'), description: t('dashboard.admin.actions.statistics.leader'), route: '/statistics', icon: DataAnalysis },
{ key: 'timetable', label: t('dashboard.admin.actions.timetable.queryLabel'), description: t('dashboard.admin.actions.timetable.school'), route: '/class-timetable', icon: Calendar },
{ key: 'evaluations', label: t('dashboard.admin.actions.evaluations.label'), description: t('dashboard.admin.actions.evaluations.description'), route: '/evaluations', icon: Checked },
]
}
if (hasRole('Counselor')) {
return [
{ key: 'students', label: '学生档案', description: '查看所带学生', route: '/students', icon: UserFilled },
{ key: 'attendance', label: '教学点名', description: '查看班级考勤', route: '/teacher-attendance', icon: Checked },
{ key: 'approvals', label: '审批工作台', description: '处理学生申请', route: '/approvals', icon: DocumentChecked },
{ key: 'warnings', label: '学业预警', description: '跟进风险学生', route: '/warnings', icon: Warning },
{ key: 'students', label: t('dashboard.admin.actions.students.label'), description: t('dashboard.admin.actions.students.description'), route: '/students', icon: UserFilled },
{ key: 'attendance', label: t('dashboard.admin.actions.attendance.label'), description: t('dashboard.admin.actions.attendance.description'), route: '/teacher-attendance', icon: Checked },
{ key: 'approvals', label: t('dashboard.admin.actions.approvals.label'), description: t('dashboard.admin.actions.approvals.counselor'), route: '/approvals', icon: DocumentChecked },
{ key: 'warnings', label: t('dashboard.admin.actions.warnings.label'), description: t('dashboard.admin.actions.warnings.description'), route: '/warnings', icon: Warning },
]
}
return [
{ key: 'timetable', label: '我的课表', description: '查看近期授课', route: '/my-timetable', icon: Calendar },
{ key: 'roster', label: '选课名单', description: '查看课程学生', route: '/teacher-roster', icon: UserFilled },
{ key: 'grades', label: '成绩录入', description: '维护课程成绩', route: '/grades', icon: EditPen },
{ key: 'approvals', label: '审批工作台', description: '发起与跟踪教学申请', route: '/approvals', icon: DocumentChecked },
{ key: 'timetable', label: t('dashboard.admin.actions.timetable.myLabel'), description: t('dashboard.admin.actions.timetable.teacher'), route: '/my-timetable', icon: Calendar },
{ key: 'roster', label: t('dashboard.admin.actions.roster.label'), description: t('dashboard.admin.actions.roster.description'), route: '/teacher-roster', icon: UserFilled },
{ key: 'grades', label: t('dashboard.admin.actions.grades.entryLabel'), description: t('dashboard.admin.actions.grades.teacher'), route: '/grades', icon: EditPen },
{ key: 'approvals', label: t('dashboard.admin.actions.approvals.label'), description: t('dashboard.admin.actions.approvals.teacher'), route: '/approvals', icon: DocumentChecked },
]
})
@@ -345,38 +347,38 @@ const readiness = computed(() => {
return [
{
key: 'tasks',
label: '教学任务发布',
label: t('dashboard.admin.readiness.tasks'),
value: counts.publishedTeachingTasks,
total: counts.teachingTasks,
percent: ratio(counts.publishedTeachingTasks, counts.teachingTasks),
route: '/teaching-tasks',
note: counts.teachingTasks === 0
? '本学期尚未建立教学任务'
: `${counts.teachingTasks - counts.publishedTeachingTasks} 个任务尚未发布`,
? t('dashboard.admin.readiness.noTasks')
: t('dashboard.admin.readiness.unpublishedTasks', { count: counts.teachingTasks - counts.publishedTeachingTasks }),
},
{
key: 'schedules',
label: '课表覆盖',
label: t('dashboard.admin.readiness.schedules'),
value: counts.scheduledTeachingTasks,
total: counts.publishedTeachingTasks,
percent: ratio(counts.scheduledTeachingTasks, counts.publishedTeachingTasks),
route: hasRole('SuperAdmin', 'AcademicAdmin') ? '/schedules' : '/class-timetable',
note: counts.publishedTeachingTasks === 0
? '发布教学任务后可安排课表'
: `${Math.max(0, counts.publishedTeachingTasks - counts.scheduledTeachingTasks)} 个已发布教学班尚未进入课表`,
? t('dashboard.admin.readiness.scheduleAfterPublish')
: t('dashboard.admin.readiness.unscheduledClasses', { count: Math.max(0, counts.publishedTeachingTasks - counts.scheduledTeachingTasks) }),
},
{
key: 'grades',
label: '成绩发布',
label: t('dashboard.admin.readiness.grades'),
value: counts.publishedGradeSheets,
total: counts.gradeSheets,
percent: ratio(counts.publishedGradeSheets, counts.gradeSheets),
route: '/grades',
note: counts.submittedGradeSheets > 0
? `${counts.submittedGradeSheets} 张成绩登记册等待审核`
? t('dashboard.admin.readiness.sheetsWaiting', { count: counts.submittedGradeSheets })
: counts.gradeSheets === 0
? '本学期尚未生成成绩登记册'
: '当前没有待审核成绩',
? t('dashboard.admin.readiness.noSheets')
: t('dashboard.admin.readiness.noGradeReviews'),
},
]
})
@@ -387,10 +389,10 @@ const operationAlerts = computed(() => {
const alerts = [] as Array<{ level: 'critical' | 'warning'; title: string; detail: string; route: string }>
const unpublished = counts.teachingTasks - counts.publishedTeachingTasks
const unscheduled = counts.publishedTeachingTasks - counts.scheduledTeachingTasks
if (unpublished > 0) alerts.push({ level: 'warning', title: '教学任务尚未发布', detail: `${unpublished} 个教学班尚未发布,后续排课与选课无法推进。`, route: '/teaching-tasks' })
if (unscheduled > 0) alerts.push({ level: 'critical', title: '课表覆盖存在缺口', detail: `${unscheduled} 个已发布教学班尚未进入课表。`, route: hasRole('SuperAdmin', 'AcademicAdmin') ? '/schedules' : '/class-timetable' })
if (counts.submittedGradeSheets > 0) alerts.push({ level: 'warning', title: '成绩审核等待处理', detail: `${counts.submittedGradeSheets} 张成绩登记册已提交,等待审核或发布。`, route: '/grades' })
if (counts.openCourseSelectionRounds > 0 && counts.courseEnrollments === 0) alerts.push({ level: 'warning', title: '开放选课尚无有效记录', detail: `${counts.openCourseSelectionRounds} 个选课批次开放中,但当前未发现有效选课。`, route: '/course-selections' })
if (unpublished > 0) alerts.push({ level: 'warning', title: t('dashboard.admin.alerts.tasksTitle'), detail: t('dashboard.admin.alerts.tasksDetail', { count: unpublished }), route: '/teaching-tasks' })
if (unscheduled > 0) alerts.push({ level: 'critical', title: t('dashboard.admin.alerts.scheduleTitle'), detail: t('dashboard.admin.alerts.scheduleDetail', { count: unscheduled }), route: hasRole('SuperAdmin', 'AcademicAdmin') ? '/schedules' : '/class-timetable' })
if (counts.submittedGradeSheets > 0) alerts.push({ level: 'warning', title: t('dashboard.admin.alerts.gradesTitle'), detail: t('dashboard.admin.alerts.gradesDetail', { count: counts.submittedGradeSheets }), route: '/grades' })
if (counts.openCourseSelectionRounds > 0 && counts.courseEnrollments === 0) alerts.push({ level: 'warning', title: t('dashboard.admin.alerts.selectionTitle'), detail: t('dashboard.admin.alerts.selectionDetail', { count: counts.openCourseSelectionRounds }), route: '/course-selections' })
return alerts
})
@@ -409,7 +411,7 @@ async function loadDashboard() {
})).data
}
} catch {
loadError.value = '教务总览暂时无法加载,请检查服务连接后重试。'
loadError.value = t('dashboard.admin.loadFailedHint')
} finally {
loading.value = false
}
@@ -422,6 +424,10 @@ onMounted(async () => {
}
await loadDashboard()
})
watch(locale, async () => {
if (!isStudentOverview.value && !isTeacherOverview.value) await loadDashboard()
})
</script>
<template>
@@ -432,11 +438,11 @@ onMounted(async () => {
<el-result
v-if="loadError"
icon="warning"
title="教务总览加载失败"
:title="t('dashboard.admin.loadFailed')"
:sub-title="loadError"
>
<template #extra>
<el-button type="primary" @click="loadDashboard">重新加载</el-button>
<el-button type="primary" @click="loadDashboard">{{ t('common.reload') }}</el-button>
</template>
</el-result>
@@ -446,24 +452,24 @@ onMounted(async () => {
<div class="overview-heading">
<div class="scope-line">
<span>{{ data.audience.scopeName }}</span>
<i>数据范围</i>
<i>{{ t('dashboard.admin.scope') }}</i>
</div>
<p class="overview-eyebrow">教务工作概览</p>
<p class="overview-eyebrow">{{ t('dashboard.admin.overview') }}</p>
<h1>{{ data.greeting.title }}</h1>
<p class="overview-description">{{ data.greeting.subtitle }}</p>
</div>
<button class="pending-brief" type="button" @click="router.push(primaryActionRoute)">
<span>当前待处理</span>
<span>{{ t('dashboard.admin.pending.current') }}</span>
<strong>{{ pendingTotal }}</strong>
<small>{{ pendingTotal > 0 ? '项工作需要跟进' : '暂无积压事项' }}</small>
<b>{{ pendingTotal > 0 ? '立即处理' : '进入工作区' }} →</b>
<small>{{ pendingTotal > 0 ? t('dashboard.admin.pending.followUp') : t('dashboard.admin.pending.clear') }}</small>
<b>{{ pendingTotal > 0 ? t('dashboard.admin.pending.handle') : t('dashboard.admin.pending.enter') }} →</b>
</button>
<div v-if="data.currentTerm" class="term-ruler">
<div class="term-ruler-head">
<div>
<span>当前学期</span>
<span>{{ t('dashboard.admin.term.current') }}</span>
<strong>{{ data.currentTerm.name }}</strong>
</div>
<b>{{ termContext }}</b>
@@ -473,25 +479,25 @@ onMounted(async () => {
<i class="term-track-marker" />
</div>
<div class="term-dates">
<span>{{ formatDate(data.currentTerm.startDate) }} 开学</span>
<span>学期进度 {{ termProgress }}%</span>
<span>{{ formatDate(data.currentTerm.endDate) }} 结束</span>
<span>{{ t('dashboard.admin.term.starts', { date: formatDate(data.currentTerm.startDate) }) }}</span>
<span>{{ t('dashboard.admin.term.progress', { percent: termProgress }) }}</span>
<span>{{ t('dashboard.admin.term.ends', { date: formatDate(data.currentTerm.endDate) }) }}</span>
</div>
</div>
<div v-else class="term-ruler term-ruler-empty">
<div>
<span>当前学期</span>
<strong>尚未设置</strong>
<span>{{ t('dashboard.admin.term.current') }}</span>
<strong>{{ t('dashboard.admin.term.notSet') }}</strong>
</div>
<button
v-if="hasRole('SuperAdmin', 'AcademicAdmin')"
type="button"
@click="router.push('/base-data/terms')"
>
去维护学期 →
{{ t('dashboard.admin.term.maintain') }} →
</button>
<p v-else>请联系校级教务管理员维护当前学期。</p>
<p v-else>{{ t('dashboard.admin.term.contactAdmin') }}</p>
</div>
</section>
@@ -512,7 +518,7 @@ onMounted(async () => {
<p class="greeting-narrative">{{ data.greeting.narrative }}</p>
<section class="overview-metrics" aria-label="关键教学数据">
<section class="overview-metrics" :aria-label="t('dashboard.admin.metrics.aria')">
<button
v-for="metric in adminMetrics"
:key="metric.key"
@@ -522,50 +528,50 @@ onMounted(async () => {
<span>{{ metric.label }}</span>
<strong>{{ metric.value }}</strong>
<small>{{ metric.hint }}</small>
<i>查看详情 →</i>
<i>{{ t('dashboard.admin.viewDetails') }} →</i>
</button>
</section>
<section class="operation-alerts">
<header><div><span>运行提醒</span><h2>需要关注的事项</h2></div><small>{{ operationAlerts.length ? `${operationAlerts.length} 个事项需要关注` : '当前运行平稳' }}</small></header>
<header><div><span>{{ t('dashboard.admin.alerts.label') }}</span><h2>{{ t('dashboard.admin.alerts.title') }}</h2></div><small>{{ operationAlerts.length ? t('dashboard.admin.alerts.count', { count: operationAlerts.length }) : t('dashboard.admin.alerts.stable') }}</small></header>
<div v-if="operationAlerts.length" class="operation-alert-list">
<button v-for="alert in operationAlerts" :key="alert.title" :class="alert.level" @click="router.push(alert.route)"><b>{{ alert.title }}</b><span>{{ alert.detail }}</span><i>立即处理 →</i></button>
<button v-for="alert in operationAlerts" :key="alert.title" :class="alert.level" @click="router.push(alert.route)"><b>{{ alert.title }}</b><span>{{ alert.detail }}</span><i>{{ t('dashboard.admin.pending.handle') }} →</i></button>
</div>
<p v-else>教学任务、课表与成绩流程当前衔接正常。</p>
<p v-else>{{ t('dashboard.admin.alerts.normal') }}</p>
</section>
<section class="dashboard-work-grid">
<article v-if="isCounselorDashboard" class="dashboard-panel counselor-radar">
<header class="panel-heading">
<div>
<span class="panel-index">学业预警</span>
<h2>需重点关注的学生</h2>
<p>{{ activeCounselorWarnings.length ? `当前有 ${activeCounselorWarnings.length} 条生效预警,按最新记录展示。` : '当前没有生效中的学业预警。' }}</p>
<span class="panel-index">{{ t('dashboard.admin.counselor.label') }}</span>
<h2>{{ t('dashboard.admin.counselor.title') }}</h2>
<p>{{ activeCounselorWarnings.length ? t('dashboard.admin.counselor.count', { count: activeCounselorWarnings.length }) : t('dashboard.admin.counselor.clear') }}</p>
</div>
<button type="button" class="radar-link" @click="router.push('/warnings')">完整预警 →</button>
<button type="button" class="radar-link" @click="router.push('/warnings')">{{ t('dashboard.admin.counselor.all') }} →</button>
</header>
<div v-if="activeCounselorWarnings.length" class="counselor-risk-list">
<button v-for="warning in activeCounselorWarnings.slice(0, 4)" :key="warning.id" type="button" @click="router.push('/warnings')">
<span>{{ warning.className }}</span>
<b>{{ warning.studentName }}</b>
<small>{{ warning.detail }}</small>
<i>查看 →</i>
<i>{{ t('dashboard.admin.view') }} →</i>
</button>
</div>
<div v-else class="todo-empty">
<el-icon><Checked /></el-icon>
<div><b>当前没有重点关注学生</b><span>新的学业预警会自动出现在这里。</span></div>
<div><b>{{ t('dashboard.admin.counselor.empty') }}</b><span>{{ t('dashboard.admin.counselor.emptyHint') }}</span></div>
</div>
</article>
<article class="dashboard-panel todo-panel">
<header class="panel-heading">
<div>
<span class="panel-index">待办事项</span>
<h2>需要处理</h2>
<p>只显示当前角色和数据范围内可处理的事项。</p>
<span class="panel-index">{{ t('dashboard.admin.todo.label') }}</span>
<h2>{{ t('dashboard.admin.todo.title') }}</h2>
<p>{{ t('dashboard.admin.todo.hint') }}</p>
</div>
<span v-if="pendingTotal > 0" class="pending-badge">{{ pendingTotal }} 项</span>
<span v-if="pendingTotal > 0" class="pending-badge">{{ t('dashboard.admin.pending.items', { count: pendingTotal }) }}</span>
</header>
<div v-if="todoItems.length" class="todo-list">
@@ -588,8 +594,8 @@ onMounted(async () => {
<div v-else class="todo-empty">
<el-icon><Checked /></el-icon>
<div>
<b>当前没有待处理事项</b>
<span>新的审核任务到达后会在这里集中显示。</span>
<b>{{ t('dashboard.admin.todo.empty') }}</b>
<span>{{ t('dashboard.admin.todo.emptyHint') }}</span>
</div>
</div>
</article>
@@ -597,9 +603,9 @@ onMounted(async () => {
<article class="dashboard-panel quick-panel">
<header class="panel-heading">
<div>
<span class="panel-index">常用入口</span>
<h2>常用工作</h2>
<p>按当前角色整理的高频业务入口。</p>
<span class="panel-index">{{ t('dashboard.admin.quick.label') }}</span>
<h2>{{ t('dashboard.admin.quick.title') }}</h2>
<p>{{ t('dashboard.admin.quick.hint') }}</p>
</div>
</header>
@@ -624,11 +630,11 @@ onMounted(async () => {
<section class="dashboard-panel readiness-panel">
<header class="panel-heading">
<div>
<span class="panel-index">学期进度</span>
<h2>本学期教学运行</h2>
<p>关注教学任务、课表与成绩流程的完成情况。</p>
<span class="panel-index">{{ t('dashboard.admin.readiness.label') }}</span>
<h2>{{ t('dashboard.admin.readiness.title') }}</h2>
<p>{{ t('dashboard.admin.readiness.hint') }}</p>
</div>
<span class="refresh-time">数据更新于 {{ new Date(data.generatedAt).toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit' }) }}</span>
<span class="refresh-time">{{ t('dashboard.admin.updatedAt', { time: new Date(data.generatedAt).toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit' }) }) }}</span>
</header>
<div class="readiness-list">
@@ -645,18 +651,15 @@ onMounted(async () => {
<strong>{{ item.percent }}%</strong>
<small>{{ item.value }} / {{ item.total }}</small>
<em>{{ item.note }}</em>
<b>查看 →</b>
<b>{{ t('dashboard.admin.view') }} →</b>
</button>
</div>
<footer class="scope-summary">
<span><b>{{ formatNumber(data.counts.teachers) }}</b> 名在岗教师</span>
<span><b>{{ formatNumber(data.counts.courses) }}</b> 门启用课程</span>
<span><b>{{ formatNumber(data.counts.courseEnrollments) }}</b> 条有效选课</span>
<span>
<b>{{ data.counts.openCourseSelectionRounds }}</b>
个选课批次开放中
</span>
<span><b>{{ formatNumber(data.counts.teachers) }}</b> {{ t('dashboard.admin.summary.teachers') }}</span>
<span><b>{{ formatNumber(data.counts.courses) }}</b> {{ t('dashboard.admin.summary.courses') }}</span>
<span><b>{{ formatNumber(data.counts.courseEnrollments) }}</b> {{ t('dashboard.admin.summary.enrollments') }}</span>
<span><b>{{ data.counts.openCourseSelectionRounds }}</b> {{ t('dashboard.admin.summary.rounds') }}</span>
</footer>
</section>
</template>
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more