feat: 完善追溯码出库上链管理

This commit is contained in:
Nixevol
2026-07-04 06:04:46 +08:00
parent a1120848e9
commit cfce2d9a75
16 changed files with 457 additions and 46 deletions
+6 -1
View File
@@ -27,6 +27,7 @@
class="table-fill"
flex-height
remote
:scroll-x="1080"
:row-key="(r) => r.id"
/>
<div class="table-pagination">
@@ -129,10 +130,12 @@ const rules: FormRules = { name: { required: true, message: () => t('pages.templ
const columns: DataTableColumns<any> = [
{ title: 'ID', key: 'id', width: 70 },
{ title: () => t('pages.template.name'), key: 'name' },
{ title: () => t('pages.template.name'), key: 'name', width: 180, ellipsis: { tooltip: true } },
{
title: () => t('pages.template.fields'),
key: 'fields',
width: 340,
ellipsis: { tooltip: true },
render: (r) => (r.fields || []).map((f: any) => f.label).join('、') || '-',
},
{
@@ -147,6 +150,8 @@ const columns: DataTableColumns<any> = [
title: () => t('common.label.operation'),
key: 'ops',
width: 130,
fixed: 'right',
align: 'center',
render: (r) =>
auth.canWrite
? h('div', { style: 'display:flex;gap:4px' }, [