feat: 完善追溯码出库上链管理
This commit is contained in:
@@ -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' }, [
|
||||
|
||||
Reference in New Issue
Block a user