-
+
-
-
+
+
-
-
+
+
diff --git a/web/src/i18n/messages/en-US.ts b/web/src/i18n/messages/en-US.ts
index 337bf79..c24e031 100644
--- a/web/src/i18n/messages/en-US.ts
+++ b/web/src/i18n/messages/en-US.ts
@@ -100,6 +100,37 @@ export default {
messages: { selectTerm: 'Select the term that will receive the holiday events.', syncConfirm: 'Sync public holidays for {year} and replace previously synced data for that year in this term?', synced: 'Synced {count} holiday or adjusted-workday events covering {days} days.', required: 'Enter a term, event name, and start date.', saved: 'Calendar event saved. It is used only for display and reminders.', deleteConfirm: 'Delete “{title}”?', deleteTitle: 'Delete event', deleted: 'Event deleted' },
sync: { title: 'Sync public holidays', action: 'Sync public holidays', confirm: 'Sync', intro: 'Read the selected year from the holiday data source and add it to the current term. Syncing the same year again replaces previously synced data.', preview: 'Preview data', previewHint: 'Select Preview to load holiday data', dayOff: 'Day off', workday: 'Adjusted workday', submit: 'Sync to current term' },
},
+ shared: {
+ noData: 'No data', loadMore: 'Load more',
+ nativePlace: { province: 'Province', city: 'City', district: 'District', town: 'Town', loadFailed: 'Place data could not be loaded.' },
+ editor: { body: 'Body', heading: 'Heading', subheading: 'Subheading' },
+ postcode: { prefix: 'First four postal-code digits', suffixPlaceholder: 'Last two digits', suffix: 'Last two postal-code digits', sixDigits: '6-digit postal code', label: 'Postal code', selectDistrict: 'Select a matching district.' },
+ bed: { building: 'Building', floor: 'Floor', floorOption: 'Floor {floor}', room: 'Room', roomOption: '{room} (Floor {floor})', search: 'Search', total: '{total} vacant beds', loaded: '{loaded} of {total} loaded' },
+ },
+ equivalency: {
+ title: 'Course substitution rules', description: 'Configure equivalent courses for credit recognition and graduation audits.', original: 'Original course', substitute: 'Substitute course', selectCourse: 'Select a course', grade: 'Entry year', all: 'All', notes: 'Notes', create: 'Create rule', relationship: 'Substitution', scope: 'Applies to', allMajors: 'All majors', allGrades: 'All entry years', status: 'Status', enabled: 'Enabled', disabled: 'Disabled', actions: 'Actions', delete: 'Delete', cancel: 'Cancel',
+ messages: { selectCourses: 'Select both the original and substitute courses.', created: 'Course substitution rule created.', deleteConfirm: 'This rule will no longer be used for credit recognition or graduation audits. Continue?', deleteTitle: 'Delete course substitution rule', deleted: 'Course substitution rule deleted.' },
+ },
+ discussion: {
+ title: 'Course discussion', description: 'Only users with published grades for this course can participate. Anonymous posts hide the author name, while retaining author information for deletion and moderation.', refresh: 'Refresh comments', placeholder: 'Share your thoughts about the course grades, learning experience, or teaching improvements', anonymousPublish: 'Post anonymously', publish: 'Post comment', empty: 'No comments yet. Start the discussion.', unnamed: 'Unnamed user', anonymous: 'Anonymous', addReaction: 'Add reaction', selectReaction: 'Select a reaction', reply: 'Reply', delete: 'Delete', loadMoreReplies: 'Load more replies', replyPlaceholder: 'Reply to this comment', anonymousReply: 'Reply anonymously', loadMoreComments: 'Load more comments',
+ reactions: { Like: 'Like', Insightful: 'Insightful', Agree: 'Agree', Hooray: 'Celebrate', Heart: 'Love', Rocket: 'Great', Eyes: 'Watching', Laugh: 'Funny' },
+ messages: { enterContent: 'Enter a comment first.', anonymousPublished: 'Anonymous comment posted.', published: 'Comment posted.', deleteConfirm: 'Deleted comments cannot be recovered. Delete this comment?', deleteTitle: 'Delete comment', deleted: 'Comment deleted.' },
+ },
+ repairReport: {
+ eyebrow: 'Classroom repair', description: 'Scan the classroom QR code to report an issue. Current venue: {code}', equipment: 'Equipment', equipmentPlaceholder: 'Select equipment', unavailable: 'No reportable equipment found', category: 'Issue category', categories: { multimedia: 'Multimedia equipment', furniture: 'Furniture', utilities: 'Utilities', hvac: 'Heating, cooling, and ventilation', other: 'Other' }, item: 'Affected item', itemPlaceholder: 'For example: projector, lighting, or desk', details: 'Issue details', detailsPlaceholder: 'Describe the issue, its location, and its impact', reporter: 'Reported by', contact: 'Contact details', submit: 'Submit report',
+ messages: { notFound: 'The classroom was not found. Check that the QR code is valid.', required: 'Complete the issue category, affected item, and details.', submitted: 'Repair report submitted. Staff will follow up shortly.' },
+ },
+ archive: {
+ historyTitle: 'Archive history', archivePreview: 'Archive preview', restorePreview: 'Restore preview', selectRecords: 'Select records to process.', limit: 'You can process up to {count} records at a time.', archive: 'Archive', restore: 'Restore', noHistory: 'No archive history', previous: 'Previous', page: 'Page {page}', next: 'Next', eligible: 'Eligible', ineligible: 'Not eligible', archived: 'Archived', notArchived: 'Not archived', reason: 'Reason', alreadyTarget: 'Record is already in the target state', handle: 'Process', archiveReason: 'Archive reason', restoreReason: 'Restore reason', close: 'Close', confirmArchive: 'Archive records', confirmRestore: 'Restore records',
+ },
+ venueDisplay: {
+ smartSpace: 'Smart space', loading: 'Loading venue information…', currentDay: 'Today', currentStatus: 'Current status', noCurrentCourse: 'No class in progress', periodRange: 'Periods {start}–{end}', repairQr: 'Scan for repairs', scanRepair: 'Scan the QR code to report classroom equipment issues', enlargeQr: 'Enlarge QR code', exitFullscreen: 'Exit full screen', fullscreen: 'Full screen', periodEnd: 'Period {period} ends', reserved: 'Reserved', noClasses: 'No classes scheduled today', borrowHint: 'Contact academic administration for temporary use.', classroom: 'Classroom', free: 'Available', occupied: 'In use', announcements: 'Venue announcements', notice: 'Notice', urgent: 'Urgent', pagingHint: 'Use the left and right arrow keys to change announcements', closeQr: 'Close QR code', enlargedQr: 'Repair QR code', submitTo: 'Scan to submit a repair report for {room}',
+ },
+ venueManager: {
+ title: 'Venue information displays', description: 'Generate classroom and building display links, and publish scheduled public announcements to selected locations.', links: 'Display links', classroomSchedule: 'Today’s classroom schedule', selectClassroom: 'Select a classroom', copy: 'Copy', buildingAvailability: 'Available rooms by building', selectBuilding: 'Select a building', selectClassrooms: 'Select classrooms', selectBuildings: 'Select buildings', exportLinks: 'Export links ({count})', announcements: 'Display announcements', publish: 'Publish announcement', empty: 'No display announcements', notice: 'Announcement', scope: 'Audience', status: 'Status', published: 'Published', draft: 'Draft', urgent: 'Urgent', validity: 'Active period', immediately: 'Immediately', to: 'to', longTerm: 'No end date', actions: 'Actions', edit: 'Edit', delete: 'Delete', cancel: 'Cancel', save: 'Save announcement', allDisplays: 'All displays', targetRemoved: 'Target removed', exportFilename: 'venue-display-links.xlsx',
+ scopes: { '1': 'School-wide', '2': 'Campus', '3': 'Building', '4': 'Classroom' }, scopeOptions: { school: 'All school displays', campus: 'Selected campus', building: 'Selected building', classroom: 'Selected classroom' }, dialog: { edit: 'Edit display announcement', publish: 'Publish display announcement' }, form: { title: 'Announcement title', content: 'Announcement content', target: 'Display target', priority: 'Priority', starts: 'Start time', ends: 'End time', publishNow: 'Publish now', pinned: 'Pin', urgent: 'Highlight as urgent' },
+ messages: { copied: 'Display link copied.', selectExport: 'Select display links to export.', required: 'Enter an announcement title and content.', selectTarget: 'Select a display target.', updated: 'Announcement updated.', published: 'Announcement published.', deleteConfirm: '“{title}” will no longer appear on displays. Delete it?', deleteTitle: 'Delete display announcement', deleted: 'Announcement deleted.' },
+ },
api: {
'data.constraint_conflict': 'A data constraint conflict occurred.',
'server.unhandled_error': 'The server encountered an error while processing the request.',
diff --git a/web/src/i18n/messages/zh-CN.ts b/web/src/i18n/messages/zh-CN.ts
index ea2820b..d5914cc 100644
--- a/web/src/i18n/messages/zh-CN.ts
+++ b/web/src/i18n/messages/zh-CN.ts
@@ -100,6 +100,37 @@ export default {
messages: { selectTerm: '请先选择要写入节假日的学期。', syncConfirm: '将同步 {year} 年节假日,并替换该学期已同步的同年度数据。', synced: '已同步 {count} 个节假日/调休日程,覆盖 {days} 天。', required: '请填写学期、日程名称和开始日期。', saved: '校历日程已保存;它只用于展示和提醒。', deleteConfirm: '删除“{title}”吗?', deleteTitle: '删除日程', deleted: '日程已删除' },
sync: { title: '同步法定节假日', action: '同步法定节假日', confirm: '确认同步', intro: '从节假日数据源读取指定年份,写入当前选择的学期。再次同步同一年会替换此前同步的数据。', preview: '预览数据', previewHint: '点击预览以加载节假日数据', dayOff: '休息', workday: '调休上班', submit: '同步到当前学期' },
},
+ shared: {
+ noData: '暂无数据', loadMore: '加载更多',
+ nativePlace: { province: '省份', city: '城市', district: '区县', town: '乡镇', loadFailed: '籍贯数据加载失败。' },
+ editor: { body: '正文', heading: '标题', subheading: '小标题' },
+ postcode: { prefix: '邮政编码前四位', suffixPlaceholder: '后两位', suffix: '邮政编码后两位', sixDigits: '6 位邮政编码', label: '邮政编码', selectDistrict: '请选择匹配的区县。' },
+ bed: { building: '楼栋', floor: '楼层', floorOption: '{floor} 层', room: '房间', roomOption: '{room}({floor} 层)', search: '搜索', total: '共 {total} 个空床位', loaded: '已加载 {loaded} / {total}' },
+ },
+ equivalency: {
+ title: '课程替代规则', description: '配置原课程与替代课程的等效关系,用于成绩认定和毕业审核。', original: '原课程', substitute: '替代课程', selectCourse: '请选择课程', grade: '适用年级', all: '全部', notes: '备注', create: '新建规则', relationship: '替代关系', scope: '适用范围', allMajors: '全部专业', allGrades: '全部年级', status: '状态', enabled: '已启用', disabled: '已停用', actions: '操作', delete: '删除', cancel: '取消',
+ messages: { selectCourses: '请选择原课程和替代课程。', created: '课程替代规则已创建。', deleteConfirm: '删除后将不再用于成绩认定和毕业审核,确定继续吗?', deleteTitle: '删除课程替代规则', deleted: '课程替代规则已删除。' },
+ },
+ discussion: {
+ title: '课程讨论', description: '仅限已发布该课程成绩的用户参与;匿名会隐藏姓名,但系统保留作者信息以便本人删除和管理员处理。', refresh: '刷新评论', placeholder: '分享对这门课程成绩、学习收获或教学改进的看法', anonymousPublish: '匿名发布', publish: '发布评论', empty: '还没有评论,来说说你的看法吧', unnamed: '未命名用户', anonymous: '匿名', addReaction: '添加表情反应', selectReaction: '选择表情反应', reply: '回复', delete: '删除', loadMoreReplies: '加载更多回复', replyPlaceholder: '回复这条评论', anonymousReply: '匿名回复', loadMoreComments: '加载更多评论',
+ reactions: { Like: '赞', Insightful: '有启发', Agree: '认同', Hooray: '庆祝', Heart: '喜欢', Rocket: '很棒', Eyes: '关注', Laugh: '好笑' },
+ messages: { enterContent: '请先输入评论内容。', anonymousPublished: '匿名评论已发布。', published: '实名评论已发布。', deleteConfirm: '删除后不能恢复,确定要删除这条评论吗?', deleteTitle: '删除评论', deleted: '评论已删除。' },
+ },
+ repairReport: {
+ eyebrow: '教室报修', description: '扫描教室二维码即可提交故障,当前场地:{code}', equipment: '设备', equipmentPlaceholder: '请选择设备', unavailable: '未找到可报修设备', category: '故障分类', categories: { multimedia: '多媒体设备', furniture: '桌椅与家具', utilities: '水电设施', hvac: '空调与通风', other: '其他' }, item: '故障项目', itemPlaceholder: '例如:投影仪、灯具、桌椅', details: '故障描述', detailsPlaceholder: '请描述故障现象、位置及影响', reporter: '报修人', contact: '联系方式', submit: '提交报修',
+ messages: { notFound: '未找到对应教室,请检查二维码是否有效。', required: '请完整填写故障分类、项目和描述。', submitted: '报修已提交,工作人员会尽快处理。' },
+ },
+ archive: {
+ historyTitle: '归档记录', archivePreview: '归档预览', restorePreview: '恢复预览', selectRecords: '请选择要处理的记录。', limit: '单次最多处理 {count} 条记录。', archive: '归档', restore: '恢复', noHistory: '暂无归档记录', previous: '上一页', page: '第 {page} 页', next: '下一页', eligible: '可处理', ineligible: '不可处理', archived: '已归档', notArchived: '未归档', reason: '原因', alreadyTarget: '记录已处于目标状态', handle: '处理', archiveReason: '归档原因', restoreReason: '恢复原因', close: '关闭', confirmArchive: '确认归档', confirmRestore: '确认恢复',
+ },
+ venueDisplay: {
+ smartSpace: '智慧场地', loading: '正在加载场地信息…', currentDay: '今日', currentStatus: '当前状态', noCurrentCourse: '当前无课程', periodRange: '第 {start}–{end} 节', repairQr: '扫码报修', scanRepair: '扫描二维码提交教室设备报修', enlargeQr: '放大二维码', exitFullscreen: '退出全屏', fullscreen: '全屏显示', periodEnd: '第 {period} 节结束', reserved: '已预约', noClasses: '今日无课程安排', borrowHint: '如需临时借用,请联系教务管理人员。', classroom: '教室', free: '空闲', occupied: '使用中', announcements: '场地公告', notice: '公告', urgent: '紧急', pagingHint: '使用左右方向键切换公告', closeQr: '关闭二维码', enlargedQr: '报修二维码', submitTo: '扫码后将向 {room} 提交报修',
+ },
+ venueManager: {
+ title: '场地信息展牌', description: '生成教室与教学楼展屏链接,并为不同地点投放可控、可定时的公开公告。', links: '展牌链接', classroomSchedule: '教室当天课程', selectClassroom: '选择教室', copy: '复制', buildingAvailability: '教学楼空余教室', selectBuilding: '选择教学楼', selectClassrooms: '批量选择教室', selectBuildings: '批量选择教学楼', exportLinks: '导出链接({count})', announcements: '展屏公告', publish: '发布公告', empty: '暂无展屏公告', notice: '公告', scope: '投放范围', status: '状态', published: '已发布', draft: '草稿', urgent: '紧急', validity: '有效期', immediately: '立即', to: '至', longTerm: '长期', actions: '操作', edit: '编辑', delete: '删除', cancel: '取消', save: '保存公告', allDisplays: '全部展屏', targetRemoved: '目标已移除', exportFilename: '场地信息展牌链接.xlsx',
+ scopes: { '1': '全校', '2': '校区', '3': '教学楼', '4': '教室' }, scopeOptions: { school: '全校展屏', campus: '指定校区', building: '指定教学楼', classroom: '指定教室' }, dialog: { edit: '编辑展屏公告', publish: '发布展屏公告' }, form: { title: '公告标题', content: '公告内容', target: '投放目标', priority: '优先级', starts: '开始时间', ends: '结束时间', publishNow: '立即发布', pinned: '置顶', urgent: '紧急高亮' },
+ messages: { copied: '展牌链接已复制。', selectExport: '请先选择要导出的展牌链接。', required: '请填写公告标题和内容。', selectTarget: '请选择投放目标。', updated: '公告已更新。', published: '公告已发布。', deleteConfirm: '删除“{title}”后将不再在展屏显示。', deleteTitle: '删除展屏公告', deleted: '公告已删除。' },
+ },
api: {
'data.constraint_conflict': '数据约束冲突。',
'server.unhandled_error': '服务器处理请求时发生错误。',
diff --git a/web/src/views/ClassroomRepairReportView.vue b/web/src/views/ClassroomRepairReportView.vue
index 6e97dc0..ad36f03 100644
--- a/web/src/views/ClassroomRepairReportView.vue
+++ b/web/src/views/ClassroomRepairReportView.vue
@@ -2,9 +2,11 @@
import { computed, onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { ElMessage } from 'element-plus'
+import { useI18n } from 'vue-i18n'
import http from '../api/http'
const route = useRoute()
+const { t } = useI18n()
const classroomId = computed(() => String(route.params.classroomId))
const loading = ref(true)
const submitting = ref(false)
@@ -18,12 +20,12 @@ async function load() {
const { data } = await http.get(`/classroom-repairs/report/${classroomId.value}`)
classroom.value = data.classroom
equipment.value = data.equipment
- } catch (_) { ElMessage.error('未找到该教室,请核对二维码。') } finally { loading.value = false }
+ } catch (_) { ElMessage.error(t('repairReport.messages.notFound')) } finally { loading.value = false }
}
async function submit() {
if (!form.value.faultItem || !form.value.description || !form.value.reporterName || !form.value.reporterContact) {
- ElMessage.warning('请完整填写故障现象和联系方式。')
+ ElMessage.warning(t('repairReport.messages.required'))
return
}
submitting.value = true
@@ -32,7 +34,7 @@ async function submit() {
...form.value,
classroomEquipmentId: form.value.classroomEquipmentId || null,
})
- ElMessage.success('报修已提交,维修部门将尽快处理。')
+ ElMessage.success(t('repairReport.messages.submitted'))
form.value = { classroomEquipmentId: '', category: 1, faultItem: '', description: '', reporterName: '', reporterContact: '' }
await load()
} finally { submitting.value = false }
@@ -44,31 +46,31 @@ onMounted(load)
- 教室服务 · 扫码报修
+ {{ t('repairReport.eyebrow') }}
{{ classroom.buildingName }} · {{ classroom.name }}
- {{ classroom.code }}。提交后将生成维修工单,并提醒受影响的后续授课教师办理调换教室。
+ {{ t('repairReport.description', { code: classroom.code }) }}
-
-
-
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
- 提交报修
+ {{ t('repairReport.submit') }}
diff --git a/web/src/views/CourseEquivalencyRulesView.vue b/web/src/views/CourseEquivalencyRulesView.vue
index ff20790..5fa9257 100644
--- a/web/src/views/CourseEquivalencyRulesView.vue
+++ b/web/src/views/CourseEquivalencyRulesView.vue
@@ -1,5 +1,6 @@
-展牌链接
导出链接({{ selectedClassrooms.length + selectedBuildings.length }})
{{ row.title }}{{ row.content }}
{{ scopeLabel(row.scope) }} · {{ targetLabel(row) }}{{ row.isPublished ? '已发布' : '草稿' }}紧急{{ row.startsAt ? new Date(row.startsAt).toLocaleString('zh-CN', { hour12: false }) : '立即' }}
至 {{ row.endsAt ? new Date(row.endsAt).toLocaleString('zh-CN', { hour12: false }) : '长期' }}编辑删除
立即发布置顶紧急高亮取消保存公告
+
+
+
+
+ {{ t('venueManager.links') }}
+
+
{{ t('venueManager.copy') }}
+
{{ t('venueManager.copy') }}
+
+ {{ t('venueManager.exportLinks', { count: selectedClassrooms.length + selectedBuildings.length }) }}
+
+
+ PUBLIC MESSAGE
{{ t('venueManager.announcements') }}
{{ t('venueManager.publish') }}
+ {{ row.title }}{{ row.content }}
{{ scopeLabel(row.scope) }} · {{ targetLabel(row) }}{{ row.isPublished ? t('venueManager.published') : t('venueManager.draft') }}{{ t('venueManager.urgent') }}{{ row.startsAt ? new Date(row.startsAt).toLocaleString(locale, { hour12: false }) : t('venueManager.immediately') }}
{{ t('venueManager.to') }} {{ row.endsAt ? new Date(row.endsAt).toLocaleString(locale, { hour12: false }) : t('venueManager.longTerm') }}{{ t('venueManager.edit') }}{{ t('venueManager.delete') }}
+
+
+
{{ t('venueManager.form.publishNow') }}{{ t('venueManager.form.pinned') }}{{ t('venueManager.form.urgent') }}
+ {{ t('venueManager.cancel') }}{{ t('venueManager.save') }}
+
+
+