feat: 艺术品档案列表追溯码数量可点击进入追溯码管理页
This commit is contained in:
@@ -102,7 +102,18 @@ const columns: DataTableColumns<any> = [
|
||||
{ title: () => t('pages.artwork.title'), key: 'title', minWidth: 220, ellipsis: { tooltip: true } },
|
||||
{ title: () => t('pages.artwork.artist'), key: 'artist', minWidth: 130, ellipsis: { tooltip: true }, render: (r) => r.artist || '-' },
|
||||
{ title: () => t('pages.artwork.template'), key: 'template', minWidth: 150, ellipsis: { tooltip: true }, render: (r) => r.template?.name || '-' },
|
||||
{ title: () => t('pages.artwork.codeCount'), key: 'codeCount', width: 100, align: 'center', render: (r) => r.codeCount ?? 0 },
|
||||
{
|
||||
title: () => t('pages.artwork.codeCount'),
|
||||
key: 'codeCount',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
render: (r) =>
|
||||
h(
|
||||
NButton,
|
||||
{ text: true, type: 'primary', title: t('pages.artwork.dataManage'), onClick: () => router.push(`/artworks/${r.id}/trace-codes`) },
|
||||
{ default: () => String(r.codeCount ?? 0) },
|
||||
),
|
||||
},
|
||||
{ title: () => t('pages.artwork.queryTotal'), key: 'queryTotal', width: 100, align: 'center', render: (r) => r.queryTotal ?? 0 },
|
||||
{
|
||||
title: () => renderTableFilterTitle(t('common.label.status'), query.status, statusOptions, (value) => setFilter('status', value)),
|
||||
|
||||
Reference in New Issue
Block a user