wjx 1 년 전
부모
커밋
ca4f58e5b6
1개의 변경된 파일16개의 추가작업 그리고 16개의 파일을 삭제
  1. 16 16
      src/pages/gameDataStatistics/order/tableConfig.tsx

+ 16 - 16
src/pages/gameDataStatistics/order/tableConfig.tsx

@@ -1,5 +1,5 @@
 import WidthEllipsis from "@/components/widthEllipsis"
-import { Statistic } from "antd"
+import { Badge, Statistic } from "antd"
 import React from "react"
 
 
@@ -35,11 +35,11 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '玩家注册渠道', dataIndex: 'agentId', label: '订单明细', align: 'center', width: 95, default: 8,
+                    title: '玩家注册渠道', dataIndex: 'agentId', label: '订单明细', align: 'center', width: 70, default: 8,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '玩家注册游戏', dataIndex: 'gameId', label: '订单明细', align: 'center', width: 95, default: 9,
+                    title: '玩家注册游戏', dataIndex: 'gameId', label: '订单明细', align: 'center', width: 70, default: 9,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
@@ -47,7 +47,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '玩家注册游戏应用类型', dataIndex: 'classify', label: '订单明细', align: 'center', width: 90, default: 11,
+                    title: '玩家注册游戏应用类型', dataIndex: 'classify', label: '订单明细', align: 'center', width: 75, default: 11,
                     render: (a: string) => {
                         if (a) {
                             let one = a.charAt(0)
@@ -67,7 +67,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     }
                 },
                 {
-                    title: '归因投放人员', dataIndex: 'zxPitcherName', label: '订单明细', align: 'center', width: 80, default: 12,
+                    title: '归因投放人员', dataIndex: 'zxPitcherName', label: '订单明细', align: 'center', width: 65, default: 12,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
@@ -75,15 +75,15 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '归因媒体', dataIndex: 'accountType', label: '订单明细', align: 'center', width: 85, default: 14,
+                    title: '归因媒体', dataIndex: 'accountType', label: '订单明细', align: 'center', width: 70, default: 14,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '归因广告', dataIndex: 'adId', label: '订单明细', align: 'center', width: 80, default: 15,
+                    title: '归因广告', dataIndex: 'adId', label: '订单明细', align: 'center', width: 70, default: 15,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '玩家充值游戏', dataIndex: 'orderGameId', label: '订单明细', align: 'center', width: 80, default: 16,
+                    title: '玩家充值游戏', dataIndex: 'orderGameId', label: '订单明细', align: 'center', width: 70, default: 16,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
@@ -111,11 +111,11 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '订单金额', dataIndex: 'amount', label: '订单明细', align: 'center', width: 95, default: 19,
+                    title: '订单金额', dataIndex: 'amount', label: '订单明细', align: 'center', width: 80, default: 19,
                     render: (a: any) => <Statistic value={a || 0} precision={2} />
                 },
                 {
-                    title: '订单实付金额', dataIndex: 'realAmount', label: '订单明细', align: 'center', width: 95, default: 20,
+                    title: '订单实付金额', dataIndex: 'realAmount', label: '订单明细', align: 'center', width: 80, default: 20,
                     render: (a: any) => <Statistic value={a || 0} precision={2} />
                 },
                 {
@@ -130,21 +130,21 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     title: '收款账户', dataIndex: 'payAccountId', label: '订单明细', align: 'center', width: 95, default: 23,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
-                { title: '游戏区服', dataIndex: 'serverName', label: '订单明细', align: 'center', width: 95, default: 24 },
+                { title: '游戏区服', dataIndex: 'serverName', label: '订单明细', align: 'center', width: 85, default: 24 },
                 {
-                    title: '游戏角色', dataIndex: 'roleName', label: '订单明细', align: 'center', width: 95, default: 25,
+                    title: '游戏角色', dataIndex: 'roleName', label: '订单明细', align: 'center', width: 85, default: 25,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '角色等级', dataIndex: 'roleLevel', label: '订单明细', align: 'center', width: 75, default: 26,
+                    title: '角色等级', dataIndex: 'roleLevel', label: '订单明细', align: 'center', width: 50, default: 26,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '角色VIP', dataIndex: 'roleVip', label: '订单明细', align: 'center', width: 75, default: 27,
+                    title: '角色VIP', dataIndex: 'roleVip', label: '订单明细', align: 'center', width: 45, default: 27,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
-                    title: '操作系统', dataIndex: 'os', label: '订单明细', align: 'center', width: 75, default: 28,
+                    title: '操作系统', dataIndex: 'os', label: '订单明细', align: 'center', width: 65, default: 28,
                     render: (a: string, b: any) => (<WidthEllipsis value={a} />)
                 },
                 {
@@ -158,7 +158,7 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                 {
                     title: '支付状态', dataIndex: 'orderStatus', label: '订单明细', align: 'center', width: 85, default: 31,
                     render: (a: string, b: any) => {
-                        return { '1': '待处理', '2': '成功', '3': '失败' }[a]
+                        return { '1': <Badge status="processing" text="待处理" />, '2': <Badge status="success" text="成功" />, '3': <Badge status="error" text="失败" /> }[a]
                     }
                 },
                 {