tableConfigDay.tsx 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. import { TYPE, gameClassifyEnum } from "@/components/QueryForm/const"
  2. import WidthEllipsis from "@/components/widthEllipsis"
  3. import { Statistic } from "antd"
  4. import React from "react"
  5. import { ADSTATUSEnum, LANDINGTYPEEnum, PRICINGEnum } from './const'
  6. import './index.less'
  7. function columns12(): { label: string, fieldSHow?: { label: string, saveField: string, defaultValue: any[], data: any[] }, data: any[] }[] {
  8. const data = [{ lable: '次日', value: 2 }, { lable: 'D3', value: 3 }, { lable: 'D7', value: 7 }, { lable: 'D15', value: 15 }]
  9. let date = data.map(item => {
  10. let field = `d${item.value}Trend`
  11. return {
  12. title: item.lable,
  13. dataIndex: `D${item.value}`,
  14. label: '付费数据',
  15. align: 'center',
  16. width: 85,
  17. className: 'payDataBackColorClass',
  18. children: [
  19. {
  20. title: 'ROI',
  21. dataIndex: 'roi',
  22. key: 'roi',
  23. width: 60,
  24. align: 'center',
  25. render: (_: any, b: any) => {
  26. let data: any = {}
  27. if (b?.[field]) {
  28. data = b?.[field]
  29. return <Statistic value={data?.roi ? data?.roi * 100 : 0} precision={2} valueStyle={!data?.roi ? {} : data?.roi >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  30. }
  31. return '--'
  32. }
  33. },
  34. {
  35. title: '付费',
  36. dataIndex: 'rechargeMoney',
  37. key: 'rechargeMoney',
  38. width: 60,
  39. align: 'center',
  40. render: (_: any, b: any) => {
  41. let data: any = {}
  42. if (b?.[field]) {
  43. data = b?.[field]
  44. return <Statistic value={data?.rechargeMoney || 0} />
  45. }
  46. return '--'
  47. }
  48. },
  49. {
  50. title: '倍数',
  51. dataIndex: 'multiples',
  52. key: 'multiples',
  53. width: 40,
  54. align: 'center',
  55. render: (_: any, b: any) => {
  56. let data: any = {}
  57. if (b?.[field]) {
  58. data = b?.[field]
  59. return <span>{data?.multiples || 0}</span>
  60. }
  61. return '--'
  62. }
  63. },
  64. ]
  65. }
  66. })
  67. return [
  68. {
  69. label: '时间',
  70. data: [
  71. {
  72. title: '日期', dataIndex: 'dt', label: '时间', align: 'center', width: 100, default: 1,
  73. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  74. }
  75. ]
  76. },
  77. {
  78. label: '账户信息',
  79. data: [
  80. {
  81. title: '推广账号名称', dataIndex: 'accountName', label: '账户信息', align: 'center', width: 100, default: 2,
  82. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  83. },
  84. {
  85. title: '推广账号ID', dataIndex: 'accountId', label: '账户信息', align: 'center', width: 120, default: 3,
  86. render: (a: string, b: any) => (<WidthEllipsis isCopy value={a} />)
  87. },
  88. {
  89. title: '备注', dataIndex: 'notes', label: '账户信息', align: 'center', width: 120,
  90. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  91. },
  92. {
  93. title: '投手', dataIndex: 'pitcherName', label: '账户信息', align: 'center', width: 70,
  94. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  95. },
  96. {
  97. title: '投放渠道', dataIndex: 'agentName', label: '账户信息', align: 'center', width: 75, default: 4,
  98. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  99. },
  100. {
  101. title: '服务商', dataIndex: 'service', label: '账户信息', align: 'center', width: 95,
  102. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  103. },
  104. {
  105. title: '投放媒体', dataIndex: 'accountType', label: '账户信息', align: 'center', width: 70,
  106. render: (a: string, b: any) => (<WidthEllipsis value={TYPE[a]} />)
  107. },
  108. {
  109. title: '余额', dataIndex: 'balance', label: '账户信息', align: 'center', width: 70, sorter: true,
  110. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  111. }
  112. ]
  113. },
  114. {
  115. label: '推广内容',
  116. data: [
  117. {
  118. title: '推广游戏名称', dataIndex: 'gameName', label: '推广内容', align: 'center', width: 70,
  119. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  120. },
  121. {
  122. title: '推广游戏应用类型', dataIndex: 'classify', label: '推广内容', align: 'center', width: 95,
  123. render: (a: string) => (<span>{gameClassifyEnum[a]}</span>)
  124. }
  125. ]
  126. },
  127. {
  128. label: '广告信息',
  129. data: [
  130. {
  131. title: '推广广告名称', dataIndex: 'promotionName', label: '广告信息', align: 'center', width: 130, default: 5,
  132. render: (a: string, b: any) => (<WidthEllipsis isCopy value={a} />)
  133. },
  134. {
  135. title: '广告ID', dataIndex: 'promotionId', label: '广告信息', align: 'center', width: 90, default: 6,
  136. render: (a: string, b: any) => (<WidthEllipsis isCopy value={a} />)
  137. },
  138. {
  139. title: '项目名称', dataIndex: 'projectName', label: '广告信息', align: 'center', width: 130,
  140. render: (a: string, b: any) => (<WidthEllipsis isCopy value={a} />)
  141. },
  142. {
  143. title: '项目ID', dataIndex: 'projectId', label: '广告信息', align: 'center', width: 90,
  144. render: (a: string, b: any) => (<WidthEllipsis isCopy value={a} />)
  145. },
  146. {
  147. title: '广告状态', dataIndex: 'status', label: '广告信息', align: 'left', width: 120, default: 7,
  148. render: (a: string, b: any) => (<WidthEllipsis value={ADSTATUSEnum[a]} />)
  149. },
  150. {
  151. title: '推广目标', dataIndex: 'landingType', label: '广告信息', align: 'center', width: 80,
  152. render: (a: string, b: any) => (<WidthEllipsis value={LANDINGTYPEEnum[a]} />)
  153. },
  154. {
  155. title: '出价方式', dataIndex: 'pricing', label: '广告信息', align: 'center', width: 100, default: 8,
  156. render: (a: string, b: any) => (<WidthEllipsis value={PRICINGEnum[a]} />)
  157. },
  158. {
  159. title: '当前出价', dataIndex: 'cpaBid', label: '广告信息', align: 'center', width: 70, default: 9,
  160. render: (a: any) => <Statistic value={a || '--'} />
  161. },
  162. {
  163. title: '深度转化ROI系数', dataIndex: 'roiGoal', label: '广告信息', align: 'center', width: 65, sorter: true,
  164. render: (a: any) => <Statistic value={a || 0} />
  165. },
  166. {
  167. title: '日预算', dataIndex: 'budget', label: '广告信息', align: 'center', width: 70, default: 10, sorter: true,
  168. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  169. },
  170. {
  171. title: '投放时间', dataIndex: 'scheduleTime', label: '广告信息', align: 'center', width: 135, default: 11,
  172. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  173. }
  174. ]
  175. },
  176. {
  177. label: '消耗',
  178. data: [
  179. {
  180. title: '今日消耗', dataIndex: 'todayCost', label: '消耗', align: 'center', width: 85, sorter: true, default: 12,
  181. render: (a: any) => <Statistic valueStyle={{ fontWeight: 'bold', fontSize: 14 }} value={a || 0} />
  182. },
  183. {
  184. title: '总消耗', dataIndex: 'promotionTotalCost', label: '消耗', align: 'center', width: 100, sorter: true,
  185. render: (a: any) => <Statistic value={a || 0} />
  186. }
  187. ]
  188. },
  189. {
  190. label: '广告媒体端数据',
  191. data: [
  192. {
  193. title: '曝光量', dataIndex: 'showCount', label: '广告媒体端数据', align: 'center', width: 60, sorter: true, default: 13, className: "adDataBackColorClass",
  194. render: (a: any) => <Statistic value={a || 0} />
  195. },
  196. {
  197. title: '千次曝光成本', dataIndex: 'thousandDisplayPrice', label: '广告媒体端数据', align: 'center', width: 65, sorter: true, className: "adDataBackColorClass", default: 15,
  198. render: (a: any) => <Statistic value={a || 0} />
  199. },
  200. {
  201. title: '点击量', dataIndex: 'clickCount', label: '广告媒体端数据', align: 'center', width: 60, sorter: true, className: "adDataBackColorClass", default: 14,
  202. render: (a: any) => <Statistic value={a || 0} />
  203. },
  204. {
  205. title: '点击均价', dataIndex: 'avgClickCost', label: '广告媒体端数据', align: 'center', width: 60, sorter: true, className: "adDataBackColorClass", default: 16,
  206. render: (a: any) => <Statistic value={a || 0} />
  207. },
  208. {
  209. title: '点击率', dataIndex: 'ctr', label: '广告媒体端数据', align: 'center', width: 60, sorter: true, className: "adDataBackColorClass", default: 17,
  210. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  211. },
  212. {
  213. title: '转化目标', dataIndex: 'convertTarget', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70,
  214. render: (a: string, b: any) => (<WidthEllipsis value={a} />)
  215. },
  216. {
  217. title: '转化目标量', dataIndex: 'convertCount', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 60, sorter: true,
  218. render: (a: any) => <Statistic value={a || 0} />
  219. },
  220. {
  221. title: '转化目标成本', dataIndex: 'convertCost', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 85, sorter: true,
  222. render: (a: any) => <Statistic value={a || 0} valueStyle={a > 700 ? { color: 'red', fontWeight: 'bold' } : {}} />
  223. },
  224. {
  225. title: '目标转化率', dataIndex: 'convertRate', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 60, sorter: true,
  226. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  227. },
  228. {
  229. title: '注册人数(广告)', dataIndex: 'active', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 18,
  230. render: (a: any) => <Statistic value={a || 0} />
  231. },
  232. {
  233. title: '注册成本(广告)', dataIndex: 'activeCost', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 19,
  234. render: (a: any) => <Statistic value={a || 0} />
  235. },
  236. {
  237. title: '首日转化数(广告)', dataIndex: 'firstConvertCount', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 20,
  238. render: (a: any) => <Statistic value={a || 0} />
  239. },
  240. {
  241. title: '首日转化成本(广告)', dataIndex: 'firstConvertCost', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 21,
  242. render: (a: any) => <Statistic value={a || 0} />
  243. },
  244. {
  245. title: '首次付费率(广告)', dataIndex: 'firstActivePayRate', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 22,
  246. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  247. },
  248. {
  249. title: '首日付费金额(广告)', dataIndex: 'firstAttributionGameInAppLtv1day', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 23,
  250. render: (a: any) => <Statistic value={a || 0} />
  251. },
  252. {
  253. title: '首日付费ROI(广告)', dataIndex: 'firstAttributionGameInAppRoi1day', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 85, sorter: true, default: 24,
  254. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  255. },
  256. {
  257. title: '付费次数(广告)', dataIndex: 'gamePayCount', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 70, sorter: true, default: 25,
  258. render: (a: any) => <Statistic value={a || 0} />
  259. },
  260. {
  261. title: '付费次数成本(广告)', dataIndex: 'gamePayCountCost', label: '广告媒体端数据', align: 'center', className: "adDataBackColorClass", width: 80, sorter: true,
  262. render: (a: any) => <Statistic value={a || 0} />
  263. }
  264. ]
  265. },
  266. {
  267. label: '用户数据',
  268. data: [
  269. {
  270. title: '注册人数',
  271. tips: '新增用户数(首次注册用户)',
  272. dataIndex: 'regNum',
  273. label: '用户数据',
  274. align: 'center',
  275. width: 70,
  276. sorter: true,
  277. default: 30,
  278. render: (a: any) => <Statistic value={a || 0} />
  279. },
  280. {
  281. title: '总注册人数', dataIndex: 'regTotalNum', label: '用户数据', align: 'center', width: 70, tips: '广告的总注册人数', sorter: true,
  282. render: (a: any) => <Statistic value={a || 0} />
  283. },
  284. {
  285. title: '首日创角人数', dataIndex: 'firstRoleNum', label: '用户数据', align: 'center', width: 60, sorter: true, default: 32,
  286. render: (a: any) => <Statistic value={a || 0} />
  287. },
  288. {
  289. title: '新用户累计创角人数', dataIndex: 'newUserTotalRoleNum', label: '用户数据', align: 'center', width: 70, sorter: true,
  290. render: (a: any) => <Statistic value={a || 0} />
  291. },
  292. {
  293. title: '总创角人数', dataIndex: 'roleTotalNum', label: '用户数据', align: 'center', width: 60, sorter: true,
  294. render: (a: any) => <Statistic value={a || 0} />
  295. },
  296. {
  297. title: '注册成本', dataIndex: 'regCost', label: '用户数据', align: 'center', width: 70, sorter: true, default: 31,
  298. render: (a: any) => <Statistic value={a || 0} />
  299. },
  300. {
  301. title: '总注册成本', dataIndex: 'regTotalCost', label: '用户数据', align: 'center', width: 70, sorter: true,
  302. render: (a: any) => <Statistic value={a || 0} />
  303. },
  304. {
  305. title: '首日创角成本', dataIndex: 'firstRoleCost', label: '用户数据', align: 'center', width: 60, sorter: true, default: 33,
  306. render: (a: any) => <Statistic value={a || 0} />
  307. },
  308. {
  309. title: '新用户创角成本', dataIndex: 'newUserTotalRoleCost', label: '用户数据', align: 'center', width: 65, sorter: true,
  310. render: (a: any) => <Statistic value={a || 0} />
  311. },
  312. {
  313. title: '总创角成本', dataIndex: 'roleTotalCost', label: '用户数据', align: 'center', width: 60, sorter: true,
  314. render: (a: any) => <Statistic value={a || 0} />
  315. },
  316. {
  317. title: '首日创角率', dataIndex: 'firstRoleRate', label: '用户数据', align: 'center', width: 70, sorter: true, default: 34,
  318. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  319. },
  320. {
  321. title: '新用户创角率', dataIndex: 'newUserTotalRoleRate', label: '用户数据', align: 'center', width: 70, sorter: true,
  322. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  323. },
  324. {
  325. title: '总创角率', dataIndex: 'roleTotalRate', label: '用户数据', align: 'center', width: 80, sorter: true,
  326. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  327. },
  328. ]
  329. },
  330. {
  331. label: '付费数据',
  332. data: [
  333. {
  334. title: '首日充值次数', tips: "新增付费次数(首次注册并充值的总次数)", dataIndex: 'firstNewUserAmountCount', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass', default: 26,
  335. render: (a: any) => <Statistic value={a || 0} />
  336. },
  337. {
  338. title: '首日充值人数', tips: '新增付费人数(首次注册并充值人数)', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass', default: 27,
  339. render: (a: any) => <Statistic value={a || 0} />
  340. },
  341. {
  342. title: '首日充值金额', tips: '新增付费金额(首次注册并充值金额)', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 90, sorter: true, className: 'payDataBackColorClass', default: 28,
  343. render: (a: any) => <Statistic value={a || 0} />
  344. },
  345. {
  346. title: '至今付费次数', dataIndex: 'newUserTotalAmountCount', label: '付费数据', align: 'center', width: 60, sorter: true, className: 'payDataBackColorClass',
  347. render: (a: any) => <Statistic value={a || 0} />
  348. },
  349. {
  350. title: '至今付费人数', dataIndex: 'newUserTotalAmountNum', label: '付费数据', align: 'center', width: 60, sorter: true, className: 'payDataBackColorClass',
  351. render: (a: any) => <Statistic value={a || 0} />
  352. },
  353. {
  354. title: '至今付费金额', dataIndex: 'newUserTotalAmount', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass',
  355. render: (a: any) => <Statistic value={a || 0} />
  356. },
  357. {
  358. title: '新用户24小时充值金额', dataIndex: 'twentyFourHoursAmount', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass',
  359. render: (a: any) => <Statistic value={a || 0} />
  360. },
  361. {
  362. title: '总充值次数', dataIndex: 'totalAmountCount', label: '付费数据', align: 'center', width: 50, className: 'payDataBackColorClass', sorter: true,
  363. render: (a: any) => <Statistic value={a || 0} />
  364. },
  365. {
  366. title: '总充值人数', dataIndex: 'totalAmountNum', label: '付费数据', align: 'center', width: 50, className: 'payDataBackColorClass', sorter: true,
  367. render: (a: any) => <Statistic value={a || 0} />
  368. },
  369. {
  370. title: '总充值金额', dataIndex: 'totalAmount', label: '付费数据', align: 'center', width: 70, className: 'payDataBackColorClass', sorter: true,
  371. render: (a: any) => <Statistic value={a || 0} />
  372. },
  373. {
  374. title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 65, sorter: true, default: 35, className: 'payDataBackColorClass',
  375. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  376. },
  377. {
  378. title: '24小时ROI', dataIndex: 'twentyFourHoursRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 36, className: 'payDataBackColorClass',
  379. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  380. },
  381. {
  382. title: '总ROI', dataIndex: 'totalRoi', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  383. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  384. },
  385. {
  386. title: '广告总ROI', dataIndex: 'promotionTotalRoi', label: '付费数据', align: 'center', width: 70, className: 'payDataBackColorClass', sorter: true,
  387. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  388. },
  389. {
  390. title: '首日充值成本', tips: '新增付费成本(首次注册并充值的用户成本)', dataIndex: 'firstNewUserRechargeCost', label: '付费数据', align: 'center', width: 80, sorter: true, default: 29, className: 'payDataBackColorClass',
  391. render: (a: any) => <Statistic value={a || 0} />
  392. },
  393. {
  394. title: '至今付费成本', dataIndex: 'newUserTotalRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  395. render: (a: any) => <Statistic value={a || 0} />
  396. },
  397. {
  398. title: '总付费成本', tips: '总付费成本(广告总付费用户成本)', dataIndex: 'totalRechargeCost', label: '付费数据', align: 'center', width: 70, className: 'payDataBackColorClass', sorter: true,
  399. render: (a: any) => <Statistic value={a || 0} />
  400. },
  401. {
  402. title: '首日付费用户ARPPU', tips: '首日充值金额/首日充值人数', dataIndex: 'firstNewUserArppu', label: '付费数据', align: 'center', width: 70, sorter: true, default: 38, className: 'payDataBackColorClass',
  403. render: (a: any) => <Statistic value={a || 0} />
  404. },
  405. {
  406. title: '至今付费ARPPU', dataIndex: 'newUserTotalAmountArppu', label: '付费数据', align: 'center', width: 60, sorter: true, className: 'payDataBackColorClass',
  407. render: (a: any) => <Statistic value={a || 0} />
  408. },
  409. {
  410. title: '首日付费100+用户数', tips: '首次注册并在注册当天单笔充值金额大于100的用户人数', dataIndex: 'firstNewUserHundredUserNum', label: '付费数据', align: 'center', width: 90, sorter: true, className: 'payDataBackColorClass',
  411. render: (a: any) => <Statistic value={a || 0} />
  412. },
  413. {
  414. title: '首日付费100+用户付费成本', tips: '今日消耗/首日付费100+用户数', dataIndex: 'firstNewUserHundredUserCost', label: '付费数据', align: 'center', width: 95, sorter: true, className: 'payDataBackColorClass',
  415. render: (a: any) => <Statistic value={a || 0} />
  416. },
  417. {
  418. title: '至今付费100+用户付费成本', dataIndex: 'newUserTotalHundredUserCost', label: '付费数据', align: 'center', width: 85, sorter: true, className: 'payDataBackColorClass',
  419. render: (a: any) => <Statistic value={a || 0} />
  420. },
  421. {
  422. title: '首充50~100元用户数', dataIndex: 'firstRechargeFiftyHundredNum', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass',
  423. render: (a: any) => <Statistic value={a || 0} />
  424. },
  425. {
  426. title: '首充50~100元占比', dataIndex: 'firstRechargeFiftyHundredRate', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  427. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  428. },
  429. {
  430. title: '首日付费200+人数', tips: '首次注册并在注册当天单笔充值金额大于200的用户人数', dataIndex: 'firstNewUserTwoHundredUserNum', label: '付费数据', align: 'center', width: 90, sorter: true, className: 'payDataBackColorClass',
  431. render: (a: any) => <Statistic value={a || 0} />
  432. },
  433. {
  434. title: '首日付费200+用户付费成本', tips: '今日消耗/首日付费200+用户数', dataIndex: 'firstNewUserTwoHundredUserCost', label: '付费数据', align: 'center', width: 95, sorter: true, className: 'payDataBackColorClass',
  435. render: (a: any) => <Statistic value={a || 0} />
  436. },
  437. {
  438. title: '至今付费100+用户数', dataIndex: 'newUserTotalHundredUserNum', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass',
  439. render: (a: any) => <Statistic value={a || 0} />
  440. },
  441. {
  442. title: '首日IOS付费次数', dataIndex: 'firstIosAmountCount', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  443. render: (a: any) => <Statistic value={a || 0} />
  444. },
  445. {
  446. title: '首日IOS付费人数', dataIndex: 'firstIosAmountNum', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  447. render: (a: any) => <Statistic value={a || 0} />
  448. },
  449. {
  450. title: '首日IOS付费金额', dataIndex: 'firstIosAmount', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  451. render: (a: any) => <Statistic value={a || 0} />
  452. },
  453. {
  454. title: '首日IOS付费人数占比', dataIndex: 'firstIosAmountNumRate', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  455. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  456. },
  457. {
  458. title: '首日IOS付费金额占比', dataIndex: 'firstIosAmountRate', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  459. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  460. },
  461. {
  462. title: '首日IOS付费ROI', dataIndex: 'firstIosAmountRoi', label: '付费数据', align: 'center', width: 75, sorter: true, className: 'payDataBackColorClass',
  463. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  464. },
  465. {
  466. title: '首日Android付费次数', dataIndex: 'firstAndroidAmountCount', label: '付费数据', align: 'center', width: 78, sorter: true, className: 'payDataBackColorClass',
  467. render: (a: any) => <Statistic value={a || 0} />
  468. },
  469. {
  470. title: '首日Android付费人数', dataIndex: 'firstAndroidAmountNum', label: '付费数据', align: 'center', width: 78, sorter: true, className: 'payDataBackColorClass',
  471. render: (a: any) => <Statistic value={a || 0} />
  472. },
  473. {
  474. title: '首日Android付费金额', dataIndex: 'firstAndroidAmount', label: '付费数据', align: 'center', width: 78, sorter: true, className: 'payDataBackColorClass',
  475. render: (a: any) => <Statistic value={a || 0} />
  476. },
  477. {
  478. title: '首日Android付费人数占比', dataIndex: 'firstAndroidAmountNumRate', label: '付费数据', align: 'center', width: 95, sorter: true, className: 'payDataBackColorClass',
  479. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  480. },
  481. {
  482. title: '首日Android付费金额占比', dataIndex: 'firstAndroidAmountRate', label: '付费数据', align: 'center', width: 95, sorter: true, className: 'payDataBackColorClass',
  483. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  484. },
  485. {
  486. title: '首日Android付费ROI', dataIndex: 'firstAndroidAmountRoi', label: '付费数据', align: 'center', width: 80, sorter: true, className: 'payDataBackColorClass',
  487. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  488. },
  489. {
  490. title: '首日付费率', dataIndex: 'firstAmountRate', label: '付费数据', align: 'center', width: 70, sorter: true, default: 37, className: 'payDataBackColorClass',
  491. render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
  492. },
  493. {
  494. title: '首日客单价', tips: '首日客单价(数新增客单价)=首日新用户充值金额/首日新用户充值次', dataIndex: 'firstNewUserAvgPrice', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  495. render: (a: any) => <Statistic value={a || 0} />
  496. },
  497. {
  498. title: '至今客单价', dataIndex: 'newUserTotalAvgPrice', label: '付费数据', align: 'center', width: 60, sorter: true, className: 'payDataBackColorClass',
  499. render: (a: any) => <Statistic value={a || 0} />
  500. },
  501. {
  502. title: 'ltv1', dataIndex: 'ltvDay1', label: '付费数据', align: 'center', width: 60, sorter: true, default: 39, className: 'payDataBackColorClass',
  503. render: (a: any) => <Statistic value={a || 0} />
  504. },
  505. {
  506. title: '每日扣单数', dataIndex: 'subOrderNum', label: '付费数据', align: 'center', width: 60, sorter: true, default: 40, className: 'payDataBackColorClass',
  507. render: (a: any) => <Statistic value={a || 0} />
  508. },
  509. {
  510. title: '每日扣单金额', dataIndex: 'subOrderAmount', label: '付费数据', align: 'center', width: 60, sorter: true, default: 41, className: 'payDataBackColorClass',
  511. render: (a: any) => <Statistic value={a || 0} />
  512. },
  513. {
  514. title: '总充值次数成本', dataIndex: 'totalAmountCountCost', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  515. render: (a: any) => <Statistic value={a || 0} />
  516. },
  517. {
  518. title: '新增付费次数成本', dataIndex: 'firstNewUserAmountCountCost', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  519. render: (a: any) => <Statistic value={a || 0} />
  520. },
  521. {
  522. title: '至今付费次数成本', dataIndex: 'newUserTotalAmountCountCost', label: '付费数据', align: 'center', width: 70, sorter: true, className: 'payDataBackColorClass',
  523. render: (a: any) => <Statistic value={a || 0} />
  524. },
  525. ...date
  526. ]
  527. }
  528. ]
  529. }
  530. export default columns12