feat: 艺术品档案列表追溯码数量可点击进入追溯码管理页

This commit is contained in:
Nixevol
2026-07-13 01:21:50 +08:00
parent 0b49caec00
commit 233cc9ad58
+12 -1
View File
@@ -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)),