fix: 优化后台列表字段宽度
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
class="table-fill"
|
||||
flex-height
|
||||
remote
|
||||
:scroll-x="1320"
|
||||
:scroll-x="1480"
|
||||
:row-key="(r) => r.id"
|
||||
/>
|
||||
<div class="table-pagination">
|
||||
@@ -103,7 +103,7 @@ const canCommit = computed(() => session.value?.status === 'READY' && Number(ses
|
||||
const { pagination, page, pageSize, resetPage, setPageResult } = useTablePage(loadRows, 20);
|
||||
|
||||
const columns = computed<DataTableColumns<any>>(() => [
|
||||
{ title: '行号', key: 'rowNo', width: 80 },
|
||||
{ title: '行号', key: 'rowNo', width: 80, align: 'center' },
|
||||
{
|
||||
title: '状态',
|
||||
key: 'status',
|
||||
@@ -111,21 +111,22 @@ const columns = computed<DataTableColumns<any>>(() => [
|
||||
align: 'center',
|
||||
render: (row) => h(NTag, { size: 'small', type: row.status === 'VALID' || row.status === 'IMPORTED' ? 'success' : 'error' }, { default: () => row.status }),
|
||||
},
|
||||
{ title: '追溯短码', key: 'shortCode', width: 150, ellipsis: { tooltip: true } },
|
||||
{ title: '批次编号', key: 'batchNo', width: 180, ellipsis: { tooltip: true } },
|
||||
{ title: '出库时间', key: 'outTime', width: 170, render: (row) => fmt(row.outTime || row.preview?.outTime) },
|
||||
{ title: '追溯短码', key: 'shortCode', minWidth: 150, align: 'center', ellipsis: { tooltip: true } },
|
||||
{ title: '批次编号', key: 'batchNo', minWidth: 180, align: 'center', ellipsis: { tooltip: true } },
|
||||
{ title: '出库时间', key: 'outTime', width: 170, align: 'center', render: (row) => fmt(row.outTime || row.preview?.outTime) },
|
||||
{
|
||||
title: '出库实况图',
|
||||
key: 'images',
|
||||
width: 240,
|
||||
align: 'center',
|
||||
render: (row) => renderImages(row),
|
||||
},
|
||||
{ title: '上链哈希', key: 'txHash', width: 240, ellipsis: { tooltip: true } },
|
||||
{ title: '备注', key: 'remark', width: 180, ellipsis: { tooltip: true } },
|
||||
{ title: '上链哈希', key: 'txHash', minWidth: 260, ellipsis: { tooltip: true } },
|
||||
{ title: '备注', key: 'remark', minWidth: 220, ellipsis: { tooltip: true } },
|
||||
{
|
||||
title: '错误原因',
|
||||
key: 'reason',
|
||||
minWidth: 260,
|
||||
minWidth: 300,
|
||||
ellipsis: { tooltip: true },
|
||||
render: (row) => row.reason || h(NText, { depth: 3 }, { default: () => '-' }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user