优化推送统一订单信息-playxId修改为用户名
This commit is contained in:
@@ -3,7 +3,7 @@ export default {
|
||||
manual_retry: 'Retry grant',
|
||||
retry_confirm: 'Queue this order for grant retry?',
|
||||
id: 'Order ID',
|
||||
user_id: 'User ID',
|
||||
user_id: 'Username',
|
||||
type: 'Type',
|
||||
'type BONUS': 'Bonus',
|
||||
'type PHYSICAL': 'Physical',
|
||||
|
||||
@@ -3,7 +3,7 @@ export default {
|
||||
manual_retry: '手动重试',
|
||||
retry_confirm: '确认将该订单加入重试队列?',
|
||||
id: 'ID',
|
||||
user_id: 'playX-ID',
|
||||
user_id: '用户名',
|
||||
type: '类型',
|
||||
'type BONUS': '红利(BONUS)',
|
||||
'type PHYSICAL': '实物(PHYSICAL)',
|
||||
|
||||
@@ -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