Merge branch 'phatt' into development

This commit is contained in:
puri-ph4tt 2023-12-26 15:06:29 +07:00
commit 9e574450e2
4 changed files with 26 additions and 20 deletions

View file

@ -17,19 +17,6 @@ const optionsOp = [
] ]
const props = defineProps<{ const props = defineProps<{
submitSearch: Function submitSearch: Function
submitSearchData: {
AND: {
field: string
value: string
exact?: boolean
}[]
OR: {
field: string
value: string
exact?: boolean
}[]
exact?: boolean
}
}>() }>()
function addAdvSearchData() { function addAdvSearchData() {

View file

@ -145,6 +145,15 @@ async function downloadSubmit(path: string | undefined) {
</div> </div>
</div> </div>
<q-separator /> <q-separator />
<div class="row">
<div class="col-12 col-md-3">
<span>เขยน</span>
</div>
<div class="col-grow">
<span class="text-grey">{{ fileInfo?.author }}</span>
</div>
</div>
<q-separator />
<div class="row"> <div class="row">
<div class="col-12 col-md-3"> <div class="col-12 col-md-3">
<span>กล/หมวดหม</span> <span>กล/หมวดหม</span>

View file

@ -31,9 +31,18 @@ const optionsField = [
{ label: 'หมวดหมู่ (category)', value: 'category' }, { label: 'หมวดหมู่ (category)', value: 'category' },
{ label: 'เนื้อหาในไฟล์ (content)', value: 'attachment.content' }, { label: 'เนื้อหาในไฟล์ (content)', value: 'attachment.content' },
] ]
const submitSearchData = ref< const submitSearchData = ref<{
InstanceType<typeof AdvancedSearch>['submitSearchData'] AND: {
>({ field: string
value: string
exact?: boolean
}[]
OR: {
field: string
value: string
exact?: boolean
}[]
}>({
AND: [], AND: [],
OR: [], OR: [],
}) })
@ -211,7 +220,6 @@ watch(
<div class="col-grow"> <div class="col-grow">
<advanced-search <advanced-search
:submitSearch="submitSearch" :submitSearch="submitSearch"
:submit-search-data="submitSearchData"
/> />
</div> </div>
<div v-if="isAdvSearchCall === false"> <div v-if="isAdvSearchCall === false">

View file

@ -26,6 +26,8 @@ export interface StorageFile {
fileType: string fileType: string
title: string title: string
description: string description: string
author: string,
metadata: Record<string, unknown>
category: string[] category: string[]
keyword: string[] keyword: string[]
updatedAt: string updatedAt: string
@ -439,9 +441,9 @@ const useStorage = defineStore('storageStore', () => {
}, },
to: file?.name to: file?.name
? { ? {
file: file.name, file: file.name,
path: arr, path: arr,
} }
: undefined, : undefined,
upload: !!file, upload: !!file,
}, },