|
@@ -23,6 +23,7 @@ function columns12(
|
|
|
label: '角色信息',
|
|
|
data: [
|
|
|
{ title: '游戏', dataIndex: 'role_reg_parent_game_name', label: '角色信息', align: 'center', width: 70, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
+ { title: '原始区服名', dataIndex: 'source_server_name', label: '玩家信息', align: 'center', width: 90, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '游戏区服', dataIndex: 'server_name', label: '玩家信息', align: 'center', width: 90, default: 4, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '区服ID', dataIndex: 'server_id', label: '角色信息', align: 'center', width: 70, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '角色名称', dataIndex: 'role_name', label: '角色信息', align: 'center', width: 90, default: 2, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
@@ -30,7 +31,7 @@ function columns12(
|
|
|
{ title: '角色创建时间', dataIndex: 'role_create_time', label: '角色信息', align: 'center', width: 140, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '角色VIP等级', dataIndex: 'vip_level', label: '角色信息', align: 'center', width: 60, default: 3, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
{ title: '角色等级', dataIndex: 'role_level', label: '角色信息', align: 'center', width: 65, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
|
|
|
- { title: '角色攻击力', dataIndex: 'combat_num', label: '角色信息', width: 95, align: 'right', render: (a: string, b: any) => (<Statistic value={a || 0} />) },
|
|
|
+ { title: '角色攻击力', dataIndex: 'combat_num', label: '角色信息', width: 95, align: 'right', sorter: true, render: (a: string, b: any) => (<Statistic value={a || 0} />) },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -174,6 +175,27 @@ function columns12(
|
|
|
return diff ? <span style={Math.floor((diff / 1000) / (3600 * 24)) > 1 ? { color: 'red' } : {}}><WidthEllipsis value={secondsToDhms(diff / 1000)} /></span> : '--'
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '角色最近活跃距今',
|
|
|
+ dataIndex: 'roleActiveTimeDiff',
|
|
|
+ align: 'center',
|
|
|
+ label: '角色充值信息',
|
|
|
+ width: 130,
|
|
|
+ render: (a: string, b: any) => {
|
|
|
+ let diff = 0
|
|
|
+ if (b.role_active_time) {
|
|
|
+ diff = new Date().getTime() - new Date(b.role_active_time).getTime()
|
|
|
+ }
|
|
|
+ function secondsToDhms(seconds: any) {
|
|
|
+ const days = Math.floor(seconds / (3600 * 24));
|
|
|
+ const hours = Math.floor((seconds % (3600 * 24)) / 3600);
|
|
|
+ const minutes = Math.floor((seconds % 3600) / 60);
|
|
|
+ const remainingSeconds = seconds % 60;
|
|
|
+ return `${days ? days + "天" : ''}${hours ? hours + "小时" : ''}${minutes ? minutes + "分" : ''}${remainingSeconds ? remainingSeconds.toFixed(0) + "秒" : ''}`
|
|
|
+ }
|
|
|
+ return diff ? <span style={Math.floor((diff / 1000) / (3600 * 24)) > 1 ? { color: 'red' } : {}}><WidthEllipsis value={secondsToDhms(diff / 1000)} /></span> : '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|