chore: จัดชิดซ้ายกับเพิ่มเจ้าของผลงาน
This commit is contained in:
parent
a1f2c45160
commit
f819910479
1 changed files with 25 additions and 4 deletions
|
|
@ -54,12 +54,20 @@ const columns: QTableProps['columns'] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'title',
|
name: 'title',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
label: 'ชื่อเรื่อง',
|
label: 'ชื่อเรื่อง',
|
||||||
field: 'title',
|
field: 'title',
|
||||||
style: 'width: 200px',
|
style: 'width: 200px',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'author',
|
||||||
|
align: 'left',
|
||||||
|
label: 'เจ้าของผลงาน',
|
||||||
|
field: 'author',
|
||||||
|
style: 'width: 200px',
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'fileType',
|
name: 'fileType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|
@ -75,6 +83,7 @@ const columns: QTableProps['columns'] = [
|
||||||
field: '',
|
field: '',
|
||||||
style: 'width: 20px',
|
style: 'width: 20px',
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
const socket = io(import.meta.env.VITE_API_HOST)
|
const socket = io(import.meta.env.VITE_API_HOST)
|
||||||
|
|
||||||
|
|
@ -262,17 +271,29 @@ onMounted(() => {
|
||||||
<file-icon
|
<file-icon
|
||||||
size="list"
|
size="list"
|
||||||
:fileMimeType="
|
:fileMimeType="
|
||||||
nameData.row.fileType ? nameData.row.fileType : 'unknow'
|
nameData.row.fileType ? nameData.row.fileType : 'unknown'
|
||||||
|
"
|
||||||
|
:fileName="
|
||||||
|
nameData.row.fileName ? nameData.row.fileName : 'unknown'
|
||||||
"
|
"
|
||||||
:fileName="nameData.row.fileName ? nameData.row.fileName : 'unknow'"
|
|
||||||
/>
|
/>
|
||||||
{{ nameData.row.fileName }}
|
{{ nameData.row.fileName }}
|
||||||
</q-td>
|
</q-td>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-slot:body-cell-title="data">
|
||||||
|
<q-td style="width: 50%" @click="() => getFileInfo(data.row)">
|
||||||
|
{{ data.row.metadata.subject ?? data.row.title }}
|
||||||
|
</q-td>
|
||||||
|
</template>
|
||||||
|
<template v-slot:body-cell-author="author">
|
||||||
|
<q-td style="width: 50%" @click="() => getFileInfo(author.row)">
|
||||||
|
{{ author.row.metadata.author ?? '-' }}
|
||||||
|
</q-td>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-slot:body-cell-fileType="typeData">
|
<template v-slot:body-cell-fileType="typeData">
|
||||||
<q-td>
|
<q-td>
|
||||||
<div class="justify-center">
|
<div>
|
||||||
{{ getType(typeData.row.fileType, typeData.row.fileName) }}
|
{{ getType(typeData.row.fileType, typeData.row.fileName) }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue