diff --git a/apps/admin/src/views/Artworks.vue b/apps/admin/src/views/Artworks.vue index abde040..7547bc5 100644 --- a/apps/admin/src/views/Artworks.vue +++ b/apps/admin/src/views/Artworks.vue @@ -102,7 +102,18 @@ const columns: DataTableColumns = [ { 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)),