1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402 |
- import { BidModeEnum, BidStrategyEnum, OptimizationGoalEnum } from '@/services/launchAdq/enum'
- import React from 'react'
- import { Badge, Dropdown, Menu, Space, Statistic } from 'antd'
- import { ReactComponent as RocketSvg } from '@/assets/rocket.svg'
- import '../../launchSystemNew/adq/index.less'
- import { copy } from '@/utils/utils'
- import { ColumnsType } from 'antd/lib/table'
- import StatisticNull from '@/components/StatisticNull'
- import { DownOutlined } from '@ant-design/icons'
- import TimeSeriesLook from '../../launchSystemNew/adq/ad/timeSeriesLook'
- import SwitchStatus from '../adqv3/ad/switchStatus'
- import CreativePreview from './CreativePreview'
- import { ADGROUP_STATUS } from '@/pages/adMonitor/adMonitorList/data'
- function tablePlanConfig(
- onChange: () => void,
- details: (data: any) => void,
- log: (data: any) => void,
- handleTag: (data: any) => void,
- delTag: (data: any) => void,
- ): ColumnsType<any> {
- let adArr: ColumnsType<any> = [
- {
- title: '启停',
- dataIndex: 'configured_status',
- key: 'configured_status',
- align: 'center',
- width: 40,
- fixed: 'left',
- render: (a: string, b: any) => {
- if (b?.account_id === '总计') {
- return '--'
- }
- return <SwitchStatus configuredStatus={a} isDeleted={b?.is_deleted} adgroupId={b?.adgroup_id} accountId={b?.account_id} onChange={onChange} />
- }
- },
- {
- title: '所属账号',
- dataIndex: 'account_id',
- key: 'account_id',
- align: 'center',
- width: 80,
- ellipsis: true,
- render: (a: string) => {
- return <Space>
- <a onClick={() => copy(a)} >{a}</a>
- </Space>
- }
- },
- {
- title: '腾讯备注',
- dataIndex: 'memo',
- key: 'memo',
- align: 'center',
- width: 80,
- ellipsis: true,
- render(value, record) {
- if (record?.account_id === '总计') {
- return '--'
- }
- return value
- },
- },
- {
- title: '本地备注',
- dataIndex: 'remark',
- key: 'remark',
- align: 'center',
- width: 80,
- ellipsis: true,
- render(value, record) {
- if (record?.account_id === '总计') {
- return '--'
- }
- return value
- },
- },
- {
- title: '广告ID',
- dataIndex: 'adgroup_id',
- key: 'adgroup_id',
- align: 'center',
- width: 100,
- ellipsis: true,
- render: (a: string, b: any) => {
- if (b?.account_id === '总计') {
- return '--'
- }
- return <Space>
- <a onClick={() => copy(a)} >{a}</a>
- </Space>
- }
- },
- {
- title: '投手',
- dataIndex: 'put_user_name',
- key: 'put_user_name',
- align: 'center',
- width: 70,
- ellipsis: true,
- render(value, record) {
- if (record?.account_id === '总计') return '--';
- return value
- },
- },
- {
- title: '广告名称',
- dataIndex: 'adgroup_name',
- key: 'adgroup_name',
- width: 280,
- ellipsis: true,
- render: (a: string, b: any) => {
- if (b?.account_id === '总计') return '--';
- return a
- }
- },
- {
- title: '投放日期',
- dataIndex: 'begin_date',
- key: 'begin_date',
- align: 'center',
- width: 150,
- ellipsis: true,
- sorter: true,
- render: (a: string, b: { end_date: string, account_id: any }) => {
- if (b?.account_id === '总计') return '--';
- return b?.end_date && b?.end_date !== '1970-01-01' ? a + '~' + b.end_date : a + '~' + '长期投放'
- }
- },
- {
- title: '投放时间',
- dataIndex: 'time_series',
- key: 'time_series',
- align: 'center',
- width: 55,
- render: (a: string, b: { endDate: string, account_id: string }) => {
- if (b?.account_id === '总计') return '--';
- return <TimeSeriesLook timeSeries={a} />
- }
- },
- {
- title: '首日开始投放时间',
- dataIndex: 'first_day_begin_time',
- key: 'first_day_begin_time',
- align: 'center',
- width: 70,
- render(value, record) {
- if (record?.account_id === '总计') return '--';
- return value
- },
- },
- {
- title: '出价',
- dataIndex: 'bid_amount',
- key: 'bid_amount',
- width: 140,
- ellipsis: true,
- sorter: true,
- render: (a: string, b: { bid_mode: string, optimization_goal: string, account_id: any }) => {
- if (b?.account_id === '总计') return '--';
- return `${b?.bid_mode ? BidModeEnum[b?.bid_mode as keyof typeof BidModeEnum] : ''} ${a}元/${b?.bid_mode === 'BID_MODE_CPM' ? '千次曝光' : b?.bid_mode === 'BID_MODE_CPC' ? '点击' : OptimizationGoalEnum[b?.optimization_goal as keyof typeof OptimizationGoalEnum]}`
- }
- },
- {
- title: '深度优化出价',
- dataIndex: 'deep_conversion_behavior_bid',
- key: 'deep_conversion_behavior_bid',
- width: 70,
- align: 'center',
- render: (a: string, b: { deep_conversion_spec_json: any, deep_conversion_worth_rate: number, account_id: any }) => {
- if (b?.account_id === '总计') return '--';
- if (b?.deep_conversion_spec_json) {
- return b?.deep_conversion_worth_rate
- } else {
- return '--'
- }
- }
- },
- {
- title: '出价类型',
- dataIndex: 'smart_bid_type',
- key: 'smart_bid_type',
- align: 'center',
- width: 80,
- ellipsis: true,
- render: (a: string, b) => {
- if (b?.account_id === '总计') return '--';
- return a === 'SMART_BID_TYPE_CUSTOM' ? '手动出价' : '自动出价'
- }
- },
- {
- title: '出价策略',
- dataIndex: 'bid_strategy',
- key: 'bid_strategy',
- align: 'center',
- width: 70,
- ellipsis: true,
- render: (a: string, b) => {
- if (b?.account_id === '总计') return '--';
- return BidStrategyEnum[a as keyof typeof BidStrategyEnum]
- }
- },
- {
- title: '广告组日预算(元)',
- dataIndex: 'daily_budget',
- key: 'daily_budget',
- align: 'center',
- width: 70,
- sorter: true,
- render: (a: string, b: any) => {
- if (b?.account_id === '总计') return '--';
- return a
- }
- },
- {
- title: '是否开启自动版位功能',
- dataIndex: 'automatic_site_enabled',
- key: 'automatic_site_enabled',
- align: 'center',
- width: 80,
- render: (a: any, b: any) => {
- if (b?.account_id === '总计') return '--';
- return a ? '开' : '关'
- }
- },
- {
- title: '定向条件描述',
- dataIndex: 'targeting_translation',
- key: 'targeting_translation',
- align: 'center',
- width: 80,
- ellipsis: true,
- render: (a: any) => {
- return a || '--'
- }
- },
- {
- title: '创建时间',
- dataIndex: 'created_time',
- key: 'created_time',
- align: 'center',
- width: 140,
- ellipsis: true,
- render(value, record) {
- if (record?.account_id === '总计') return '--';
- return value
- },
- },
- {
- title: '是否已删除',
- dataIndex: 'is_deleted',
- key: 'is_deleted',
- align: 'center',
- width: 60,
- render: (a: any, b: any) => {
- if (b?.account_id === '总计') return '--';
- return <Badge status={!a ? "processing" : "error"} text={a ? '是' : '否'} />
- }
- },
- {
- title: '广告状态',
- dataIndex: 'system_status',
- key: 'system_status',
- align: 'center',
- width: 100,
- ellipsis: true,
- render: (a: string) => {
- return ADGROUP_STATUS[a as keyof typeof ADGROUP_STATUS]
- }
- },
- {
- title: '标记备注',
- dataIndex: 'tag_remark',
- key: 'tag_remark',
- align: 'center',
- width: 100,
- ellipsis: true,
- render(value, b) {
- if (b?.account_id === '总计') return '--';
- return value || '--'
- },
- },
- {
- title: '广告详情',
- dataIndex: 'cost_speed',
- key: 'cost_speed',
- align: 'center',
- width: 80,
- className: 'padding2',
- render: (a: any, b: any) => {
- if (b?.account_id === '总计') return '--';
- return <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', lineHeight: 'normal', fontSize: 14 }}>
- <RocketSvg /> <a onClick={() => details(b)} style={{ marginLeft: 10 }}>详情</a>
- </div>
- }
- },
- {
- title: '创意预览',
- dataIndex: 'creative_ids',
- key: 'creative_ids',
- width: 140,
- ellipsis: true,
- render: (_: any, b: any) => {
- // return <BoxOther creativeComponents={b?.creative_preview?.[0] || {}} />
- return <CreativePreview creativePreview={b?.creative_preview || []} deliveryMode={b?.delivery_mode} />
- }
- },
- {
- title: '操作',
- dataIndex: 'cz',
- key: 'cz',
- width: 130,
- align: 'center',
- render: (a: any, b: any) => {
- if (b?.account_id === '总计') return '--';
- let items = [
- { label: <a style={{ fontSize: 12 }} onClick={() => log(b)}>告警日志</a>, key: '1' },
- { label: <a style={{ fontSize: 12 }} onClick={() => handleTag(b)}>打标记</a>, key: '2' }
- ]
- if (b?.tag_value) {
- items.push({ label: <a style={{ color: 'red', fontSize: 12 }} onClick={() => delTag(b)}>删除标记</a>, key: '3' })
- }
- return <Space>
- <Dropdown menu={{ items }}>
- <a><Space size={2}>更多 <DownOutlined /></Space></a>
- </Dropdown>
- <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>
- </Space>
- }
- }
- ]
- let adDataArr: ColumnsType<any> = [
- {
- title: '消耗',
- dataIndex: 'cost_total',
- key: 'cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='cost_total' />
- }
- },
- {
- title: '曝光量',
- dataIndex: 'view_total',
- key: 'view_total',
- align: 'center',
- width: 100,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='view_total' />
- }
- },
- {
- title: '千次曝光成本',
- dataIndex: 'thousand_display_price_total',
- key: 'thousand_display_price_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='thousand_display_price_total' precision={2} />
- }
- },
- {
- title: '点击量',
- dataIndex: 'click_total',
- key: 'click_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='click_total' />
- }
- },
- {
- title: '点击率',
- dataIndex: 'ctr_total',
- key: 'ctr_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.ctr_total !== undefined && b?.ctr_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '点击均价',
- dataIndex: 'cpc_total',
- key: 'cpc_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='cpc_total' />
- }
- },
- {
- title: '不感兴趣点击次数',
- dataIndex: 'no_interest_count_total',
- key: 'no_interest_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='no_interest_count_total' />
- }
- },
- // {
- // title: '朋友圈视频播放次数',
- // dataIndex: 'video_play_count_total',
- // key: 'video_play_count_total',
- // align: 'center',
- // width: 110,
- // sorter: true,
- // render: (a: any, b: any) => {
- // return <StatisticNull data={b} field='video_play_count_total' />
- // }
- // },
- {
- title: '下载次数',
- dataIndex: 'download_count_total',
- key: 'download_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='download_count_total' />
- }
- },
- {
- title: '安装次数',
- dataIndex: 'install_count_total',
- key: 'install_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='install_count_total' />
- }
- },
- {
- title: '激活次数',
- dataIndex: 'activated_count_total',
- key: 'activated_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='activated_count_total' />
- }
- },
- {
- title: '公众号关注人数',
- dataIndex: 'mp_follow_uv_total',
- key: 'mp_follow_uv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mp_follow_uv_total' />
- }
- },
- {
- title: '公众号关注成本',
- dataIndex: 'mp_follow_cost_total',
- key: 'mp_follow_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mp_follow_cost_total' />
- }
- },
- {
- title: '公众号关注率',
- dataIndex: 'mp_follow_rate_total',
- key: 'mp_follow_rate_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.mp_follow_rate_total !== undefined && b?.mp_follow_rate_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '公众号关注次数',
- dataIndex: 'mp_follow_pv_total',
- key: 'mp_follow_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mp_follow_pv_total' />
- }
- },
- {
- title: '公众号关注次数成本',
- dataIndex: 'mp_follow_pv_cost_total',
- key: 'mp_follow_pv_cost_total',
- align: 'center',
- width: 120,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mp_follow_pv_cost_total' precision={2} />
- }
- },
- {
- title: '快应用添加次数',
- dataIndex: 'add_quick_app_pv_total',
- key: 'add_quick_app_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='add_quick_app_pv_total' />
- }
- },
- {
- title: '快应用添加成本',
- dataIndex: 'add_quick_app_cost_total',
- key: 'add_quick_app_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='add_quick_app_cost_total' />
- }
- },
- {
- title: '快应用添加率',
- dataIndex: 'add_quick_app_rate_total',
- key: 'add_quick_app_rate_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.add_quick_app_rate_total !== undefined && b?.add_quick_app_rate_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '加企业微信客服人数',
- dataIndex: 'scan_follow_uv_total',
- key: 'scan_follow_uv_total',
- align: 'center',
- width: 120,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='scan_follow_uv_total' />
- }
- },
- {
- title: '加企业微信客服成本',
- dataIndex: 'scan_follow_cost_total',
- key: 'scan_follow_cost_total',
- align: 'center',
- width: 120,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='scan_follow_cost_total' precision={2} />
- }
- },
- {
- title: '加企业微信客服率',
- dataIndex: 'scan_follow_rate_total',
- key: 'scan_follow_rate_total',
- align: 'center',
- width: 120,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.scan_follow_rate_total !== undefined && b?.scan_follow_rate_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '首日新增下单量',
- dataIndex: 'first_day_order_count_total',
- key: 'first_day_order_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='first_day_order_count_total' />
- }
- },
- {
- title: '首日新增下单金额',
- dataIndex: 'first_day_order_amount_total',
- key: 'first_day_order_amount_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='first_day_order_amount_total' />
- }
- },
- {
- title: '首日新增下单ROI',
- dataIndex: 'first_day_order_roi_total',
- key: 'first_day_order_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.first_day_order_roi_total !== undefined && b?.first_day_order_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '订单量',
- dataIndex: 'order_count_total',
- key: 'order_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='order_count_total' />
- }
- },
- {
- title: '订单金额',
- dataIndex: 'order_amount_total',
- key: 'order_amount_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='order_amount_total' />
- }
- },
- {
- title: '下单成本',
- dataIndex: 'order_cost_total',
- key: 'order_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='order_cost_total' precision={2} />
- }
- },
- {
- title: '下单率',
- dataIndex: 'order_rate_total',
- key: 'order_rate_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.order_rate_total !== undefined && b?.order_rate_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '下单ROI',
- dataIndex: 'order_roi_total',
- key: 'order_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.order_roi_total !== undefined && b?.order_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '客单价',
- dataIndex: 'atv_total',
- key: 'atv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='atv_total' precision={2} />
- }
- },
- {
- title: '转化量',
- dataIndex: 'conversions_count_total',
- key: 'conversions_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='conversions_count_total' />
- }
- },
- {
- title: '转化成本',
- dataIndex: 'conversions_cost_total',
- key: 'conversions_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='conversions_cost_total' precision={2} />
- }
- },
- {
- title: '深度转化',
- dataIndex: 'deep_conversions_count_total',
- key: 'deep_conversions_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='deep_conversions_count_total' />
- }
- },
- {
- title: '转化率',
- dataIndex: 'conversions_rate_total',
- key: 'conversions_rate_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.conversions_rate_total !== undefined && b?.conversions_rate_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '加粉数',
- dataIndex: 'add_fans_count_total',
- key: 'add_fans_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='add_fans_count_total' />
- }
- },
- {
- title: '加粉成本',
- dataIndex: 'add_fans_cost_total',
- key: 'add_fans_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='add_fans_cost_total' precision={2} />
- }
- },
- ]
- let iaaDataArr: ColumnsType<any> = [
- {
- title: '激活首24小时广告变现ARPPU(平台上报)',
- dataIndex: 'first_day_ad_pur_arppu_cost24h_pla_total',
- key: 'first_day_ad_pur_arppu_cost24h_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost24h_pla_total' />
- }
- },
- {
- title: '激活首24小时广告变现ROI(平台上报)',
- dataIndex: 'income_roi124h_pla_total',
- key: 'income_roi124h_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi124h_pla_total !== undefined && b?.income_roi124h_pla_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活首24小时广告变现次数(平台上报)',
- dataIndex: 'income_pv24h_pla_total',
- key: 'income_pv24h_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_pv24h_pla_total' />
- }
- },
- {
- title: '激活首日广告变现次数(平台上报)',
- dataIndex: 'income_pv1d_pla_total',
- key: 'income_pv1d_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_pv1d_pla_total' />
- }
- },
- {
- title: '激活3日广告变现次数(平台上报)',
- dataIndex: 'ad_monetization_pla_dedup_active3d_pv_total',
- key: 'ad_monetization_pla_dedup_active3d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_pla_dedup_active3d_pv_total' />
- }
- },
- {
- title: '激活7日广告变现次数(平台上报)',
- dataIndex: 'minigame7d_income_count_total',
- key: 'minigame7d_income_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='minigame_7d_income_count' />
- }
- },
- {
- title: '注册3日广告变现次数(平台上报)',
- dataIndex: 'minigame3d_income_count_total',
- key: 'minigame3d_income_count_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='minigame3d_income_count_total' />
- }
- },
- {
- title: '激活首24小时广告变现金额(平台上报)',
- dataIndex: 'income_val24h_pla_total',
- key: 'income_val24h_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val24h_pla_total' />
- }
- },
- {
- title: '注册首日广告变现金额(平台上报)',
- dataIndex: 'mini_game_first_day_ad_monetization_amount_total',
- key: 'mini_game_first_day_ad_monetization_amount_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_first_day_ad_monetization_amount_total' />
- }
- },
- {
- title: '激活7日广告变现金额(平台上报)',
- dataIndex: 'mini_game_ad_monetization_amount_d7_total',
- key: 'mini_game_ad_monetization_amount_d7_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d7_total' />
- }
- },
- {
- title: '激活14日广告变现金额(平台上报)',
- dataIndex: 'mini_game_ad_monetization_amount_d14_total',
- key: 'mini_game_ad_monetization_amount_d14_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d14_total' />
- }
- },
- {
- title: '广告变现金额(平台上报)',
- dataIndex: 'mini_game_ad_monetization_amount_total',
- key: 'mini_game_ad_monetization_amount_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_amount_total' />
- }
- },
- {
- title: '激活首24小时广告变现人数(平台上报)',
- dataIndex: 'ad_paying_users24h_pla_total',
- key: 'ad_paying_users24h_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_paying_users24h_pla_total' />
- }
- },
- {
- title: '激活首日广告变现人数(平台上报)',
- dataIndex: 'ad_monetization_pla_dedup_active1d_pv_total',
- key: 'ad_monetization_pla_dedup_active1d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_pla_dedup_active1d_pv_total' />
- }
- },
- {
- title: '激活7日变现人数(平台上报)',
- dataIndex: 'ad_monetization_pla_dedup_active7d_pv_total',
- key: 'ad_monetization_pla_dedup_active7d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_pla_dedup_active7d_pv_total' />
- }
- },
- {
- title: '激活首24小时广告变现ARPPU',
- dataIndex: 'first_day_ad_pur_arppu_cost24h_total',
- key: 'first_day_ad_pur_arppu_cost24h_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost24h_total' />
- }
- },
- {
- title: '激活首日广告变现ARPPU',
- dataIndex: 'first_day_ad_pur_arppu_cost_total',
- key: 'first_day_ad_pur_arppu_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='first_day_ad_pur_arppu_cost_total' />
- }
- },
- {
- title: '广告变现ARPPU',
- dataIndex: 'ad_monetization_arppu_total',
- key: 'ad_monetization_arppu_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_arppu_total' />
- }
- },
- {
- title: '激活首24小时广告变现ROI',
- dataIndex: 'income_roi124h_total',
- key: 'income_roi124h_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi124h_total !== undefined && b?.income_roi124h_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活首日广告变现ROI',
- dataIndex: 'income_roi1_total',
- key: 'income_roi1_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi1_total !== undefined && b?.income_roi1_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活3日广告变现ROI',
- dataIndex: 'income_roi3_total',
- key: 'income_roi3_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi3_total !== undefined && b?.income_roi3_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活7日广告变现ROI',
- dataIndex: 'income_roi7_total',
- key: 'income_roi7_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi7_total !== undefined && b?.income_roi7_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活14日广告变现ROI',
- dataIndex: 'income_roi14_total',
- key: 'income_roi14_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.income_roi14_total !== undefined && b?.income_roi14_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '广告变现ROI',
- dataIndex: 'ad_monetization_roi_total',
- key: 'ad_monetization_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.ad_monetization_roi_total !== undefined && b?.ad_monetization_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '激活首日广告变现成本(人数)',
- dataIndex: 'ad_paying_cost_d1_total',
- key: 'ad_paying_cost_d1_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_paying_cost_d1_total' />
- }
- },
- {
- title: '广告变现成本',
- dataIndex: 'ad_monetization_cost_total',
- key: 'ad_monetization_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_cost_total' />
- }
- },
- {
- title: '激活3日广告变现次数',
- dataIndex: 'ad_monetization_active3d_pv_total',
- key: 'ad_monetization_active3d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_active3d_pv_total' />
- }
- },
- {
- title: '激活7日广告变现次数',
- dataIndex: 'ad_monetization_active7d_pv_total',
- key: 'ad_monetization_active7d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_active7d_pv_total' />
- }
- },
- {
- title: '广告变现次数(平台上报)',
- dataIndex: 'income_pv_pla_total',
- key: 'income_pv_pla_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_pv_pla_total' />
- }
- },
- {
- title: '激活首24小时广告变现金额',
- dataIndex: 'income_val24h_total',
- key: 'income_val24h_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val24h_total' />
- }
- },
- {
- title: '激活首日广告变现金额',
- dataIndex: 'income_val1_total',
- key: 'income_val1_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val1_total' />
- }
- },
- {
- title: '激活3日广告变现金额',
- dataIndex: 'income_val3_total',
- key: 'income_val3_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val3_total' />
- }
- },
- {
- title: '激活7日广告变现金额',
- dataIndex: 'income_val7_total',
- key: 'income_val7_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val7_total' />
- }
- },
- {
- title: '激活14日广告变现金额',
- dataIndex: 'income_val14_total',
- key: 'income_val14_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='income_val14_total' />
- }
- },
- {
- title: '广告变现金额',
- dataIndex: 'ad_monetization_amount_total',
- key: 'ad_monetization_amount_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_amount_total' />
- }
- },
- {
- title: '激活首24小时广告变现人数',
- dataIndex: 'ad_paying_users24h_total',
- key: 'ad_paying_users24h_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_paying_users24h_total' />
- }
- },
- {
- title: '激活首日广告变现人数',
- dataIndex: 'ad_paying_users_d1_total',
- key: 'ad_paying_users_d1_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_paying_users_d1_total' />
- }
- },
- {
- title: '激活3日广告变现人数',
- dataIndex: 'ad_monetization_dedup_active3d_pv_total',
- key: 'ad_monetization_dedup_active3d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_dedup_active3d_pv_total' />
- }
- },
- {
- title: '激活7日广告变现人数',
- dataIndex: 'ad_monetization_dedup_active7d_pv_total',
- key: 'ad_monetization_dedup_active7d_pv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='ad_monetization_dedup_active7d_pv_total' />
- }
- },
- {
- title: '小游戏注册首日广告变现ARPU(平台上报)',
- dataIndex: 'mini_game_first_day_ad_paying_arpu_total',
- key: 'mini_game_first_day_ad_paying_arpu_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_first_day_ad_paying_arpu_total' />
- }
- },
- {
- title: '小游戏广告变现ARPU(平台上报)',
- dataIndex: 'mini_game_ad_monetization_arpu_total',
- key: 'mini_game_ad_monetization_arpu_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_arpu_total' />
- }
- },
- {
- title: '小游戏注册首日广告变现ROI(平台上报)',
- dataIndex: 'mini_game_income_roi1_total',
- key: 'mini_game_income_roi1_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.mini_game_income_roi1_total !== undefined && b?.mini_game_income_roi1_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '小游戏注册3日广告变现ROI(平台上报)',
- dataIndex: 'minigame3d_income_roi_total',
- key: 'minigame3d_income_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.minigame3d_income_roi_total !== undefined && b?.minigame3d_income_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '小游戏注册7日广告变现ROI(平台上报)',
- dataIndex: 'minigame7d_income_roi_total',
- key: 'minigame7d_income_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.minigame7d_income_roi_total !== undefined && b?.minigame7d_income_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '小游戏广告变现ROI(平台上报)',
- dataIndex: 'mini_game_ad_monetization_roi_total',
- key: 'mini_game_ad_monetization_roi_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- if (b?.mini_game_ad_monetization_roi_total !== undefined && b?.mini_game_ad_monetization_roi_total !== null) {
- return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- } else {
- return '--'
- }
- }
- },
- {
- title: '小游戏注册首日广告变现成本(平台上报)',
- dataIndex: 'mini_game_first_day_ad_paying_cost_total',
- key: 'mini_game_first_day_ad_paying_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_first_day_ad_paying_cost_total' />
- }
- },
- {
- title: '小游戏广告变现成本(平台上报)',
- dataIndex: 'mini_game_ad_monetization_cost_total',
- key: 'mini_game_ad_monetization_cost_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_cost_total' />
- }
- },
- {
- title: '小游戏注册3日广告变现金额(平台上报)',
- dataIndex: 'mini_game_ad_monetization_amount_d3_total',
- key: 'mini_game_ad_monetization_amount_d3_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_amount_d3_total' />
- }
- },
- {
- title: '小游戏注册首日广告变现人数(平台上报)',
- dataIndex: 'mini_game_first_day_ad_monetization_users_total',
- key: 'mini_game_first_day_ad_monetization_users_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_first_day_ad_monetization_users_total' />
- }
- },
- {
- title: '小游戏注册3日广告变现人数(平台上报)',
- dataIndex: 'minigame3d_income_uv_total',
- key: 'minigame3d_income_uv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='minigame3d_income_uv_total' />
- }
- },
- {
- title: '小游戏注册7日广告变现人数(平台上报)',
- dataIndex: 'minigame7d_income_uv_total',
- key: 'minigame7d_income_uv_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='minigame7d_income_uv_total' />
- }
- },
- {
- title: '小游戏广告变现人数(平台上报)',
- dataIndex: 'mini_game_ad_monetization_users_total',
- key: 'mini_game_ad_monetization_users_total',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any, b: any) => {
- return <StatisticNull data={b} field='mini_game_ad_monetization_users_total' />
- }
- },
- ]
- return [
- ...adArr,
- ...adDataArr,
- ...iaaDataArr
- ]
- }
- export default tablePlanConfig
|