mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
improve order display
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user