feat: 完善追溯码出库上链管理
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
class="table-fill"
|
||||
flex-height
|
||||
remote
|
||||
:scroll-x="980"
|
||||
:row-key="(r) => r.id"
|
||||
/>
|
||||
<div class="table-pagination">
|
||||
@@ -100,8 +101,8 @@ const pwdUserId = ref<number | null>(null);
|
||||
|
||||
const columns: DataTableColumns<any> = [
|
||||
{ title: 'ID', key: 'id', width: 64 },
|
||||
{ title: () => t('pages.user.username'), key: 'username' },
|
||||
{ title: () => t('pages.user.realName'), key: 'realName', render: (r) => r.realName || '-' },
|
||||
{ title: () => t('pages.user.username'), key: 'username', width: 160, ellipsis: { tooltip: true } },
|
||||
{ title: () => t('pages.user.realName'), key: 'realName', width: 160, ellipsis: { tooltip: true }, render: (r) => r.realName || '-' },
|
||||
{ title: () => t('pages.user.role'), key: 'role', width: 120, render: (r) => t(`common.role.${r.role}`) },
|
||||
{
|
||||
title: () => t('common.label.status'),
|
||||
@@ -114,6 +115,8 @@ const columns: DataTableColumns<any> = [
|
||||
title: () => t('common.label.operation'),
|
||||
key: 'ops',
|
||||
width: 140,
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
render: (r) =>
|
||||
h('div', { style: 'display:flex;gap:2px' }, [
|
||||
h(NButton, { quaternary: true, circle: true, size: 'small', onClick: () => openEdit(r) }, { icon: () => h(NIcon, null, { default: () => h(CreateOutline) }) }),
|
||||
|
||||
Reference in New Issue
Block a user