feat(F006-W17.6): 用户列表数据列居中显示 (9 列加 align center, 余额保留 right)

This commit is contained in:
Sisyphus 2026-07-10 08:45:38 +08:00
parent ff4c9bc140
commit 15294f5c1c

View File

@ -53,20 +53,22 @@ const query = reactive({
})
const columns: any[] = [
{ type: 'selection', width: 50, fixed: 'left' },
{ prop: 'id', label: '用户ID', width: 100 },
{ prop: 'nickName', label: '用户昵称', minWidth: 160 },
{ prop: 'mobile', label: '手机号', width: 140 },
{ type: 'selection', width: 50, fixed: 'left', align: 'center' },
{ prop: 'id', label: '用户ID', width: 100, align: 'center' },
{ prop: 'nickName', label: '用户昵称', minWidth: 160, align: 'center' },
{ prop: 'mobile', label: '手机号', width: 140, align: 'center' },
{
prop: 'isEnterprise',
label: '是否企业认证',
width: 140,
align: 'center',
formatter: (row: FrontUser) => row.isEnterprise === 1 ? '是' : '否'
},
{
prop: 'enterpriseName',
label: '关联企业',
minWidth: 200,
align: 'center',
formatter: (row: FrontUser) => row.enterpriseName || '--'
},
{
@ -80,15 +82,17 @@ const columns: any[] = [
prop: 'enabled',
label: '禁用标识',
width: 110,
align: 'center',
slot: 'enabled'
},
{
prop: 'createDate',
label: '注册时间',
width: 180,
align: 'center',
formatter: (row: FrontUser) => fmtDate(row.createDate)
},
{ label: '操作', width: 140, slot: 'action', fixed: 'right' }
{ label: '操作', width: 140, slot: 'action', fixed: 'right', align: 'center' }
]
function fmtDate(ts: number | null | undefined) {