improve order display

This commit is contained in:
2024-06-13 18:58:51 +08:00
parent 06b55b0b22
commit eedb77b636
2 changed files with 40 additions and 0 deletions

View File

@@ -98,6 +98,30 @@ const orderColumn: DataTableColumns<ResponsePointOrder2UserModel | ResponsePoint
title: '订单号',
key: 'id',
},
{
title: '用户',
key: 'user',
disabled: () => props.type == 'user',
render: (row: ResponsePointOrder2UserModel | ResponsePointOrder2OwnerModel) => {
return row.instanceOf == 'user'
? ''
: h(NTooltip, null, {
trigger: () =>
h(
NButton,
{
text: true,
type: 'primary',
tag: 'a',
href: 'https://space.bilibili.com/' + row.customer.userId + '',
target: '_blank',
},
{ default: () => row.customer.name },
),
default: () => row.customer.userId,
})
},
},
{
title: '礼物名',
key: 'giftName',