From f242a7cf9fc8157239824cccb9b91c1f13b74f7f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 23 Jan 2024 17:27:10 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=94=E0=B8=B2=E0=B8=A7=E0=B9=82?= =?UTF-8?q?=E0=B8=AB=E0=B8=A5=E0=B8=94=E0=B9=84=E0=B8=9F=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HomeView.vue | 188 ++++++++++++++++++++++------------------- 1 file changed, 103 insertions(+), 85 deletions(-) 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', + }) + }}
-
- -
-
- - +
+ +
+
+ + - - - - ดาวน์โหลด - -
+ + + ดาวน์โหลด +
- +