|
@@ -1,6 +1,7 @@
|
|
|
import WidthEllipsis from "@/components/widthEllipsis"
|
|
|
import { Statistic } from "antd"
|
|
|
import React from "react"
|
|
|
+import LookRoleDetails from "./lookRoleDetails"
|
|
|
|
|
|
function columns12() {
|
|
|
|
|
@@ -9,7 +10,7 @@ function columns12() {
|
|
|
label: '玩家列表',
|
|
|
data: [
|
|
|
{
|
|
|
- title: '玩家ID', dataIndex: 'userId', label: '玩家列表', align: 'center', default: 1, width: 55,
|
|
|
+ title: '玩家ID', dataIndex: 'userId', label: '玩家列表', align: 'center', default: 1, width: 66,
|
|
|
render: (a: string, b: any) => {
|
|
|
if (b?.zj) {
|
|
|
return b?.zj
|
|
@@ -36,7 +37,7 @@ function columns12() {
|
|
|
{ title: '角色VIP', dataIndex: 'roleVipLevel', label: '玩家列表', align: 'center', width: 60, default: 17, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '操作系统', dataIndex: 'os', label: '玩家列表', align: 'center', width: 65, default: 18, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '国家', dataIndex: 'country', label: '玩家列表', align: 'center', width: 70, default: 19, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
- { title: '充值金额', dataIndex: 'rechargeMoney', label: '玩家列表', align: 'center', width: 80, default: 20, render: (a: string, b: any) => (<Statistic value={a || 0} />) },
|
|
|
+ { title: '充值金额', dataIndex: 'rechargeMoney', label: '玩家列表', align: 'center', width: 99, default: 20, render: (a: string, b: any) => (<Statistic value={a || 0} />) },
|
|
|
{ title: '充值次数', dataIndex: 'rechargeCount', label: '玩家列表', align: 'center', width: 60, default: 21, render: (a: string, b: any) => (<Statistic value={a || 0} />) },
|
|
|
{ title: '游戏角色创建时间', dataIndex: 'createTime', label: '玩家列表', align: 'center', width: 140, default: 22, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '最近登录时间', dataIndex: 'lastLoginTime', label: '玩家列表', align: 'center', width: 140, default: 23, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
@@ -62,7 +63,25 @@ function columns12() {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
+ {
|
|
|
+ label: '操作',
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'cz',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ label: '操作',
|
|
|
+ default: 27,
|
|
|
+ render: (_: any, b: any) => {
|
|
|
+ if (b?.zj) {
|
|
|
+ return '--'
|
|
|
+ }
|
|
|
+ return <LookRoleDetails userId={b.userId} />
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
return newArr
|