diff --git a/web/src/components.d.ts b/web/src/components.d.ts index 4e534ea..a279017 100644 --- a/web/src/components.d.ts +++ b/web/src/components.d.ts @@ -12,10 +12,10 @@ export {} declare module 'vue' { export interface GlobalComponents { AcademicCalendarReminder: typeof import('./components/AcademicCalendarReminder.vue')['default'] - ApprovalAttachmentPicker: typeof import('./components/ApprovalAttachmentPicker.vue')['default'] AppUpdateManagementPanel: typeof import('./components/AppUpdateManagementPanel.vue')['default'] ArchiveDialog: typeof import('./components/ArchiveDialog.vue')['default'] AttachmentFileList: typeof import('./components/AttachmentFileList.vue')['default'] + AttachmentPicker: typeof import('./components/AttachmentPicker.vue')['default'] ChinesePostalCodeInput: typeof import('./components/ChinesePostalCodeInput.vue')['default'] CourseDiscussionPanel: typeof import('./components/CourseDiscussionPanel.vue')['default'] CustomExportDialog: typeof import('./components/CustomExportDialog.vue')['default'] diff --git a/web/src/components/ApprovalAttachmentPicker.vue b/web/src/components/AttachmentPicker.vue similarity index 51% rename from web/src/components/ApprovalAttachmentPicker.vue rename to web/src/components/AttachmentPicker.vue index 4ff5847..a6ca819 100644 --- a/web/src/components/ApprovalAttachmentPicker.vue +++ b/web/src/components/AttachmentPicker.vue @@ -1,19 +1,26 @@ - + {{ policy.allowedExtensions }} · {{ t('approvalAttachments.limits', { size: (policy.maxFileBytes / 1048576).toFixed(1), count: policy.maxFileCount }) }} @@ -44,5 +52,8 @@ function change(event: Event) { {{ t('common.reload') }} {{ t('approvalAttachments.loadingPolicy') }} + + {{ t('approvalAttachments.invalid') }} + diff --git a/web/src/components/StudentLeavePanel.vue b/web/src/components/StudentLeavePanel.vue index dcbd89d..5de9e40 100644 --- a/web/src/components/StudentLeavePanel.vue +++ b/web/src/components/StudentLeavePanel.vue @@ -1,12 +1,12 @@ @@ -114,10 +101,11 @@ onMounted(async () => { - - - {{ tr('允许格式', 'Allowed') }}: {{ filePolicy.allowedExtensions }};{{ tr('单文件最大', 'Maximum per file') }}: {{ (filePolicy.maxFileBytes / 1048576).toFixed(1) }} MiB;{{ tr('最多', 'Maximum') }} {{ filePolicy.maxFileCount }};{{ tr('单次请求总大小不超过约 100 MiB', 'Total request size is limited to about 100 MiB') }} - + {{ tr('取消', 'Cancel') }}{{ tr('提交', 'Submit') }} diff --git a/web/src/views/ApprovalCenterView.vue b/web/src/views/ApprovalCenterView.vue index ea79506..9fc45c1 100644 --- a/web/src/views/ApprovalCenterView.vue +++ b/web/src/views/ApprovalCenterView.vue @@ -19,7 +19,7 @@ import { downloadApiFile } from "../api/excel"; import { useAuthStore } from "../stores/auth"; import { usePluginStore } from "../stores/plugins"; import StudentLeavePanel from "../components/StudentLeavePanel.vue"; -import ApprovalAttachmentPicker from "../components/ApprovalAttachmentPicker.vue"; +import AttachmentPicker from "../components/AttachmentPicker.vue"; import RecordAttachmentList from "../components/RecordAttachmentList.vue"; import StudentIdentityChangePanel from "../components/StudentIdentityChangePanel.vue"; @@ -1948,7 +1948,7 @@ onMounted(async () => { /> - + diff --git a/web/src/views/ComprehensiveAssessmentsView.vue b/web/src/views/ComprehensiveAssessmentsView.vue index 2fd8179..5c3177b 100644 --- a/web/src/views/ComprehensiveAssessmentsView.vue +++ b/web/src/views/ComprehensiveAssessmentsView.vue @@ -19,7 +19,7 @@ import { import http, { apiErrorMessage } from "../api/http"; import { downloadApiFile } from "../api/excel"; import { useAuthStore } from "../stores/auth"; -import ApprovalAttachmentPicker from "../components/ApprovalAttachmentPicker.vue"; +import AttachmentPicker from "../components/AttachmentPicker.vue"; const auth = useAuthStore(); const route = useRoute(); @@ -2600,7 +2600,7 @@ onUnmounted(() => { if (scheduleClock) clearInterval(scheduleClock); }); ) " /> - +
{{ policy.allowedExtensions }} · {{ t('approvalAttachments.limits', { size: (policy.maxFileBytes / 1048576).toFixed(1), count: policy.maxFileCount }) }}
{{ t('approvalAttachments.loadingPolicy') }}
+ {{ t('approvalAttachments.invalid') }} +
{{ tr('允许格式', 'Allowed') }}: {{ filePolicy.allowedExtensions }};{{ tr('单文件最大', 'Maximum per file') }}: {{ (filePolicy.maxFileBytes / 1048576).toFixed(1) }} MiB;{{ tr('最多', 'Maximum') }} {{ filePolicy.maxFileCount }};{{ tr('单次请求总大小不超过约 100 MiB', 'Total request size is limited to about 100 MiB') }}