From 4c1255535e6007f704dc66202c20fbb339e9a505 Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Thu, 7 Dec 2023 10:33:28 +0700 Subject: [PATCH 1/2] chore: remove search log --- Services/client/src/modules/01_user/components/SearchBar.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/Services/client/src/modules/01_user/components/SearchBar.vue b/Services/client/src/modules/01_user/components/SearchBar.vue index 3f864d5..94e8ff2 100644 --- a/Services/client/src/modules/01_user/components/SearchBar.vue +++ b/Services/client/src/modules/01_user/components/SearchBar.vue @@ -95,8 +95,6 @@ async function searchSubmit() { `${import.meta.env.VITE_API_ENDPOINT}/search`, submitSearchData.value, ) - console.log(submitSearchData) - getFoundFile(res.data) isSearch.value = true } catch (error) { From 58f478a380f0b7b259d7a7434dc12eaae1ec2cb8 Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Thu, 7 Dec 2023 10:39:45 +0700 Subject: [PATCH 2/2] fix: filePath, delete timeout, header --- .../client/src/components/FileSearched.vue | 2 +- Services/client/src/components/PageLayout.vue | 2 +- .../01_user/components/FileDownload.vue | 21 ++++++++++++------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Services/client/src/components/FileSearched.vue b/Services/client/src/components/FileSearched.vue index 8a4409a..1d5c5bf 100644 --- a/Services/client/src/components/FileSearched.vue +++ b/Services/client/src/components/FileSearched.vue @@ -156,7 +156,7 @@ function confirmDelete() { setTimeout(() => { isActFoundFile.value = true - }, 300) + }, 1000) } } diff --git a/Services/client/src/components/PageLayout.vue b/Services/client/src/components/PageLayout.vue index 888d255..2822f4f 100644 --- a/Services/client/src/components/PageLayout.vue +++ b/Services/client/src/components/PageLayout.vue @@ -55,7 +55,7 @@ onMounted(getCabinet)
จัดเก็บเอกสาร
-
สืบค้นเอกสาร
+
สืบค้นผลงาน
diff --git a/Services/client/src/modules/01_user/components/FileDownload.vue b/Services/client/src/modules/01_user/components/FileDownload.vue index 1ad279f..a9d2ee8 100644 --- a/Services/client/src/modules/01_user/components/FileDownload.vue +++ b/Services/client/src/modules/01_user/components/FileDownload.vue @@ -10,6 +10,8 @@ import FileIcon from '@/components/FileIcon.vue' const { isFilePreview, fileInfo } = storeToRefs(useFileInfoStore()) const { getType, getFormatDate, getSize } = useFileInfoStore() +const filePath = + (fileInfo.value?.pathname || '').split('/').slice(0, -1).join(' / ') + ' / ' async function downloadSubmit(path: string | undefined) { if (path) { @@ -66,6 +68,9 @@ async function downloadSubmit(path: string | undefined) { {{ fileInfo?.title }} + + {{ filePath }} +
@@ -113,7 +118,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
ชื่อไฟล์
@@ -122,7 +127,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
ชื่อเรื่อง
@@ -131,7 +136,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
รายละเอียด
@@ -140,7 +145,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
กลุ่ม/หมวดหมู่
@@ -149,7 +154,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
คำสำคัญ
@@ -158,7 +163,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
ขนาดไฟล์
@@ -167,7 +172,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
ประเภทไฟล์
@@ -176,7 +181,7 @@ async function downloadSubmit(path: string | undefined) {
-
+
วันที่อัปโหลด