tableDynamicConfig.tsx 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. import React from 'react'
  2. import { Badge, Space, Statistic, Switch, Tooltip } from 'antd'
  3. import '../../launchSystemNew/adq/index.less'
  4. import { copy } from '@/utils/utils'
  5. import { ColumnsType } from 'antd/lib/table'
  6. import StatisticNull from '@/components/StatisticNull'
  7. import { QuestionCircleOutlined } from '@ant-design/icons'
  8. import { DELIVERY_MODE, DYNAMIC_CREATIVE_TYPE } from '../adqv3/const'
  9. import { creativeTemplate } from '../tencentAdPutIn/const'
  10. import CreativePreview from './CreativePreview'
  11. import { AdUnitType_Enum } from '@/pages/launchSystemNew/account/const'
  12. function tableDynamicConfig(
  13. suspendHandle: (b: any, suspend: '启动' | '暂停') => void
  14. ): ColumnsType<any> {
  15. let adArr: ColumnsType<any> = [
  16. {
  17. title: '启停',
  18. dataIndex: 'configured_status',
  19. key: 'configured_status',
  20. align: 'center',
  21. width: 40,
  22. fixed: 'left',
  23. render: (a: string, b: any) => {
  24. if (b?.account_id === '总计') {
  25. return '--'
  26. }
  27. return <Switch size="small" checked={a === 'AD_STATUS_NORMAL'} onChange={(checked) => { suspendHandle(b, checked ? '启动' : '暂停') }} />
  28. }
  29. },
  30. {
  31. title: '所属账号',
  32. dataIndex: 'account_id',
  33. key: 'account_id',
  34. align: 'center',
  35. width: 80,
  36. ellipsis: true,
  37. render: (a: string) => {
  38. return <Space>
  39. <a onClick={() => copy(a)} >{a}</a>
  40. </Space>
  41. }
  42. },
  43. {
  44. title: '广告ID',
  45. dataIndex: 'adgroup_id',
  46. key: 'adgroup_id',
  47. align: 'center',
  48. width: 100,
  49. ellipsis: true,
  50. render: (a: string, b: any) => {
  51. if (b?.account_id === '总计') {
  52. return '--'
  53. }
  54. return <Space>
  55. <a onClick={() => copy(a)} >{a}</a>
  56. </Space>
  57. }
  58. },
  59. {
  60. title: '创意ID',
  61. dataIndex: 'dynamic_creative_id',
  62. key: 'dynamic_creative_id',
  63. align: 'center',
  64. width: 100,
  65. ellipsis: true,
  66. render: (a: string, b: any) => {
  67. if (b?.account_id === '总计') {
  68. return '--'
  69. }
  70. return <Space>
  71. <a onClick={() => copy(a)} >{a}</a>
  72. </Space>
  73. }
  74. },
  75. {
  76. title: '投手',
  77. dataIndex: 'put_user_name',
  78. key: 'put_user_name',
  79. align: 'center',
  80. width: 70,
  81. ellipsis: true,
  82. render(value, record) {
  83. if (record?.account_id === '总计') return '--';
  84. return value
  85. },
  86. },
  87. {
  88. title: '广告名称',
  89. dataIndex: 'adgroup_name',
  90. key: 'adgroup_name',
  91. width: 280,
  92. ellipsis: true,
  93. render: (a: string, b: any) => {
  94. if (b?.account_id === '总计') return '--';
  95. return a
  96. }
  97. },
  98. {
  99. title: '创意名称',
  100. dataIndex: 'dynamic_creative_name',
  101. key: 'dynamic_creative_name',
  102. width: 280,
  103. ellipsis: true,
  104. render: (a: string, b: any) => {
  105. if (b?.account_id === '总计') return '--'
  106. return a
  107. }
  108. },
  109. {
  110. title: '投放模式',
  111. dataIndex: 'delivery_mode',
  112. key: 'delivery_mode',
  113. align: 'center',
  114. width: 120,
  115. render: (a: string) => {
  116. return DELIVERY_MODE[a as keyof typeof DELIVERY_MODE]
  117. }
  118. },
  119. {
  120. title: '创意形式匹配方式',
  121. dataIndex: 'dynamic_creative_type',
  122. key: 'dynamic_creative_type',
  123. align: 'center',
  124. width: 120,
  125. render: (a: string) => {
  126. return DYNAMIC_CREATIVE_TYPE[a as keyof typeof DYNAMIC_CREATIVE_TYPE]
  127. }
  128. },
  129. {
  130. title: '是否已删除',
  131. dataIndex: 'is_deleted',
  132. key: 'is_deleted',
  133. align: 'center',
  134. width: 60,
  135. render: (a: any, b: any) => {
  136. if (b?.account_id === '总计') return '--';
  137. return <Badge status={!a ? "processing" : "error"} text={a ? '是' : '否'} />
  138. }
  139. },
  140. {
  141. title: '创意形式',
  142. dataIndex: 'creative_template_id',
  143. key: 'creative_template_id',
  144. align: 'center',
  145. width: 120,
  146. ellipsis: true,
  147. render: (a: string) => {
  148. return creativeTemplate[a as keyof typeof creativeTemplate] || '--'
  149. }
  150. },
  151. {
  152. title: '创建时间',
  153. dataIndex: 'created_time',
  154. key: 'created_time',
  155. align: 'center',
  156. width: 140,
  157. ellipsis: true,
  158. },
  159. {
  160. title: '创意预览',
  161. dataIndex: 'creative_components_json',
  162. key: 'creative_components_json',
  163. width: 140,
  164. ellipsis: true,
  165. render: (_: any, b: any) => {
  166. return <CreativePreview creativePreview={b?.creative_components ? [b?.creative_components] : []} deliveryMode={[b?.delivery_mode]} />
  167. }
  168. },
  169. {
  170. title: '业务单元类型',
  171. dataIndex: 'ad_unit_type',
  172. key: 'ad_unit_type',
  173. align: 'center',
  174. width: 75,
  175. render: (a: string) => {
  176. return AdUnitType_Enum[a as keyof typeof AdUnitType_Enum] || '--'
  177. }
  178. },
  179. {
  180. title: '操作',
  181. dataIndex: 'cz',
  182. key: 'cz',
  183. width: 130,
  184. align: 'center',
  185. render: (a: any, b: any) => {
  186. if (b?.account_id === '总计') return '--';
  187. return <Space>
  188. {/* <Dropdown overlay={<Menu>
  189. <Menu.Item><a onClick={() => log(b)}>告警日志</a></Menu.Item>
  190. <Menu.Item><a onClick={() => handleTag(b)}>打标记</a></Menu.Item>
  191. {b?.tag_value ? <Menu.Item><a style={{ color: 'red' }} onClick={() => delTag(b)}>删除标记</a></Menu.Item> : undefined}
  192. </Menu>}>
  193. <a><Space size={2}>更多 <DownOutlined /></Space></a>
  194. </Dropdown> */}
  195. <a style={{ color: '#1890ff' }} onClick={() => window.open(`https://ad.qq.com/atlas/${b?.account_id}/admanage/index?tab=adgroup&query={%22operation_status%22:[%22CALCULATE_STATUS_EXCLUDE_DEL%22],%22system_status%22:[],%22search_name%22:%22${b.adgroup_id}%22}`)} target="_blank">腾讯广告</a>
  196. </Space>
  197. }
  198. }
  199. ]
  200. let adDataArr: ColumnsType<any> = [
  201. {
  202. title: '消耗',
  203. dataIndex: 'cost_day',
  204. key: 'cost_day',
  205. align: 'center',
  206. width: 110,
  207. sorter: true,
  208. render: (a: any, b: any) => {
  209. return <StatisticNull data={b} field='cost_day' />
  210. }
  211. },
  212. {
  213. title: '曝光量',
  214. dataIndex: 'view_count_day',
  215. key: 'view_count_day',
  216. align: 'center',
  217. width: 100,
  218. sorter: true,
  219. render: (a: any, b: any) => {
  220. return <StatisticNull data={b} field='view_count_day' />
  221. }
  222. },
  223. {
  224. title: '点击量',
  225. dataIndex: 'valid_click_count_day',
  226. key: 'valid_click_count_day',
  227. align: 'center',
  228. width: 100,
  229. sorter: true,
  230. render: (a: any, b: any) => {
  231. return <StatisticNull data={b} field='valid_click_count_day' />
  232. }
  233. },
  234. {
  235. title: '公众号关注人数(点击归因)',
  236. dataIndex: 'from_follow_by_click_uv_day',
  237. key: 'from_follow_by_click_uv_day',
  238. align: 'center',
  239. width: 120,
  240. sorter: true,
  241. render: (a: any, b: any) => {
  242. return <StatisticNull data={b} field='from_follow_by_click_uv_day' />
  243. }
  244. },
  245. {
  246. title: '公众号关注成本(点击归因)',
  247. dataIndex: 'from_follow_by_click_cost_day',
  248. key: 'from_follow_by_click_cost_day',
  249. align: 'center',
  250. width: 110,
  251. sorter: true,
  252. render: (a: any, b: any) => {
  253. return <StatisticNull data={b} field='from_follow_by_click_cost_day' precision={2} />
  254. }
  255. },
  256. {
  257. title: '公众号关注人数(平台上报)',
  258. dataIndex: 'biz_follow_uv_day',
  259. key: 'biz_follow_uv_day',
  260. align: 'center',
  261. width: 120,
  262. sorter: true,
  263. render: (a: any, b: any) => {
  264. return <StatisticNull data={b} field='biz_follow_uv_day' />
  265. }
  266. },
  267. {
  268. title: '目标转化量',
  269. dataIndex: 'conversions_count_day',
  270. key: 'conversions_count_day',
  271. align: 'center',
  272. width: 100,
  273. sorter: true,
  274. render: (a: any, b: any) => {
  275. return <StatisticNull data={b} field='conversions_count_day' />
  276. }
  277. },
  278. {
  279. title: '目标转化成本',
  280. dataIndex: 'conversions_cost_day',
  281. key: 'conversions_cost_day',
  282. align: 'center',
  283. width: 110,
  284. sorter: true,
  285. render: (a: any, b: any) => {
  286. return <StatisticNull data={b} field='conversions_cost_day' precision={2} />
  287. }
  288. },
  289. {
  290. title: '深度目标转化量',
  291. dataIndex: 'deep_conversions_count_day',
  292. key: 'deep_conversions_count_day',
  293. align: 'center',
  294. width: 100,
  295. sorter: true,
  296. render: (a: any, b: any) => {
  297. return <StatisticNull data={b} field='deep_conversions_count_day' />
  298. }
  299. },
  300. {
  301. title: '加企业微信客服次数',
  302. dataIndex: 'scan_follow_count_day',
  303. key: 'scan_follow_count_day',
  304. align: 'center',
  305. width: 100,
  306. sorter: true,
  307. render: (a: any, b: any) => {
  308. return <StatisticNull data={b} field='scan_follow_count_day' />
  309. }
  310. },
  311. {
  312. title: '加企业微信客服人数',
  313. dataIndex: 'scan_follow_user_count_day',
  314. key: 'scan_follow_user_count_day',
  315. align: 'center',
  316. width: 100,
  317. sorter: true,
  318. render: (a: any, b: any) => {
  319. return <StatisticNull data={b} field='scan_follow_user_count_day' />
  320. }
  321. },
  322. {
  323. title: '下单次数',
  324. dataIndex: 'order_pv_day',
  325. key: 'order_pv_day',
  326. align: 'center',
  327. width: 100,
  328. sorter: true,
  329. render: (a: any, b: any) => {
  330. return <StatisticNull data={b} field='order_pv_day' />
  331. }
  332. },
  333. {
  334. title: '下单人数',
  335. dataIndex: 'order_uv_day',
  336. key: 'order_uv_day',
  337. align: 'center',
  338. width: 100,
  339. sorter: true,
  340. render: (a: any, b: any) => {
  341. return <StatisticNull data={b} field='order_uv_day' />
  342. }
  343. },
  344. {
  345. title: '下单金额',
  346. dataIndex: 'order_amount_day',
  347. key: 'order_amount_day',
  348. align: 'center',
  349. width: 110,
  350. sorter: true,
  351. render: (a: any, b: any) => {
  352. return <StatisticNull data={b} field='order_amount_day' precision={2} />
  353. }
  354. },
  355. {
  356. title: '下单次数(点击归因)',
  357. dataIndex: 'order_by_click_count_day',
  358. key: 'order_by_click_count_day',
  359. align: 'center',
  360. width: 100,
  361. sorter: true,
  362. render: (a: any, b: any) => {
  363. return <StatisticNull data={b} field='order_by_click_count_day' />
  364. }
  365. },
  366. {
  367. title: '下单人数(点击归因)',
  368. dataIndex: 'order_by_click_amount_day',
  369. key: 'order_by_click_amount_day',
  370. align: 'center',
  371. width: 100,
  372. sorter: true,
  373. render: (a: any, b: any) => {
  374. return <StatisticNull data={b} field='order_by_click_amount_day' />
  375. }
  376. },
  377. {
  378. title: '点击首日下单次数(点击归因)',
  379. dataIndex: 'first_day_order_by_click_count_day',
  380. key: 'first_day_order_by_click_count_day',
  381. align: 'center',
  382. width: 120,
  383. sorter: true,
  384. render: (a: any, b: any) => {
  385. return <StatisticNull data={b} field='first_day_order_by_click_count_day' />
  386. }
  387. },
  388. {
  389. title: '点击首日付费次数',
  390. dataIndex: 'cheout_pv1d_day',
  391. key: 'cheout_pv1d_day',
  392. align: 'center',
  393. width: 100,
  394. sorter: true,
  395. render: (a: any, b: any) => {
  396. return <StatisticNull data={b} field='cheout_pv1d_day' />
  397. }
  398. },
  399. {
  400. title: '点击首日付费金额',
  401. dataIndex: 'cheout_fd_day',
  402. key: 'cheout_fd_day',
  403. align: 'center',
  404. width: 110,
  405. sorter: true,
  406. render: (a: any, b: any) => {
  407. return <StatisticNull data={b} field='cheout_fd_day' precision={2} />
  408. }
  409. },
  410. {
  411. title: '点击首日付费成本',
  412. dataIndex: 'cheout1d_cost_day',
  413. key: 'cheout1d_cost_day',
  414. align: 'center',
  415. width: 110,
  416. sorter: true,
  417. render: (a: any, b: any) => {
  418. return <StatisticNull data={b} field='cheout1d_cost_day' precision={2} />
  419. }
  420. },
  421. {
  422. title: '点击首日付费金额(平台上报)',
  423. dataIndex: 'purchase_pla_clk1d_amount_day',
  424. key: 'purchase_pla_clk1d_amount_day',
  425. align: 'center',
  426. width: 120,
  427. sorter: true,
  428. render: (a: any, b: any) => {
  429. return <StatisticNull data={b} field='purchase_pla_clk1d_amount_day' precision={2} />
  430. }
  431. },
  432. {
  433. title: '点击首日下单次数(首日新增下单量)',
  434. dataIndex: 'first_day_order_count_day',
  435. key: 'first_day_order_count_day',
  436. align: 'center',
  437. width: 120,
  438. sorter: true,
  439. render: (a: any, b: any) => {
  440. return <StatisticNull data={b} field='first_day_order_count_day' />
  441. }
  442. },
  443. {
  444. title: '首日新增下单金额(点击归因)',
  445. dataIndex: 'first_day_order_by_click_amount_day',
  446. key: 'first_day_order_by_click_amount_day',
  447. align: 'center',
  448. width: 120,
  449. sorter: true,
  450. render: (a: any, b: any) => {
  451. return <StatisticNull data={b} field='first_day_order_by_click_amount_day' precision={2} />
  452. }
  453. },
  454. {
  455. title: '点击首日下单金额(首日新增下单金额)',
  456. dataIndex: 'first_day_order_amount_day',
  457. key: 'first_day_order_amount_day',
  458. align: 'center',
  459. width: 120,
  460. sorter: true,
  461. render: (a: any, b: any) => {
  462. return <StatisticNull data={b} field='first_day_order_amount_day' precision={2} />
  463. }
  464. },
  465. {
  466. title: '点击7日下单次数',
  467. dataIndex: 'order_clk7d_pv_day',
  468. key: 'order_clk7d_pv_day',
  469. align: 'center',
  470. width: 100,
  471. sorter: true,
  472. render: (a: any, b: any) => {
  473. return <StatisticNull data={b} field='order_clk7d_pv_day' />
  474. }
  475. },
  476. {
  477. title: '点击7日下单金额',
  478. dataIndex: 'order_clk7d_amount_day',
  479. key: 'order_clk7d_amount_day',
  480. align: 'center',
  481. width: 100,
  482. sorter: true,
  483. render: (a: any, b: any) => {
  484. return <StatisticNull data={b} field='order_clk7d_amount_day' precision={2} />
  485. }
  486. },
  487. {
  488. title: '点击15日下单次数',
  489. dataIndex: 'order_clk15d_pv_day',
  490. key: 'order_clk15d_pv_day',
  491. align: 'center',
  492. width: 100,
  493. sorter: true,
  494. render: (a: any, b: any) => {
  495. return <StatisticNull data={b} field='order_clk15d_pv_day' />
  496. }
  497. },
  498. {
  499. title: '点击15日下单金额',
  500. dataIndex: 'order_clk15d_amount_day',
  501. key: 'order_clk15d_amount_day',
  502. align: 'center',
  503. width: 100,
  504. sorter: true,
  505. render: (a: any, b: any) => {
  506. return <StatisticNull data={b} field='order_clk15d_amount_day' precision={2} />
  507. }
  508. },
  509. {
  510. title: '点击30日下单次数',
  511. dataIndex: 'order_clk30d_pv_day',
  512. key: 'order_clk30d_pv_day',
  513. align: 'center',
  514. width: 100,
  515. sorter: true,
  516. render: (a: any, b: any) => {
  517. return <StatisticNull data={b} field='order_clk30d_pv_day' />
  518. }
  519. },
  520. {
  521. title: '点击30日下单金额',
  522. dataIndex: 'order_clk30d_amount_day',
  523. key: 'order_clk30d_amount_day',
  524. align: 'center',
  525. width: 100,
  526. sorter: true,
  527. render: (a: any, b: any) => {
  528. return <StatisticNull data={b} field='order_clk30d_amount_day' precision={2} />
  529. }
  530. },
  531. {
  532. title: '不感兴趣点击次数',
  533. dataIndex: 'no_interest_count_day',
  534. key: 'no_interest_count_day',
  535. align: 'center',
  536. width: 100,
  537. sorter: true,
  538. render: (a: any, b: any) => {
  539. return <StatisticNull data={b} field='no_interest_count_day' />
  540. }
  541. },
  542. {
  543. title: '千次曝光成本',
  544. dataIndex: 'thousand_display_price',
  545. key: 'thousand_display_price',
  546. align: 'center',
  547. width: 100,
  548. sorter: true,
  549. render: (a: any, b: any) => {
  550. return <StatisticNull data={b} field='thousand_display_price' precision={2} />
  551. }
  552. },
  553. {
  554. title: '点击均价',
  555. dataIndex: 'cpc',
  556. key: 'cpc',
  557. align: 'center',
  558. width: 100,
  559. sorter: true,
  560. render: (a: any, b: any) => {
  561. return <StatisticNull data={b} field='cpc' precision={2} />
  562. }
  563. },
  564. {
  565. title: '点击率',
  566. dataIndex: 'ctr',
  567. key: 'ctr',
  568. align: 'center',
  569. width: 110,
  570. sorter: true,
  571. render: (a: any, b: any) => {
  572. if (b?.ctr !== undefined && b?.ctr !== null) {
  573. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  574. } else {
  575. return '--'
  576. }
  577. }
  578. },
  579. {
  580. title: '公众号关注率(点击归因)',
  581. dataIndex: 'biz_follow_rate_click',
  582. key: 'biz_follow_rate_click',
  583. align: 'center',
  584. width: 110,
  585. sorter: true,
  586. render: (a: any, b: any) => {
  587. if (b?.biz_follow_rate_click !== undefined && b?.biz_follow_rate_click !== null) {
  588. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  589. } else {
  590. return '--'
  591. }
  592. }
  593. },
  594. {
  595. title: '公众号关注成本(平台上报)',
  596. dataIndex: 'biz_follow_cost',
  597. key: 'biz_follow_cost',
  598. align: 'center',
  599. width: 120,
  600. sorter: true,
  601. render: (a: any, b: any) => {
  602. return <StatisticNull data={b} field='biz_follow_cost' precision={2} />
  603. }
  604. },
  605. {
  606. title: '公众号关注率(平台上报)',
  607. dataIndex: 'biz_follow_rate',
  608. key: 'biz_follow_rate',
  609. align: 'center',
  610. width: 120,
  611. sorter: true,
  612. render: (a: any, b: any) => {
  613. if (b?.biz_follow_rate !== undefined && b?.biz_follow_rate !== null) {
  614. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  615. } else {
  616. return '--'
  617. }
  618. }
  619. },
  620. {
  621. title: '目标转化率',
  622. dataIndex: 'conversions_rate',
  623. key: 'conversions_rate',
  624. align: 'center',
  625. width: 110,
  626. sorter: true,
  627. render: (a: any, b: any) => {
  628. if (b?.conversions_rate !== undefined && b?.conversions_rate !== null) {
  629. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  630. } else {
  631. return '--'
  632. }
  633. }
  634. },
  635. {
  636. title: '深度目标转化率',
  637. dataIndex: 'deep_conversions_rate',
  638. key: 'deep_conversions_rate',
  639. align: 'center',
  640. width: 110,
  641. sorter: true,
  642. render: (a: any, b: any) => {
  643. if (b?.deep_conversions_rate !== undefined && b?.deep_conversions_rate !== null) {
  644. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  645. } else {
  646. return '--'
  647. }
  648. }
  649. },
  650. {
  651. title: '加企业微信客服成本(人数)',
  652. dataIndex: 'scan_follow_user_cost',
  653. key: 'scan_follow_user_cost',
  654. align: 'center',
  655. width: 110,
  656. sorter: true,
  657. render: (a: any, b: any) => {
  658. return <StatisticNull data={b} field='scan_follow_user_cost' precision={2} />
  659. }
  660. },
  661. {
  662. title: '加企业微信客服率(人数)',
  663. dataIndex: 'scan_follow_user_rate',
  664. key: 'scan_follow_user_rate',
  665. align: 'center',
  666. width: 120,
  667. sorter: true,
  668. render: (a: any, b: any) => {
  669. if (b?.scan_follow_user_rate !== undefined && b?.scan_follow_user_rate !== null) {
  670. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  671. } else {
  672. return '--'
  673. }
  674. }
  675. },
  676. {
  677. title: '下单单价',
  678. dataIndex: 'order_unit_price',
  679. key: 'order_unit_price',
  680. align: 'center',
  681. width: 80,
  682. sorter: true,
  683. render: (a: any, b: any) => {
  684. return <StatisticNull data={b} field='order_unit_price' precision={2} />
  685. }
  686. },
  687. {
  688. title: '下单率',
  689. dataIndex: 'order_rate',
  690. key: 'order_rate',
  691. align: 'center',
  692. width: 110,
  693. sorter: true,
  694. render: (a: any, b: any) => {
  695. if (b?.order_rate !== undefined && b?.order_rate !== null) {
  696. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  697. } else {
  698. return '--'
  699. }
  700. }
  701. },
  702. {
  703. title: '下单成本',
  704. dataIndex: 'order_by_display_cost',
  705. key: 'order_by_display_cost',
  706. align: 'center',
  707. width: 80,
  708. sorter: true,
  709. render: (a: any, b: any) => {
  710. return <StatisticNull data={b} field='order_by_display_cost' precision={2} />
  711. }
  712. },
  713. {
  714. title: '下单ROI',
  715. dataIndex: 'order_roi',
  716. key: 'order_roi',
  717. align: 'center',
  718. width: 110,
  719. sorter: true,
  720. render: (a: any, b: any) => {
  721. if (b?.order_roi !== undefined && b?.order_roi !== null) {
  722. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  723. } else {
  724. return '--'
  725. }
  726. }
  727. },
  728. {
  729. title: '客单价',
  730. dataIndex: 'unit_price',
  731. key: 'unit_price',
  732. align: 'center',
  733. width: 80,
  734. sorter: true,
  735. render: (a: any, b: any) => {
  736. return <StatisticNull data={b} field='unit_price' precision={2} />
  737. }
  738. },
  739. {
  740. title: '下单率(点击归因)',
  741. dataIndex: 'order_by_click_rate',
  742. key: 'order_by_click_rate',
  743. align: 'center',
  744. width: 110,
  745. sorter: true,
  746. render: (a: any, b: any) => {
  747. if (b?.order_by_click_rate !== undefined && b?.order_by_click_rate !== null) {
  748. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  749. } else {
  750. return '--'
  751. }
  752. }
  753. },
  754. {
  755. title: '下单成本(点击归因)',
  756. dataIndex: 'order_by_click_cost',
  757. key: 'order_by_click_cost',
  758. align: 'center',
  759. width: 80,
  760. sorter: true,
  761. render: (a: any, b: any) => {
  762. return <StatisticNull data={b} field='order_by_click_cost' precision={2} />
  763. }
  764. },
  765. {
  766. title: '下单ROI(点击归因)',
  767. dataIndex: 'order_by_click_roi',
  768. key: 'order_by_click_roi',
  769. align: 'center',
  770. width: 110,
  771. sorter: true,
  772. render: (a: any, b: any) => {
  773. if (b?.order_by_click_roi !== undefined && b?.order_by_click_roi !== null) {
  774. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  775. } else {
  776. return '--'
  777. }
  778. }
  779. },
  780. {
  781. title: '点击首日付费率',
  782. dataIndex: 'cheout_1d_rate',
  783. key: 'cheout_1d_rate',
  784. align: 'center',
  785. width: 110,
  786. sorter: true,
  787. render: (a: any, b: any) => {
  788. if (b?.cheout_1d_rate !== undefined && b?.cheout_1d_rate !== null) {
  789. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  790. } else {
  791. return '--'
  792. }
  793. }
  794. },
  795. {
  796. title: '点击首日付费ROI',
  797. dataIndex: 'cheout_fd_reward',
  798. key: 'cheout_fd_reward',
  799. align: 'center',
  800. width: 110,
  801. sorter: true,
  802. render: (a: any, b: any) => {
  803. if (b?.cheout_fd_reward !== undefined && b?.cheout_fd_reward !== null) {
  804. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  805. } else {
  806. return '--'
  807. }
  808. }
  809. },
  810. {
  811. title: '点击30日下单单价',
  812. dataIndex: 'order_clk_30d_unit_price',
  813. key: 'order_clk_30d_unit_price',
  814. align: 'center',
  815. width: 100,
  816. sorter: true,
  817. render: (a: any, b: any) => {
  818. return <StatisticNull data={b} field='order_clk_30d_unit_price' precision={2} />
  819. }
  820. },
  821. {
  822. title: '点击15日下单单价',
  823. dataIndex: 'order_clk_15d_unit_price',
  824. key: 'order_clk_15d_unit_price',
  825. align: 'center',
  826. width: 100,
  827. sorter: true,
  828. render: (a: any, b: any) => {
  829. return <StatisticNull data={b} field='order_clk_15d_unit_price' precision={2} />
  830. }
  831. },
  832. {
  833. title: '点击7日下单单价',
  834. dataIndex: 'order_clk_7d_unit_price',
  835. key: 'order_clk_7d_unit_price',
  836. align: 'center',
  837. width: 100,
  838. sorter: true,
  839. render: (a: any, b: any) => {
  840. return <StatisticNull data={b} field='order_clk_7d_unit_price' precision={2} />
  841. }
  842. },
  843. {
  844. title: '点击30日下单ROI',
  845. dataIndex: 'order_clk_30d_roi',
  846. key: 'order_clk_30d_roi',
  847. align: 'center',
  848. width: 110,
  849. sorter: true,
  850. render: (a: any, b: any) => {
  851. if (b?.order_clk_30d_roi !== undefined && b?.order_clk_30d_roi !== null) {
  852. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  853. } else {
  854. return '--'
  855. }
  856. }
  857. },
  858. {
  859. title: '点击15日下单ROI',
  860. dataIndex: 'order_clk_15d_roi',
  861. key: 'order_clk_15d_roi',
  862. align: 'center',
  863. width: 110,
  864. sorter: true,
  865. render: (a: any, b: any) => {
  866. if (b?.order_clk_15d_roi !== undefined && b?.order_clk_15d_roi !== null) {
  867. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  868. } else {
  869. return '--'
  870. }
  871. }
  872. },
  873. {
  874. title: '点击7日下单ROI',
  875. dataIndex: 'order_clk_7d_roi',
  876. key: 'order_clk_7d_roi',
  877. align: 'center',
  878. width: 110,
  879. sorter: true,
  880. render: (a: any, b: any) => {
  881. if (b?.order_clk_7d_roi !== undefined && b?.order_clk_7d_roi !== null) {
  882. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  883. } else {
  884. return '--'
  885. }
  886. }
  887. },
  888. {
  889. title: <Space>
  890. <span>点击首日下单ROI</span>
  891. <Tooltip title="首日新增下单ROI">
  892. <QuestionCircleOutlined />
  893. </Tooltip>
  894. </Space>,
  895. dataIndex: 'first_day_order_roi',
  896. key: 'first_day_order_roi',
  897. align: 'center',
  898. width: 110,
  899. sorter: true,
  900. render: (a: any, b: any) => {
  901. if (b?.first_day_order_roi !== undefined && b?.first_day_order_roi !== null) {
  902. return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  903. } else {
  904. return '--'
  905. }
  906. }
  907. },
  908. ]
  909. let iaaDataArr: ColumnsType<any> = [
  910. {
  911. title: '激活首24小时广告变现ARPPU(平台上报)',
  912. dataIndex: 'first_day_ad_pur_arppu_cost24h_pla',
  913. key: 'first_day_ad_pur_arppu_cost24h_pla',
  914. align: 'center',
  915. width: 110,
  916. sorter: true,
  917. render: (a: any, b: any) => {
  918. return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost24h_pla' />
  919. }
  920. },
  921. {
  922. title: '激活首24小时广告变现ROI(平台上报)',
  923. dataIndex: 'income_roi124h_pla',
  924. key: 'income_roi124h_pla',
  925. align: 'center',
  926. width: 110,
  927. sorter: true,
  928. render: (a: any, b: any) => {
  929. if (b?.income_roi124h_pla !== undefined && b?.income_roi124h_pla !== null) {
  930. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  931. } else {
  932. return '--'
  933. }
  934. }
  935. },
  936. {
  937. title: '激活首24小时广告变现次数(平台上报)',
  938. dataIndex: 'income_pv24h_pla_day',
  939. key: 'income_pv24h_pla_day',
  940. align: 'center',
  941. width: 110,
  942. sorter: true,
  943. render: (a: any, b: any) => {
  944. return <StatisticNull data={b} field='income_pv24h_pla_day' />
  945. }
  946. },
  947. {
  948. title: '激活首日广告变现次数(平台上报)',
  949. dataIndex: 'income_pv1d_pla_day',
  950. key: 'income_pv1d_pla_day',
  951. align: 'center',
  952. width: 110,
  953. sorter: true,
  954. render: (a: any, b: any) => {
  955. return <StatisticNull data={b} field='income_pv1d_pla_day' />
  956. }
  957. },
  958. {
  959. title: '激活3日广告变现次数(平台上报)',
  960. dataIndex: 'ad_monetization_pla_dedup_active3d_pv_day',
  961. key: 'ad_monetization_pla_dedup_active3d_pv_day',
  962. align: 'center',
  963. width: 110,
  964. sorter: true,
  965. render: (a: any, b: any) => {
  966. return <StatisticNull data={b} field='ad_monetization_pla_dedup_active3d_pv_day' />
  967. }
  968. },
  969. {
  970. title: '激活7日广告变现次数(平台上报)',
  971. dataIndex: 'minigame7d_income_count_day',
  972. key: 'minigame7d_income_count_day',
  973. align: 'center',
  974. width: 110,
  975. sorter: true,
  976. render: (a: any, b: any) => {
  977. return <StatisticNull data={b} field='minigame7d_income_count_day' />
  978. }
  979. },
  980. {
  981. title: '注册3日广告变现次数(平台上报)',
  982. dataIndex: 'minigame3d_income_count_day',
  983. key: 'minigame3d_income_count_day',
  984. align: 'center',
  985. width: 110,
  986. sorter: true,
  987. render: (a: any, b: any) => {
  988. return <StatisticNull data={b} field='minigame3d_income_count_day' />
  989. }
  990. },
  991. {
  992. title: '激活首24小时广告变现金额(平台上报)',
  993. dataIndex: 'income_val24h_pla_day',
  994. key: 'income_val24h_pla_day',
  995. align: 'center',
  996. width: 110,
  997. sorter: true,
  998. render: (a: any, b: any) => {
  999. return <StatisticNull data={b} field='income_val24h_pla_day' />
  1000. }
  1001. },
  1002. {
  1003. title: '注册首日广告变现金额(平台上报)',
  1004. dataIndex: 'mini_game_first_day_ad_monetization_amount_day',
  1005. key: 'mini_game_first_day_ad_monetization_amount_day',
  1006. align: 'center',
  1007. width: 110,
  1008. sorter: true,
  1009. render: (a: any, b: any) => {
  1010. return <StatisticNull data={b} field='mini_game_first_day_ad_monetization_amount_day' />
  1011. }
  1012. },
  1013. {
  1014. title: '激活7日广告变现金额(平台上报)',
  1015. dataIndex: 'mini_game_ad_monetization_amount_d7_day',
  1016. key: 'mini_game_ad_monetization_amount_d7_day',
  1017. align: 'center',
  1018. width: 110,
  1019. sorter: true,
  1020. render: (a: any, b: any) => {
  1021. return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d7_day' />
  1022. }
  1023. },
  1024. {
  1025. title: '激活14日广告变现金额(平台上报)',
  1026. dataIndex: 'mini_game_ad_monetization_amount_d14_day',
  1027. key: 'mini_game_ad_monetization_amount_d14_day',
  1028. align: 'center',
  1029. width: 110,
  1030. sorter: true,
  1031. render: (a: any, b: any) => {
  1032. return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d14_day' />
  1033. }
  1034. },
  1035. {
  1036. title: '广告变现金额(平台上报)',
  1037. dataIndex: 'mini_game_ad_monetization_amount_day',
  1038. key: 'mini_game_ad_monetization_amount_day',
  1039. align: 'center',
  1040. width: 110,
  1041. sorter: true,
  1042. render: (a: any, b: any) => {
  1043. return <StatisticNull data={b} field='mini_game_ad_monetization_amount_day' />
  1044. }
  1045. },
  1046. {
  1047. title: '激活首24小时广告变现人数(平台上报)',
  1048. dataIndex: 'ad_paying_users24h_pla_day',
  1049. key: 'ad_paying_users24h_pla_day',
  1050. align: 'center',
  1051. width: 110,
  1052. sorter: true,
  1053. render: (a: any, b: any) => {
  1054. return <StatisticNull data={b} field='ad_paying_users24h_pla_day' />
  1055. }
  1056. },
  1057. {
  1058. title: '激活首日广告变现人数(平台上报)',
  1059. dataIndex: 'ad_monetization_pla_dedup_active1d_pv_day',
  1060. key: 'ad_monetization_pla_dedup_active1d_pv_day',
  1061. align: 'center',
  1062. width: 110,
  1063. sorter: true,
  1064. render: (a: any, b: any) => {
  1065. return <StatisticNull data={b} field='ad_monetization_pla_dedup_active1d_pv_day' />
  1066. }
  1067. },
  1068. {
  1069. title: '激活7日变现人数(平台上报)',
  1070. dataIndex: 'ad_monetization_pla_dedup_active7d_pv_day',
  1071. key: 'ad_monetization_pla_dedup_active7d_pv_day',
  1072. align: 'center',
  1073. width: 110,
  1074. sorter: true,
  1075. render: (a: any, b: any) => {
  1076. return <StatisticNull data={b} field='ad_monetization_pla_dedup_active7d_pv_day' />
  1077. }
  1078. },
  1079. {
  1080. title: '激活首24小时广告变现ARPPU',
  1081. dataIndex: 'first_day_ad_pur_arppu_cost24h',
  1082. key: 'first_day_ad_pur_arppu_cost24h',
  1083. align: 'center',
  1084. width: 110,
  1085. sorter: true,
  1086. render: (a: any, b: any) => {
  1087. return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost24h' />
  1088. }
  1089. },
  1090. {
  1091. title: '激活首日广告变现ARPPU',
  1092. dataIndex: 'first_day_ad_pur_arppu_cost',
  1093. key: 'first_day_ad_pur_arppu_cost',
  1094. align: 'center',
  1095. width: 110,
  1096. sorter: true,
  1097. render: (a: any, b: any) => {
  1098. return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost' />
  1099. }
  1100. },
  1101. {
  1102. title: '广告变现ARPPU',
  1103. dataIndex: 'ad_monetization_arppu',
  1104. key: 'ad_monetization_arppu',
  1105. align: 'center',
  1106. width: 110,
  1107. sorter: true,
  1108. render: (a: any, b: any) => {
  1109. return <StatisticNull data={b} field='ad_monetization_arppu' />
  1110. }
  1111. },
  1112. {
  1113. title: '激活首24小时广告变现ROI',
  1114. dataIndex: 'income_roi124h',
  1115. key: 'income_roi124h',
  1116. align: 'center',
  1117. width: 110,
  1118. sorter: true,
  1119. render: (a: any, b: any) => {
  1120. if (b?.income_roi124h !== undefined && b?.income_roi124h !== null) {
  1121. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1122. } else {
  1123. return '--'
  1124. }
  1125. }
  1126. },
  1127. {
  1128. title: '激活首日广告变现ROI',
  1129. dataIndex: 'income_roi1',
  1130. key: 'income_roi1',
  1131. align: 'center',
  1132. width: 110,
  1133. sorter: true,
  1134. render: (a: any, b: any) => {
  1135. if (b?.income_roi1 !== undefined && b?.income_roi1 !== null) {
  1136. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1137. } else {
  1138. return '--'
  1139. }
  1140. }
  1141. },
  1142. {
  1143. title: '激活3日广告变现ROI',
  1144. dataIndex: 'income_roi3',
  1145. key: 'income_roi3',
  1146. align: 'center',
  1147. width: 110,
  1148. sorter: true,
  1149. render: (a: any, b: any) => {
  1150. if (b?.income_roi3 !== undefined && b?.income_roi3 !== null) {
  1151. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1152. } else {
  1153. return '--'
  1154. }
  1155. }
  1156. },
  1157. {
  1158. title: '激活7日广告变现ROI',
  1159. dataIndex: 'income_roi7',
  1160. key: 'income_roi7',
  1161. align: 'center',
  1162. width: 110,
  1163. sorter: true,
  1164. render: (a: any, b: any) => {
  1165. if (b?.income_roi7 !== undefined && b?.income_roi7 !== null) {
  1166. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1167. } else {
  1168. return '--'
  1169. }
  1170. }
  1171. },
  1172. {
  1173. title: '激活14日广告变现ROI',
  1174. dataIndex: 'income_roi14',
  1175. key: 'income_roi14',
  1176. align: 'center',
  1177. width: 110,
  1178. sorter: true,
  1179. render: (a: any, b: any) => {
  1180. if (b?.income_roi14 !== undefined && b?.income_roi14 !== null) {
  1181. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1182. } else {
  1183. return '--'
  1184. }
  1185. }
  1186. },
  1187. {
  1188. title: '广告变现ROI',
  1189. dataIndex: 'ad_monetization_roi',
  1190. key: 'ad_monetization_roi',
  1191. align: 'center',
  1192. width: 110,
  1193. sorter: true,
  1194. render: (a: any, b: any) => {
  1195. if (b?.ad_monetization_roi !== undefined && b?.ad_monetization_roi !== null) {
  1196. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1197. } else {
  1198. return '--'
  1199. }
  1200. }
  1201. },
  1202. {
  1203. title: '激活首日广告变现成本(人数)',
  1204. dataIndex: 'ad_paying_cost_d1',
  1205. key: 'ad_paying_cost_d1',
  1206. align: 'center',
  1207. width: 110,
  1208. sorter: true,
  1209. render: (a: any, b: any) => {
  1210. return <StatisticNull data={b} field='ad_paying_cost_d1' />
  1211. }
  1212. },
  1213. {
  1214. title: '广告变现成本',
  1215. dataIndex: 'ad_monetization_cost',
  1216. key: 'ad_monetization_cost',
  1217. align: 'center',
  1218. width: 110,
  1219. sorter: true,
  1220. render: (a: any, b: any) => {
  1221. return <StatisticNull data={b} field='ad_monetization_cost' />
  1222. }
  1223. },
  1224. {
  1225. title: '激活3日广告变现次数',
  1226. dataIndex: 'ad_monetization_active3d_pv_day',
  1227. key: 'ad_monetization_active3d_pv_day',
  1228. align: 'center',
  1229. width: 110,
  1230. sorter: true,
  1231. render: (a: any, b: any) => {
  1232. return <StatisticNull data={b} field='ad_monetization_active3d_pv_day' />
  1233. }
  1234. },
  1235. {
  1236. title: '激活7日广告变现次数',
  1237. dataIndex: 'ad_monetization_active7d_pv_day',
  1238. key: 'ad_monetization_active7d_pv_day',
  1239. align: 'center',
  1240. width: 110,
  1241. sorter: true,
  1242. render: (a: any, b: any) => {
  1243. return <StatisticNull data={b} field='ad_monetization_active7d_pv_day' />
  1244. }
  1245. },
  1246. {
  1247. title: '广告变现次数(平台上报)',
  1248. dataIndex: 'income_pv_pla_day',
  1249. key: 'income_pv_pla_day',
  1250. align: 'center',
  1251. width: 110,
  1252. sorter: true,
  1253. render: (a: any, b: any) => {
  1254. return <StatisticNull data={b} field='income_pv_pla_day' />
  1255. }
  1256. },
  1257. {
  1258. title: '激活首24小时广告变现金额',
  1259. dataIndex: 'income_val24h_day',
  1260. key: 'income_val24h_day',
  1261. align: 'center',
  1262. width: 110,
  1263. sorter: true,
  1264. render: (a: any, b: any) => {
  1265. return <StatisticNull data={b} field='income_val24h_day' />
  1266. }
  1267. },
  1268. {
  1269. title: '激活首日广告变现金额',
  1270. dataIndex: 'income_val1_day',
  1271. key: 'income_val1_day',
  1272. align: 'center',
  1273. width: 110,
  1274. sorter: true,
  1275. render: (a: any, b: any) => {
  1276. return <StatisticNull data={b} field='income_val1_day' />
  1277. }
  1278. },
  1279. {
  1280. title: '激活3日广告变现金额',
  1281. dataIndex: 'income_val3_day',
  1282. key: 'income_val3_day',
  1283. align: 'center',
  1284. width: 110,
  1285. sorter: true,
  1286. render: (a: any, b: any) => {
  1287. return <StatisticNull data={b} field='income_val3_day' />
  1288. }
  1289. },
  1290. {
  1291. title: '激活7日广告变现金额',
  1292. dataIndex: 'income_val7_day',
  1293. key: 'income_val7_day',
  1294. align: 'center',
  1295. width: 110,
  1296. sorter: true,
  1297. render: (a: any, b: any) => {
  1298. return <StatisticNull data={b} field='income_val7_day' />
  1299. }
  1300. },
  1301. {
  1302. title: '激活14日广告变现金额',
  1303. dataIndex: 'income_val14_day',
  1304. key: 'income_val14_day',
  1305. align: 'center',
  1306. width: 110,
  1307. sorter: true,
  1308. render: (a: any, b: any) => {
  1309. return <StatisticNull data={b} field='income_val14_day' />
  1310. }
  1311. },
  1312. {
  1313. title: '广告变现金额',
  1314. dataIndex: 'ad_monetization_amount_day',
  1315. key: 'ad_monetization_amount_day',
  1316. align: 'center',
  1317. width: 110,
  1318. sorter: true,
  1319. render: (a: any, b: any) => {
  1320. return <StatisticNull data={b} field='ad_monetization_amount_day' />
  1321. }
  1322. },
  1323. {
  1324. title: '激活首24小时广告变现人数',
  1325. dataIndex: 'ad_paying_users24h_day',
  1326. key: 'ad_paying_users24h_day',
  1327. align: 'center',
  1328. width: 110,
  1329. sorter: true,
  1330. render: (a: any, b: any) => {
  1331. return <StatisticNull data={b} field='ad_paying_users24h_day' />
  1332. }
  1333. },
  1334. {
  1335. title: '激活首日广告变现人数',
  1336. dataIndex: 'ad_paying_users_d1_day',
  1337. key: 'ad_paying_users_d1_day',
  1338. align: 'center',
  1339. width: 110,
  1340. sorter: true,
  1341. render: (a: any, b: any) => {
  1342. return <StatisticNull data={b} field='ad_paying_users_d1_day' />
  1343. }
  1344. },
  1345. {
  1346. title: '激活3日广告变现人数',
  1347. dataIndex: 'ad_monetization_dedup_active3d_pv_day',
  1348. key: 'ad_monetization_dedup_active3d_pv_day',
  1349. align: 'center',
  1350. width: 110,
  1351. sorter: true,
  1352. render: (a: any, b: any) => {
  1353. return <StatisticNull data={b} field='ad_monetization_dedup_active3d_pv_day' />
  1354. }
  1355. },
  1356. {
  1357. title: '激活7日广告变现人数',
  1358. dataIndex: 'ad_monetization_dedup_active7d_pv_day',
  1359. key: 'ad_monetization_dedup_active7d_pv_day',
  1360. align: 'center',
  1361. width: 110,
  1362. sorter: true,
  1363. render: (a: any, b: any) => {
  1364. return <StatisticNull data={b} field='ad_monetization_dedup_active7d_pv_day' />
  1365. }
  1366. },
  1367. {
  1368. title: '小游戏注册首日广告变现ARPU(平台上报)',
  1369. dataIndex: 'mini_game_first_day_ad_paying_arpu',
  1370. key: 'mini_game_first_day_ad_paying_arpu',
  1371. align: 'center',
  1372. width: 110,
  1373. sorter: true,
  1374. render: (a: any, b: any) => {
  1375. return <StatisticNull data={b} field='mini_game_first_day_ad_paying_arpu' />
  1376. }
  1377. },
  1378. {
  1379. title: '小游戏广告变现ARPU(平台上报)',
  1380. dataIndex: 'mini_game_ad_monetization_arpu',
  1381. key: 'mini_game_ad_monetization_arpu',
  1382. align: 'center',
  1383. width: 110,
  1384. sorter: true,
  1385. render: (a: any, b: any) => {
  1386. return <StatisticNull data={b} field='mini_game_ad_monetization_arpu' />
  1387. }
  1388. },
  1389. {
  1390. title: '小游戏注册首日广告变现ROI(平台上报)',
  1391. dataIndex: 'mini_game_income_roi1',
  1392. key: 'mini_game_income_roi1',
  1393. align: 'center',
  1394. width: 110,
  1395. sorter: true,
  1396. render: (a: any, b: any) => {
  1397. if (b?.mini_game_income_roi1 !== undefined && b?.mini_game_income_roi1 !== null) {
  1398. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1399. } else {
  1400. return '--'
  1401. }
  1402. }
  1403. },
  1404. {
  1405. title: '小游戏注册3日广告变现ROI(平台上报)',
  1406. dataIndex: 'minigame3d_income_roi',
  1407. key: 'minigame3d_income_roi',
  1408. align: 'center',
  1409. width: 110,
  1410. sorter: true,
  1411. render: (a: any, b: any) => {
  1412. if (b?.minigame3d_income_roi !== undefined && b?.minigame3d_income_roi !== null) {
  1413. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1414. } else {
  1415. return '--'
  1416. }
  1417. }
  1418. },
  1419. {
  1420. title: '小游戏注册7日广告变现ROI(平台上报)',
  1421. dataIndex: 'minigame7d_income_roi',
  1422. key: 'minigame7d_income_roi',
  1423. align: 'center',
  1424. width: 110,
  1425. sorter: true,
  1426. render: (a: any, b: any) => {
  1427. if (b?.minigame7d_income_roi !== undefined && b?.minigame7d_income_roi !== null) {
  1428. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1429. } else {
  1430. return '--'
  1431. }
  1432. }
  1433. },
  1434. {
  1435. title: '小游戏广告变现ROI(平台上报)',
  1436. dataIndex: 'mini_game_ad_monetization_roi',
  1437. key: 'mini_game_ad_monetization_roi',
  1438. align: 'center',
  1439. width: 110,
  1440. sorter: true,
  1441. render: (a: any, b: any) => {
  1442. if (b?.mini_game_ad_monetization_roi !== undefined && b?.mini_game_ad_monetization_roi !== null) {
  1443. return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
  1444. } else {
  1445. return '--'
  1446. }
  1447. }
  1448. },
  1449. {
  1450. title: '小游戏注册首日广告变现成本(平台上报)',
  1451. dataIndex: 'mini_game_first_day_ad_paying_cost',
  1452. key: 'mini_game_first_day_ad_paying_cost',
  1453. align: 'center',
  1454. width: 110,
  1455. sorter: true,
  1456. render: (a: any, b: any) => {
  1457. return <StatisticNull data={b} field='mini_game_first_day_ad_paying_cost' />
  1458. }
  1459. },
  1460. {
  1461. title: '小游戏广告变现成本(平台上报)',
  1462. dataIndex: 'mini_game_ad_monetization_cost',
  1463. key: 'mini_game_ad_monetization_cost',
  1464. align: 'center',
  1465. width: 110,
  1466. sorter: true,
  1467. render: (a: any, b: any) => {
  1468. return <StatisticNull data={b} field='mini_game_ad_monetization_cost' />
  1469. }
  1470. },
  1471. {
  1472. title: '小游戏注册3日广告变现金额(平台上报)',
  1473. dataIndex: 'mini_game_ad_monetization_amount_d3_day',
  1474. key: 'mini_game_ad_monetization_amount_d3_day',
  1475. align: 'center',
  1476. width: 110,
  1477. sorter: true,
  1478. render: (a: any, b: any) => {
  1479. return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d3_day' />
  1480. }
  1481. },
  1482. {
  1483. title: '小游戏注册首日广告变现人数(平台上报)',
  1484. dataIndex: 'mini_game_first_day_ad_monetization_users_day',
  1485. key: 'mini_game_first_day_ad_monetization_users_day',
  1486. align: 'center',
  1487. width: 110,
  1488. sorter: true,
  1489. render: (a: any, b: any) => {
  1490. return <StatisticNull data={b} field='mini_game_first_day_ad_monetization_users_day' />
  1491. }
  1492. },
  1493. {
  1494. title: '小游戏注册3日广告变现人数(平台上报)',
  1495. dataIndex: 'minigame3d_income_uv_day',
  1496. key: 'minigame3d_income_uv_day',
  1497. align: 'center',
  1498. width: 110,
  1499. sorter: true,
  1500. render: (a: any, b: any) => {
  1501. return <StatisticNull data={b} field='minigame3d_income_uv_day' />
  1502. }
  1503. },
  1504. {
  1505. title: '小游戏注册7日广告变现人数(平台上报)',
  1506. dataIndex: 'minigame7d_income_uv_day',
  1507. key: 'minigame7d_income_uv_day',
  1508. align: 'center',
  1509. width: 110,
  1510. sorter: true,
  1511. render: (a: any, b: any) => {
  1512. return <StatisticNull data={b} field='minigame7d_income_uv_day' />
  1513. }
  1514. },
  1515. {
  1516. title: '小游戏广告变现人数(平台上报)',
  1517. dataIndex: 'mini_game_ad_monetization_users_day',
  1518. key: 'mini_game_ad_monetization_users_day',
  1519. align: 'center',
  1520. width: 110,
  1521. sorter: true,
  1522. render: (a: any, b: any) => {
  1523. return <StatisticNull data={b} field='mini_game_ad_monetization_users_day' />
  1524. }
  1525. },
  1526. ]
  1527. return [
  1528. ...adArr,
  1529. ...adDataArr,
  1530. ...iaaDataArr
  1531. ]
  1532. }
  1533. export default tableDynamicConfig