From 233cc9ad58cc5aaf7a7d88d076e3494dd6d902e5 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 13 Jul 2026 01:21:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=89=BA=E6=9C=AF=E5=93=81=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E5=88=97=E8=A1=A8=E8=BF=BD=E6=BA=AF=E7=A0=81=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=8F=AF=E7=82=B9=E5=87=BB=E8=BF=9B=E5=85=A5=E8=BF=BD?= =?UTF-8?q?=E6=BA=AF=E7=A0=81=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/views/Artworks.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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)),