diff --git a/Services/client/src/components/FileSearched.vue b/Services/client/src/components/FileSearched.vue index 7de1387..36a2f72 100644 --- a/Services/client/src/components/FileSearched.vue +++ b/Services/client/src/components/FileSearched.vue @@ -29,6 +29,9 @@ const { getFileInfo, getSize, getType } = useFileInfoStore() const storageStore = useStorage() const { deleteFile } = storageStore +const fileInfoStore = useFileInfoStore() +const { getFormatDate } = fileInfoStore + const fileFormComponent = ref>() const keywordList = ref([]) @@ -303,12 +306,29 @@ onMounted(() => {
- - {{ getSize(actionData.row.fileSize) }} + +
+ ชื่อไฟล์: {{ actionData.row.fileName }} + + ชื่อเรื่อง: + {{ actionData.row.metadata.subject ?? actionData.row.title }} + + + เจ้าของผลงาน: + {{ actionData.row.metadata.author ?? actionData.row.author }} + + ขนาด: {{ getSize(actionData.row.fileSize) }} + + ประเภทของไฟล์: + {{ + getType(actionData.row.fileType, actionData.row.fileName) + }} + + + วันที่อัปโหลด: + {{ getFormatDate(actionData.row.createdAt) }} + +
diff --git a/Services/client/src/components/ListView.vue b/Services/client/src/components/ListView.vue index 967272a..f76619c 100644 --- a/Services/client/src/components/ListView.vue +++ b/Services/client/src/components/ListView.vue @@ -342,26 +342,29 @@ const onRowClick = ((_, row) => { size="2em" color="primary" /> - -
- ชื่อไฟล์ {{ data.row.fileName }} - ชื่อเรื่อง - {{ data.row.metadata.subject ?? data.row.subject }} - เจ้าของผลงาน - {{ data.row.metadata.author ?? data.row.author }} - ขนาดไฟล์ {{ getSize(data.row.fileSize) }} - ประเภทไฟล์ - {{ getType(data.row.fileType, data.row.fileName) }} + +
+ ชื่อไฟล์: {{ data.row.fileName }} + + ชื่อเรื่อง: + {{ data.row.metadata.subject ?? data.row.title }} + + + เจ้าของผลงาน: + {{ data.row.metadata.author ?? data.row.author }} + + ขนาด: {{ getSize(data.row.fileSize) }} + + ประเภทของไฟล์: + {{ getType(data.row.fileType, data.row.fileName) }} + + + วันที่อัปโหลด: + {{ getFormatDate(data.row.createdAt) }} +