Commit 454682dd authored by nick zheng's avatar nick zheng

chore: 知识库文件列表表格间距

parent d2ebe65d
...@@ -126,7 +126,7 @@ export function createKnowledgeDocumentColumn( ...@@ -126,7 +126,7 @@ export function createKnowledgeDocumentColumn(
ellipsis: { ellipsis: {
tooltip: true, tooltip: true,
}, },
width: 190, width: 316,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return row.documentName || '--' return row.documentName || '--'
}, },
...@@ -138,7 +138,7 @@ export function createKnowledgeDocumentColumn( ...@@ -138,7 +138,7 @@ export function createKnowledgeDocumentColumn(
ellipsis: { ellipsis: {
tooltip: true, tooltip: true,
}, },
width: 330, width: 222,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return `${row.charCount || 0}` + t('common_module.char') return `${row.charCount || 0}` + t('common_module.char')
}, },
...@@ -150,7 +150,7 @@ export function createKnowledgeDocumentColumn( ...@@ -150,7 +150,7 @@ export function createKnowledgeDocumentColumn(
ellipsis: { ellipsis: {
tooltip: true, tooltip: true,
}, },
width: 220, width: 236,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return row.documentName.split('.')[1].toUpperCase() || '--' return row.documentName.split('.')[1].toUpperCase() || '--'
}, },
...@@ -162,7 +162,7 @@ export function createKnowledgeDocumentColumn( ...@@ -162,7 +162,7 @@ export function createKnowledgeDocumentColumn(
ellipsis: { ellipsis: {
tooltip: true, tooltip: true,
}, },
width: 300, width: 250,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return formatDateTime(row.uploadTime) || '--' return formatDateTime(row.uploadTime) || '--'
}, },
...@@ -171,7 +171,7 @@ export function createKnowledgeDocumentColumn( ...@@ -171,7 +171,7 @@ export function createKnowledgeDocumentColumn(
title: () => <span>{t('common_module.is_open')}</span>, title: () => <span>{t('common_module.is_open')}</span>,
key: 'trainStatus', key: 'trainStatus',
align: 'left', align: 'left',
width: 180, width: 224,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
const trainStatusMap = { const trainStatusMap = {
Unopened: { text: 'common_module.studying', color: '#0B7DFF' }, Unopened: { text: 'common_module.studying', color: '#0B7DFF' },
...@@ -201,7 +201,7 @@ export function createKnowledgeDocumentColumn( ...@@ -201,7 +201,7 @@ export function createKnowledgeDocumentColumn(
title: () => <span>{t('common_module.data_table_module.action')}</span>, title: () => <span>{t('common_module.data_table_module.action')}</span>,
key: 'action', key: 'action',
align: 'left', align: 'left',
width: 250, width: 273,
fixed: 'right', fixed: 'right',
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return ( return (
......
...@@ -254,7 +254,7 @@ function handleBackKnowledgeList() { ...@@ -254,7 +254,7 @@ function handleBackKnowledgeList() {
:data="knowledgeDocumentList" :data="knowledgeDocumentList"
:row-key="(row: KnowledgeDocumentItem) => row.kdId" :row-key="(row: KnowledgeDocumentItem) => row.kdId"
:max-height="tableContentY" :max-height="tableContentY"
:scroll-x="1526" :scroll-x="1558"
:checked-row-keys="checkedKdIdList" :checked-row-keys="checkedKdIdList"
@update:checked-row-keys="handleUpdateCheckedKdId" @update:checked-row-keys="handleUpdateCheckedKdId"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment