diff --git a/web/src/components.d.ts b/web/src/components.d.ts index 2e43680..bb40539 100644 --- a/web/src/components.d.ts +++ b/web/src/components.d.ts @@ -16,6 +16,7 @@ declare module 'vue' { 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'] 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/ApprovalAttachmentList.vue b/web/src/components/ApprovalAttachmentList.vue index c83260c..f733006 100644 --- a/web/src/components/ApprovalAttachmentList.vue +++ b/web/src/components/ApprovalAttachmentList.vue @@ -3,6 +3,8 @@ import { onMounted, ref } from 'vue' import { useI18n } from 'vue-i18n' import { ElMessage } from 'element-plus' import http, { apiErrorMessage } from '../api/http' +import AttachmentFileList from './AttachmentFileList.vue' + const props = defineProps<{ type: string; id: string }>() const { locale } = useI18n() const files = ref<{ id: string; fileName: string; length: number }[]>([]) @@ -15,5 +17,9 @@ async function download(file: { id: string; fileName: string }) { } diff --git a/web/src/components/ApprovalAttachmentPicker.vue b/web/src/components/ApprovalAttachmentPicker.vue index a3b3696..8ebdd2e 100644 --- a/web/src/components/ApprovalAttachmentPicker.vue +++ b/web/src/components/ApprovalAttachmentPicker.vue @@ -1,9 +1,10 @@ diff --git a/web/src/components/AttachmentFileList.vue b/web/src/components/AttachmentFileList.vue new file mode 100644 index 0000000..a01f8c9 --- /dev/null +++ b/web/src/components/AttachmentFileList.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/web/src/components/StudentLeavePanel.vue b/web/src/components/StudentLeavePanel.vue index 95537ee..0fcec0b 100644 --- a/web/src/components/StudentLeavePanel.vue +++ b/web/src/components/StudentLeavePanel.vue @@ -1,10 +1,12 @@