diff --git a/Services/client/src/modules/01_user/components/AdvancedSearch.vue b/Services/client/src/modules/01_user/components/AdvancedSearch.vue index 5e5f3ca..0021992 100644 --- a/Services/client/src/modules/01_user/components/AdvancedSearch.vue +++ b/Services/client/src/modules/01_user/components/AdvancedSearch.vue @@ -17,19 +17,6 @@ const optionsOp = [ ] const props = defineProps<{ submitSearch: Function - submitSearchData: { - AND: { - field: string - value: string - exact?: boolean - }[] - OR: { - field: string - value: string - exact?: boolean - }[] - exact?: boolean - } }>() function addAdvSearchData() { diff --git a/Services/client/src/modules/01_user/components/FileDownload.vue b/Services/client/src/modules/01_user/components/FileDownload.vue index bffeb36..dfa2bca 100644 --- a/Services/client/src/modules/01_user/components/FileDownload.vue +++ b/Services/client/src/modules/01_user/components/FileDownload.vue @@ -145,6 +145,15 @@ async function downloadSubmit(path: string | undefined) { +
+
+ ผู้เขียน +
+
+ {{ fileInfo?.author }} +
+
+
กลุ่ม/หมวดหมู่ diff --git a/Services/client/src/modules/01_user/components/SearchBar.vue b/Services/client/src/modules/01_user/components/SearchBar.vue index 183edf6..e1c9df2 100644 --- a/Services/client/src/modules/01_user/components/SearchBar.vue +++ b/Services/client/src/modules/01_user/components/SearchBar.vue @@ -31,9 +31,18 @@ const optionsField = [ { label: 'หมวดหมู่ (category)', value: 'category' }, { label: 'เนื้อหาในไฟล์ (content)', value: 'attachment.content' }, ] -const submitSearchData = ref< - InstanceType['submitSearchData'] ->({ +const submitSearchData = ref<{ + AND: { + field: string + value: string + exact?: boolean + }[] + OR: { + field: string + value: string + exact?: boolean + }[] +}>({ AND: [], OR: [], }) @@ -211,7 +220,6 @@ watch(
diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 0c464d6..f5a0b8f 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -26,6 +26,8 @@ export interface StorageFile { fileType: string title: string description: string + author: string, + metadata: Record category: string[] keyword: string[] updatedAt: string @@ -439,9 +441,9 @@ const useStorage = defineStore('storageStore', () => { }, to: file?.name ? { - file: file.name, - path: arr, - } + file: file.name, + path: arr, + } : undefined, upload: !!file, },