wjx há 1 ano atrás
pai
commit
4cc8031c30

+ 3 - 3
src/pages/gameDataStatistics/components/TableData/index.tsx

@@ -1,7 +1,7 @@
 import CustomListModel from '@/components/CustomList'
 import Tables from '@/components/Tables'
 import { FullscreenExitOutlined, FullscreenOutlined, QuestionCircleOutlined, RedoOutlined, SearchOutlined, SettingOutlined } from '@ant-design/icons'
-import { useDebounceFn, useFullscreen, useThrottleFn, useUpdateEffect } from 'ahooks'
+import { useDebounceFn, useFullscreen, useThrottleFn } from 'ahooks'
 import { Button, Card, Col, Row, Space, Tag, Tooltip, } from 'antd'
 import React, { useEffect, useRef, useState, useCallback } from 'react'
 import style from './index.less'
@@ -60,7 +60,7 @@ interface Prosp {
 export const version = '1.0.0'
 
 function TableData(props: Prosp) {
-
+    console.log('--start--', new Date().getTime())
     /*************************/
     const { isZj, totalData, czChild, scroll, title, tips, dataSource, expandedRowRender, isVirtually = true, rowSelection, sortData, headerHeight, className, rowClassName, leftChild, page = undefined, pageSize = undefined, size = 'small', total = 0, onChange, config, configName, ajax, fixed = { left: 0, right: 1 }, summary, estimatedRowHeight } = props
     const [visible, setVisible] = useState<boolean>(false)
@@ -359,7 +359,7 @@ const Tab = React.memo((props: any) => {
             }
         }
     }, [isZj, ran])
-
+    console.log('--end--', new Date().getTime())
     return < Col span={24} >
         <div className={`${style[size]} ${className ? style[className] : ''} `}>
             {

+ 2 - 24
src/pages/gameDataStatistics/roleOperate/roleFightingRanking/tableConfig.tsx

@@ -232,14 +232,13 @@ function columns12() {
                             title: '角色攻击力',
                             dataIndex: 'combat_num',
                             key: 'combat_num',
-                            width: 65,
-                            align: 'center',
+                            width: 95,
                             className: "h5BiomassClass green2ColorClass",
                             render: (a: any, b: any) => {
                                 return <div className='h5BiomassTable'>
                                     {b?.role_rank_date?.map((item: any, index: number) => {
                                         return <div key={'cc' + index}>
-                                            <div><span>{item.combat_num}</span></div>
+                                            <div><span><Statistic value={item.combat_num || 0} /></span></div>
                                         </div>
                                     })}
                                 </div>
@@ -249,27 +248,6 @@ function columns12() {
                 }
             ]
         }
-        // {
-        //     label: '角色信息',
-        //     data: [
-        //         {
-        //             title: '角色排名', dataIndex: 'rank_num', label: '角色信息', align: 'center', width: 55, default: 9,
-        //             render: (a: string) => <Statistic value={a || 0} />
-        //         },
-        //         {
-        //             title: '角色名称', dataIndex: 'role_name', label: '区服信息', align: 'center', width: 80, default: 10,
-        //             render: (a: string, b: any) => (<WidthEllipsis value={a} />)
-        //         },
-        //         {
-        //             title: '角色等级', dataIndex: 'role_level', label: '角色信息', align: 'center', width: 70, default: 11,
-        //             render: (a: string) => <Statistic value={a || 0} />
-        //         },
-        //         {
-        //             title: '角色攻击力', dataIndex: 'combat_num', label: '角色信息', align: 'center', width: 85, default: 12,
-        //             render: (a: string) => <Statistic value={a || 0} />
-        //         },
-        //     ]
-        // },
     ]
 
     return newArr

+ 1 - 1
src/pages/gameDataStatistics/roleOperate/roleRechargeRanking/tableConfig.tsx

@@ -30,7 +30,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: '角色信息', align: 'center', width: 70, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
+                { title: '角色攻击力', dataIndex: 'combat_num', label: '角色信息', width: 95, render: (a: string, b: any) => (<Statistic value={a || 0} />) },
             ],
         },
         {