优化推送统一订单信息-playxId修改为用户名
This commit is contained in:
@@ -60,6 +60,17 @@ const baTable = new baTableClass(
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
sortable: false,
|
||||
operator: 'LIKE',
|
||||
formatter: (row: TableRow, _column: TableColumn, cellValue: string) => {
|
||||
const r = row as Record<string, unknown>
|
||||
const rel = r.mallUserAsset ?? r.mall_user_asset
|
||||
if (rel && typeof rel === 'object' && 'username' in rel) {
|
||||
const u = (rel as { username?: unknown }).username
|
||||
if (typeof u === 'string' && u.trim() !== '') {
|
||||
return u
|
||||
}
|
||||
}
|
||||
return (cellValue ?? row.user_id ?? '').toString()
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t('mall.order.type'),
|
||||
|
||||
Reference in New Issue
Block a user