diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 3ebd916..0a7a5c0 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -16,11 +16,19 @@ onMounted(async () => { route.params.id as string, '1-เอกสารเล่ม 2' ) - + const result2 = await doc.info( + 'เล่ม 2', + route.params.id as string, + '2-เอกสารเล่ม 2 (ฉบับแก้ไข)' + ) if (result) { data.value = result metadata.value = result.metadata } + if (result2) { + data.value = result2 + metadata.value = result2.metadata + } }) @@ -32,52 +40,65 @@ onMounted(async () => { -
+ +
+ +
+
- -
- -
-
-
-
{{ metadata?.subject || data?.fileName }}
-
- {{ metadata?.author || data?.author }} -
+
+
+ {{ metadata?.subject || data?.fileName }}
+
+ {{ metadata?.author || data?.author }} +
+
- -
-
ตำแหน่งที่ได้รับ
-
- {{ metadata?.position || '-' }} -
+
+
ตำแหน่งที่ได้รับ
+
+ {{ metadata?.position || '-' }}
+
- - -
-
ขนาดไฟล์
-
- {{ data && doc.util.formatBytes(data.fileSize) }} -
+
+
ขนาดไฟล์
+
+ {{ data && doc.util.formatBytes(data.fileSize) }}
+
-
-
วันที่อัปโหลด
-
- {{ - data && - new Date(data.createdAt).toLocaleDateString('th', { - day: 'numeric', - month: 'short', - year: 'numeric', - }) - }} -
+
+
วันที่อัปโหลด
+
+ {{ + data && + new Date(data.createdAt).toLocaleDateString('th', { + day: 'numeric', + month: 'short', + year: 'numeric', + }) + }}
-
- -
-
- - +
+ +
+
+ + - - - - ดาวน์โหลด - -
+ + + ดาวน์โหลด +
- +