From 73821d4d2b7187678d8f4b6ebb53b8b22fe1fed7 Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Fri, 8 Dec 2023 10:29:44 +0700 Subject: [PATCH 1/2] fix: icon when process upload, refaceFile --- Services/client/src/components/FileItem.vue | 11 ++++++-- .../client/src/components/FileSearched.vue | 12 ++++---- Services/client/src/components/ListView.vue | 28 ++++++++++++++++++- .../01_user/components/FileDownload.vue | 4 +-- 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/Services/client/src/components/FileItem.vue b/Services/client/src/components/FileItem.vue index 3c2dd91..23d8e19 100644 --- a/Services/client/src/components/FileItem.vue +++ b/Services/client/src/components/FileItem.vue @@ -173,6 +173,13 @@ async function submitFileForm( }, value.file, ) + setTimeout(() => { + refaceFile(currentPath.value) + }, 3000) + + setTimeout(() => { + refaceFile(currentPath.value) + }, 10000) } fileFormData.value = {} fileFormState.value = false @@ -340,8 +347,8 @@ async function submitFileForm(
{ isActFoundFile.value = true - }, 300) + }, 400) } fileFormData.value = {} @@ -252,8 +252,8 @@ onMounted(() => {
{ {{ nameData.row.fileName }} diff --git a/Services/client/src/components/ListView.vue b/Services/client/src/components/ListView.vue index b1f05e8..1bf753c 100644 --- a/Services/client/src/components/ListView.vue +++ b/Services/client/src/components/ListView.vue @@ -22,6 +22,7 @@ const { updateFile, deleteFile, checkFile, + refaceFile, } = useTreeDataStore() const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const @@ -162,6 +163,14 @@ async function submitFileForm( keyword: value.keyword, category: value.category, }) + + setTimeout(() => { + refaceFile(currentPath.value) + }, 3000) + + setTimeout(() => { + refaceFile(currentPath.value) + }, 10000) } else { await updateFile( fileFormPath.value, @@ -173,6 +182,14 @@ async function submitFileForm( }, value.file, ) + + setTimeout(() => { + refaceFile(currentPath.value) + }, 3000) + + setTimeout(() => { + refaceFile(currentPath.value) + }, 10000) } fileFormData.value = {} fileFormState.value = false @@ -259,6 +276,7 @@ const onRowClick = (evt: Event, row: TreeDataFolder, index: number) => { diff --git a/Services/client/src/modules/01_user/components/FileDownload.vue b/Services/client/src/modules/01_user/components/FileDownload.vue index 7d1e19e..1320c9c 100644 --- a/Services/client/src/modules/01_user/components/FileDownload.vue +++ b/Services/client/src/modules/01_user/components/FileDownload.vue @@ -91,9 +91,9 @@ async function downloadSubmit(path: string | undefined) {
From e05545f017fe4591876788b5f7e04c49a4d7a61f Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Fri, 8 Dec 2023 10:30:28 +0700 Subject: [PATCH 2/2] fix: close search when click on top tree --- Services/client/src/components/PageLayout.vue | 1 + Services/client/src/views/MainLayout.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Services/client/src/components/PageLayout.vue b/Services/client/src/components/PageLayout.vue index b7e7669..8d30422 100644 --- a/Services/client/src/components/PageLayout.vue +++ b/Services/client/src/components/PageLayout.vue @@ -83,6 +83,7 @@ onMounted(async () => { () => { currentPath = '' getFolder(currentPath) + isSearch = false } " >ตู้จัดเก็บเอกสาร { currentPath = '' getFolder(currentPath) + isSearch = false } " >