import WidthEllipsis from "@/components/widthEllipsis" import { Statistic } from "antd" import classNames from "classnames" import React from "react" function columns12() { const roiC = Array(29).fill('').map((_item: string, index: number) => { let data = { title: `${index + 2}日ROI`, dataIndex: `roi${index + 2}`, label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> } index++; return data }) let newArr: { label: string, data: any[] }[] = [ { label: '基本信息', data: [ { title: '投手', dataIndex: 'pitcher', label: '基本信息', align: 'center', width: 95, default: 1, render: (a: string, b: any) => () }, { title: '消耗', dataIndex: 'cost', label: '基本信息', align: 'center', width: 70, default: 2, sorter: true, render: (a: string) => }, { title: '推广账号数量', dataIndex: 'accountCount', label: '基本信息', align: 'center', width: 80, sorter: true, render: (a: string) => }, { title: '推广渠道数量', dataIndex: 'agentCount', label: '基本信息', align: 'center', width: 70, sorter: true, render: (a: string) => }, // { // title: '推广游戏数量', dataIndex: 'cost', label: '基本信息', align: 'center', width: 90, sorter: true, // }, { title: '推广计划数量', dataIndex: 'planCount', label: '基本信息', align: 'center', width: 70, sorter: true, render: (a: string) => } ] }, { label: '用户数据', data: [ { title: '注册人数', dataIndex: 'registerNum', label: '用户数据', align: 'center', width: 70, sorter: true, default: 3, render: (a: string) => }, { title: '注册成本', dataIndex: 'registerCost', label: '用户数据', align: 'center', width: 70, sorter: true, default: 4, render: (a: string) => }, // { // title: '活跃用户人数', dataIndex: 'clickRate', label: '用户数据', align: 'center', width: 80, sorter: true, // render: (a: number) => = 100 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> // }, { title: '创角人数', dataIndex: 'roleNum', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '首日创角人数', dataIndex: 'firstRoleNum', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户累计创角人数', dataIndex: 'newUserTotalRoleNum', label: '用户数据', align: 'center', width: 100, sorter: true, render: (a: string) => }, { title: '首日创角成本', dataIndex: 'firstRoleCost', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户累计创角成本', dataIndex: 'newUserTotalRoleCost', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, // { // title: '创角量', dataIndex: 'roleNum', label: '用户数据', align: 'center', width: 70, sorter: true, // render: (a: string) => // }, // { // title: '首日创角量', dataIndex: 'firstRoleNum', label: '用户数据', align: 'center', width: 70, sorter: true, // render: (a: string) => // }, // { // title: '新用户累计创角量', dataIndex: 'newUserTotalRoleNum', label: '用户数据', align: 'center', width: 70, sorter: true, // render: (a: string) => // }, // { // title: '新用户累计有效创角量', dataIndex: 'totalAmount', label: '用户数据', align: 'center', width: 70, sorter: true, // }, { title: '首日创角率', dataIndex: 'firstRoleRate', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 50 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '新用户创角率', dataIndex: 'newUserTotalRoleRate', label: '用户数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 50 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> } ] }, { label: '付费数据', data: [ { title: '新用户充值次数', dataIndex: 'newUserAmountCount', label: '付费数据', align: 'center', width: 90, render: (a: string) => }, { title: '新用户充值人数', dataIndex: 'newUserAmountNum', label: '付费数据', align: 'center', width: 100, sorter: true, default: 5, render: (a: string) => }, { title: '新用户充值金额', dataIndex: 'newUserAmount', label: '付费数据', align: 'center', default: 6, children: [ { title: '总', dataIndex: 'newUserAmount', key: 'newUserAmount', align: 'right', width: 70, className: 'adDataBackColorClass', render: (a: string) => }, { title: '支付宝', dataIndex: 'alipayAmount', key: 'alipayAmount', align: 'right', width: 80, className: 'payDataBackColorClass', render: (a: string) => }, { title: '微信', dataIndex: 'wxAmount', key: 'wxAmount', align: 'right', width: 70, className: 'payDataBackColorClass', render: (a: string) => }, { title: '米大师', dataIndex: 'miMasterAmount', key: 'miMasterAmount', align: 'right', width: 80, className: 'payDataBackColorClass', render: (a: string) => } ] }, { title: '首日新用户充值次数', dataIndex: 'firstNewUserAmountCount', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '首日新用户充值人数', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 7, render: (a: string) => }, { title: '首日新用户充值金额', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 8, render: (a: string) => }, { title: '老用户充值次数', dataIndex: 'oldAmountCount', label: '付费数据', align: 'center', width: 70, render: (a: string) => }, { title: '老用户充值人数', dataIndex: 'oldAmountNum', label: '付费数据', align: 'center', width: 70, render: (a: string) => }, { title: '老用户充值金额', dataIndex: 'oldAmount', label: '付费数据', align: 'center', width: 70, render: (a: string) => }, { title: '账面充值次数', dataIndex: 'amountCount', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '账面充值人数', dataIndex: 'amountNum', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '账面充值金额', dataIndex: 'amount', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户累计充值次数', dataIndex: 'buyNewUserTotalAmountCount', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户累计充值人数', dataIndex: 'buyNewUserTotalAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 9, render: (a: string) => }, { title: '新用户累计充值金额', dataIndex: 'buyNewUserTotalAmount', label: '付费数据', align: 'center', default: 10, children: [ { title: '总', dataIndex: 'buyNewUserTotalAmount', key: 'buyNewUserTotalAmount', align: 'right', width: 70, className: 'adDataBackColorClass', render: (a: string) => }, { title: '支付宝累计', dataIndex: 'newUserTotalZfbAmount', key: 'newUserTotalZfbAmount', align: 'right', width: 80, className: 'payDataBackColorClass', render: (a: string) => }, { title: '微信累计', dataIndex: 'newUserTotalWxAmount', key: 'newUserTotalWxAmount', align: 'right', width: 70, className: 'payDataBackColorClass', render: (a: string) => }, { title: '米大师累计', dataIndex: 'newUserTotalMdsAmount', key: 'newUserTotalMdsAmount', align: 'right', width: 80, className: 'payDataBackColorClass', render: (a: string) => } ] }, { title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 12, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '新用户回收率', dataIndex: 'newUserRoi', label: '付费数据', align: 'center', width: 70, default: 11, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '至今回收率', dataIndex: 'todayRoi', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '毛利额', dataIndex: 'grossProfit', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => }, ...roiC, { title: '60日ROI', dataIndex: 'roi60', label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 0.9 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '90日ROI', dataIndex: 'roi90', label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '180日ROI', dataIndex: 'roi180', label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '1年ROI', dataIndex: 'roi1yaer', label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '总ROI', dataIndex: 'todayRoi', label: '付费数据', align: 'center', width: 80, default: 13, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '首日付费率', dataIndex: 'firstRate', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '新用户付费率', dataIndex: 'newUserAmountRate', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '至今付费率', tips: '至今付费率=新用户累计充值人数/注册人数', dataIndex: 'todayRate', label: '付费数据', align: 'center', width: 80, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '新用户付费比', dataIndex: 'newUserAmountRatio', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, // { // title: '活跃用户付费率', dataIndex: 'newUserRate1', label: '付费数据', align: 'center', width: 70, sorter: true, // render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> // }, { title: '首日客单价', dataIndex: 'firstAvg', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户客单价', dataIndex: 'newUserAvg', label: '付费数据', align: 'center', width: 70, render: (a: string) => }, { title: '账面客单价', dataIndex: 'paperAvg', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '首日充值成本', dataIndex: 'firstAmountCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 15, render: (a: string) => }, { title: '新用户充值成本', dataIndex: 'newUserAmountCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 14, render: (a: string) => }, { title: '至今充值成本', dataIndex: 'todayAmountCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 16, render: (a: string) => }, { title: '新用户复充率', dataIndex: 'newUserAgainRate', label: '付费数据', align: 'center', width: 70, sorter: true, default: 17, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, { title: '至今复充率', dataIndex: 'todayAgainRate', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> }, // { // title: '平均活跃付费率', dataIndex: 'newUserRate4', label: '付费数据', align: 'center', width: 70, sorter: true, // render: (a: number) => = 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" /> // }, { title: '新增注册ARPPU', dataIndex: 'newRegArpu', label: '付费数据', align: 'center', width: 70, sorter: true, default: 18, render: (a: string) => }, // { // title: '活跃ARPPU', dataIndex: 'regUserArpu1', label: '付费数据', align: 'center', width: 70, sorter: true, // render: (a: string) => // }, { title: '首日付费ARPPU', dataIndex: 'firstArpu', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '新用户付费ARPPU', dataIndex: 'newUserArpu', label: '付费数据', align: 'center', width: 70, render: (a: string) => }, { title: '至今付费ARPPU', dataIndex: 'todayArpu', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => }, { title: '账面ARPPU', dataIndex: 'paperArpu', label: '付费数据', align: 'center', width: 70, sorter: true, render: (a: string) => } ] } ] return newArr } export default columns12