diff --git a/Services/client/src/components/FileSearched.vue b/Services/client/src/components/FileSearched.vue index 5ce89ac..64efb29 100644 --- a/Services/client/src/components/FileSearched.vue +++ b/Services/client/src/components/FileSearched.vue @@ -54,12 +54,20 @@ const columns: QTableProps['columns'] = [ }, { name: 'title', - align: 'center', + align: 'left', label: 'ชื่อเรื่อง', field: 'title', style: 'width: 200px', sortable: true, }, + { + name: 'author', + align: 'left', + label: 'เจ้าของผลงาน', + field: 'author', + style: 'width: 200px', + sortable: true, + }, { name: 'fileType', align: 'center', @@ -75,6 +83,7 @@ const columns: QTableProps['columns'] = [ field: '', style: 'width: 20px', }, + ] const socket = io(import.meta.env.VITE_API_HOST) @@ -262,17 +271,29 @@ onMounted(() => { {{ nameData.row.fileName }} + + getFileInfo(data.row)"> + {{ data.row.metadata.subject ?? data.row.title }} + + + + getFileInfo(author.row)"> + {{ author.row.metadata.author ?? '-' }} + + - + {{ getType(typeData.row.fileType, typeData.row.fileName) }}