12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- import useCopy from '@/Hook/useCopy'
- import { RiseOutlined } from '@ant-design/icons'
- import { Progress, Space, Statistic } from 'antd'
- import { ColumnsType } from 'antd/lib/table'
- import React from 'react'
- import { ReactComponent as RocketSvg } from '@/assets/rocket.svg'
- import './index.less'
- import { CHUJIAFANGSHI, TUIGUANGMUBIAO, YOUHUAMUBIAO } from './enum'
- import Box from './components/box'
- import { GGStateData } from './data'
- import { copy } from '@/utils/utils'
- function columnsMonitor(planDetail: (id: number) => void, details: (id: number) => void, onChange: (value: any) => void, log: (value: any) => void) {
- const { copy } = useCopy()
- return function columns() {
- let newArr: ColumnsType<any> = [
- {
- title: '时间',
- dataIndex: 'day',
- key: 'day',
- align: 'center',
- width: 120,
- ellipsis: true
- },
- {
- title: '广告名称',
- dataIndex: 'adgroup_name',
- key: 'adgroup_name',
- align: 'center',
- width: 170,
- ellipsis: true,
- render: (str, b) => {
- return <a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => { onChange(b.adgroup_id) }}>{str}</a>
- }
- },
- {
- title: '广告ID',
- dataIndex: 'adgroup_id',
- key: 'adgroup_id',
- align: 'center',
- width: 100,
- ellipsis: true,
- render: (a: any) => {
- return <a onClick={() => { copy(a) }} style={{ color: '#3946c3' }}>{a}</a>
- }
- },
- {
- title: '计划ID',
- dataIndex: 'campaign_id',
- key: 'campaign_id',
- align: 'center',
- width: 100,
- ellipsis: true,
- render: (a: any) => {
- return <a onClick={() => { copy(a) }} style={{ color: '#3946c3' }}>{a}</a>
- }
- },
- {
- title: '广告账户',
- dataIndex: 'account_id',
- key: 'account_id',
- width: 70,
- ellipsis: true,
- align: 'center'
- },
- {
- title: '投手',
- dataIndex: 'put_user_name',
- key: 'put_user_name',
- align: 'center',
- ellipsis: true,
- width: 65
- },
- {
- title: '创意预览',
- dataIndex: 'creative_preivew',
- key: 'creative_preivew',
- width: 110,
- align: 'center',
- render: (a: any, b: any) => {
- return <Box b={a} />
- }
- },
- {
- title: '投放时间',
- dataIndex: 'begin_date',
- key: 'begin_date',
- width: 110,
- align: 'center',
- ellipsis: true,
- render(value, record) {
- return value + '~' + (record?.end_date === '1970-01-01' ? '长期投放' : record?.end_date)
- },
- },
- {
- title: '广告状态',
- dataIndex: 'status',
- key: 'status',
- align: 'center',
- width: 105,
- ellipsis: true,
- render: (a: any) => {
- return GGStateData[a] || '--'
- }
- },
- {
- title: '推广目标',
- dataIndex: 'promoted_object_type',
- key: 'promoted_object_type',
- align: 'center',
- width: 80,
- ellipsis: true,
- render: (a: any) => {
- return TUIGUANGMUBIAO[a]
- }
- },
- {
- title: '广告预算',
- dataIndex: 'daily_budget',
- key: 'daily_budget',
- width: 110,
- align: 'center',
- ellipsis: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '出价方式',
- dataIndex: 'bid_mode',
- key: 'bid_mode',
- align: 'center',
- width: 80,
- render: (a: any) => {
- return CHUJIAFANGSHI[a] || '--'
- }
- },
- {
- title: '当前出价',
- dataIndex: 'bid_amount',
- key: 'bid_amount',
- width: 110,
- align: 'center',
- ellipsis: true,
- render: (a: any) => {
- return <div style={a >= 500 ? { backgroundColor: 'rgba(255, 80, 82, .72)', height: 26, color: '#fff', display: 'flex', justifyContent: 'center', alignItems: 'center', fontWeight: 600 } : {}}><Statistic value={a || 0} valueStyle={a >= 500 ? { fontSize: 14 } : {}} /></div>
- }
- },
- {
- title: '广告总消耗',
- dataIndex: 'cost_total',
- key: 'cost_total',
- align: 'center',
- width: 100,
- ellipsis: true,
- sorter: true,
- render: (a: any) => {
- return <div style={{ height: 26, position: 'relative' }}>
- <Progress
- strokeColor={{
- from: '#10c1e9',
- to: '#6892d0',
- }}
- status="active"
- showInfo={false}
- percent={a ? a / 30000 * 100 : 0}
- />
- <span style={{ position: 'absolute', left: 0, top: 2, bottom: 0, right: 0 }}><Statistic value={a || 0} valueStyle={a >= 30000 ? { color: '#000', fontWeight: 500 } : { fontWeight: 500 }} /></span>
- </div>
- }
- },
- {
- title: '今日消耗',
- dataIndex: 'cost_day',
- key: 'cost_day',
- align: 'center',
- width: 105,
- sorter: true,
- render: (a: any) => {
- return <div style={{ height: 26, position: 'relative' }}>
- <Progress
- strokeColor={{
- from: '#ff5900',
- to: '#ffd380',
- }}
- status="active"
- showInfo={false}
- percent={a ? a / 2000 * 100 : 0}
- />
- <span style={{ position: 'absolute', left: 0, top: 2, bottom: 0, right: 0 }}><Statistic value={a || 0} valueStyle={a >= 2000 ? { color: '#000', fontWeight: 500 } : { fontWeight: 500 }} /></span>
- </div>
- }
- },
- {
- title: '当前小时消耗',
- dataIndex: 'cost_hour',
- key: 'cost_hour',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any) => {
- return <div style={{ height: 26, position: 'relative' }}>
- <Progress
- strokeColor={{
- from: '#e7a0f5',
- to: '#d161f7',
- }}
- status="active"
- showInfo={false}
- percent={a ? a / 300 * 100 : 0}
- />
- <span style={{ position: 'absolute', left: 0, top: 2, bottom: 0, right: 0 }}><Statistic value={a || 0} valueStyle={a >= 300 ? { color: '#000', fontWeight: 500, fontSize: 15 } : { fontWeight: 500, fontSize: 15 }} /></span>
- </div>
- }
- },
- {
- title: '前第1小时消耗',
- dataIndex: 'cost_last_hour',
- key: 'cost_last_hour',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '前第2小时消耗',
- dataIndex: 'cost_last_two_hour',
- key: 'cost_last_two_hour',
- align: 'center',
- width: 80,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '前第3小时消耗',
- dataIndex: 'cost_last_three_hour',
- key: 'cost_last_three_hour',
- align: 'center',
- width: 110,
- sorter: true,
- render: (a: number) => {
- return <Statistic value={a || 0} />
- },
- },
- {
- title: '当前小时消耗差额',
- dataIndex: 'cost_diff_before_hour',
- key: 'cost_diff_before_hour',
- align: 'center',
- width: 125,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} valueStyle={a > 0 ? { color: 'red' } : { color: 'green' }} />
- }
- },
- {
- title: '前第1小时消耗差额',
- dataIndex: 'cost_diff_before_two_hour',
- key: 'cost_diff_before_two_hour',
- align: 'center',
- width: 125,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} valueStyle={a > 0 ? { color: 'red' } : { color: 'green' }} />
- }
- },
- {
- title: "前第2小时消耗差额",
- dataIndex: 'cost_diff_before_three_hour',
- key: 'cost_diff_before_three_hour',
- align: 'center',
- width: 125,
- sorter: true,
- render: (a: number) => {
- return <Statistic value={a || 0} valueStyle={a > 0 ? { color: 'red' } : { color: 'green' }} />
- },
- },
- {
- title: "前三小时消耗趋势",
- dataIndex: 'cost_trend_last_three_hour',
- key: 'cost_trend_last_three_hour',
- align: 'center',
- width: 75,
- render: (a: number) => {
- return a > 0 ? <RiseOutlined style={{ color: 'red', fontWeight: 900, fontSize: 22 }} /> : '--'
- },
- },
- {
- title: '当前5min消耗流速',
- dataIndex: 'cost_speed',
- key: 'cost_speed',
- align: 'center',
- width: 115,
- render: (a: any) => {
- a = a ? parseFloat(a.toFixed(2)) : 0
- return <div style={{ height: 26, position: 'relative' }}>
- <Progress
- strokeColor={{
- from: '#00DDFF',
- to: '#37A2FF',
- }}
- status="active"
- showInfo={false}
- percent={a ? a / 100 * 100 : 0}
- />
- <span style={{ position: 'absolute', left: 0, top: 2, bottom: 0, right: 0 }}><Statistic value={a || 0} valueStyle={a >= 100 ? { color: '#000', fontWeight: 500 } : { fontWeight: 500 }} /></span>
- </div>
- }
- },
- {
- title: '曝光量',
- dataIndex: 'view_day',
- key: 'view_day',
- align: 'center',
- width: 70,
- sorter: true,
- render: (a: number) => {
- return <Statistic value={a || 0} />
- },
- },
- {
- title: '千次曝光成本',
- dataIndex: 'thousand_display_price_day',
- key: 'thousand_display_price_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '点击量',
- dataIndex: 'click_day',
- key: 'click_day',
- align: 'center',
- width: 70,
- sorter: true,
- render: (a: number) => {
- return <Statistic value={a || 0} />
- },
- },
- {
- title: '点击均价',
- dataIndex: 'cpc_day',
- key: 'cpc_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '点击率',
- dataIndex: 'ctr_day',
- key: 'ctr_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- {
- title: '优化目标',
- dataIndex: 'optimization_goal',
- key: 'optimization_goal',
- align: 'center',
- width: 115,
- render: (a: any) => {
- return YOUHUAMUBIAO[a] || '--'
- }
- },
- {
- title: '转化目标量',
- dataIndex: 'conversions_count_day',
- key: 'conversions_count_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '转化目标成本',
- dataIndex: 'conversions_cost_day',
- key: 'conversions_cost_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <div style={a > 500 ? { backgroundColor: '#efea5b', height: 26, color: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center', fontWeight: 600 } : {}}><Statistic value={a || 0} /></div>
- }
- },
- {
- title: '目标转化率',
- dataIndex: 'conversions_rate_day',
- key: 'conversions_rate_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- {
- title: '下单量',
- dataIndex: 'order_count_day',
- key: 'order_count_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- // {
- // title: '首日新增下单量',
- // dataIndex: 'first_dayOrder_count_day',
- // key: 'first_dayOrder_count_day',
- // align: 'center',
- // width: 115,
- // sorter: true,
- // render: (a: any) => {
- // return <Statistic value={a || 0} />
- // }
- // },
- {
- title: '下单成本',
- dataIndex: 'order_cost_day',
- key: 'order_cost_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '下单率',
- dataIndex: 'order_rate_day',
- key: 'order_rate_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- {
- title: '下单金额',
- dataIndex: 'order_amount_day',
- key: 'order_amount_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- // {
- // title: '首日新增下单金额',
- // dataIndex: 'first_day_order_amount_day',
- // key: 'first_day_order_amount_day',
- // align: 'center',
- // width: 115,
- // sorter: true,
- // render: (a: any) => {
- // return <Statistic value={a || 0} />
- // }
- // },
- {
- title: '下单客单价',
- dataIndex: 'atv_day',
- key: 'atv_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '下单ROI',
- dataIndex: 'order_roi_day',
- key: 'order_roi_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- // {
- // title: '首日新增下单ROI',
- // dataIndex: 'first_day_order_roi_day',
- // key: 'first_day_order_roi_day',
- // align: 'center',
- // width: 115,
- // sorter: true,
- // render: (a: any) => {
- // a = a ? parseFloat((a * 100).toFixed(2)) : 0
- // return a + '%'
- // }
- // },
- {
- title: '公众号关注人数',
- dataIndex: 'mp_follow_uv_day',
- key: 'mp_follow_uv_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return a
- }
- },
- {
- title: '公众号关注率',
- dataIndex: 'mp_follow_rate_day',
- key: 'mp_follow_rate_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- {
- title: '公众号关注成本',
- dataIndex: 'mp_follow_cost_day',
- key: 'mp_follow_cost_day',
- align: 'center',
- width: 115,
- sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加粉成本',
- dataIndex: 'add_fans_cost_day',
- key: 'add_fans_cost_day',
- align: 'center',
- width: 75,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注次数成本',
- dataIndex: 'mp_follow_pv_cost_day',
- key: 'mp_follow_pv_cost_day',
- align: 'center',
- width: 80,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加粉数',
- dataIndex: 'add_fans_count_day',
- key: 'add_fans_count_day',
- align: 'center',
- width: 75,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注次数',
- dataIndex: 'mp_follow_pv_day',
- key: 'mp_follow_pv_day',
- align: 'center',
- width: 75,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加企业微信客服人数',
- dataIndex: 'scan_follow_uv_day',
- key: 'scan_follow_uv_day',
- align: 'center',
- width: 80,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加企业微信客服成本',
- dataIndex: 'scan_follow_cost_day',
- key: 'scan_follow_cost_day',
- align: 'center',
- width: 80,
- // sorter: true,
- render: (a: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加企业微信客服率',
- dataIndex: 'scan_follow_rate_day',
- key: 'scan_follow_rate_day',
- align: 'center',
- width: 80,
- // sorter: true,
- render: (a: any) => {
- a = a ? parseFloat((a * 100).toFixed(2)) : 0
- return a + '%'
- }
- },
- {
- title: '操作',
- dataIndex: 'event',
- key: 'event',
- align: 'center',
- width: 180,
- render: (a: string, b: any) => (<Space>
- <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', fontSize: 14 }} onClick={() => details(b)}>
- <span role="img" aria-label="fund-view" className="anticon anticon-fund-view"><RocketSvg /></span><a style={{ marginLeft: 4, color: '#1890ff', fontSize: 12 }}>详情</a>
- </div>
- <a onClick={() => log(b)}>告警日志</a>
- <a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => window.open(`https://ad.qq.com/atlas/${b?.account_id}/admanage/adgroup?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>
- )
- }
- ]
- return newArr
- }
- }
- let columnsList = () => {
- return function columns() {
- let newArr: ColumnsType<any> = [
- {
- title: '时间',
- dataIndex: 'time',
- key: 'time',
- align: 'center',
- width: 120,
- sorter: true,
- ellipsis: true
- },
- {
- title: '数据更新时间',
- dataIndex: 'create_time',
- key: 'create_time',
- align: 'center',
- width: 120,
- ellipsis: true
- },
- {
- title: '广告ID',
- dataIndex: 'adgroup_id',
- key: 'adgroup_id',
- align: 'center',
- width: 100,
- ellipsis: true,
- render: (a: any) => {
- return <a onClick={() => { copy(a) }} style={{ color: '#3946c3' }}>{a}</a>
- }
- },
- {
- title: '广告账户',
- dataIndex: 'account_id',
- key: 'account_id',
- width: 70,
- ellipsis: true,
- align: 'center'
- },
- {
- title: '消耗',
- dataIndex: 'cost',
- key: 'cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '曝光量',
- dataIndex: 'view',
- key: 'view',
- align: 'center',
- width: 80
- },
- {
- title: '千次曝光成本',
- dataIndex: 'thousand_display_price',
- key: 'thousand_display_price',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '点击量',
- dataIndex: 'click',
- key: 'click',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '点击率',
- dataIndex: 'ctr',
- key: 'ctr',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '点击均价',
- dataIndex: 'cpc',
- key: 'cpc',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '不感兴趣点击次数',
- dataIndex: 'no_interest_count',
- key: 'no_interest_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '朋友圈视频播放次数',
- dataIndex: 'video_play_count',
- key: 'video_play_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '下载次数',
- dataIndex: 'download_count',
- key: 'download_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '安装次数',
- dataIndex: 'install_count',
- key: 'install_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '激活次数',
- dataIndex: 'activated_count',
- key: 'activated_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注人数',
- dataIndex: 'mp_follow_uv',
- key: 'mp_follow_uv',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注成本',
- dataIndex: 'mp_follow_cost',
- key: 'mp_follow_cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注率',
- dataIndex: 'mp_follow_rate',
- key: 'mp_follow_rate',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '公众号关注次数',
- dataIndex: 'mp_follow_pv',
- key: 'mp_follow_pv',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '公众号关注次数成本',
- dataIndex: 'mp_follow_pv_cost',
- key: 'mp_follow_pv_cost',
- align: 'center',
- width: 100,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '快应用添加次数',
- dataIndex: 'add_quick_app_pv',
- key: 'add_quick_app_pv',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '快应用添加成本',
- dataIndex: 'add_quick_app_cost',
- key: 'add_quick_app_cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '快应用添加率',
- dataIndex: 'add_quick_app_rate',
- key: 'add_quick_app_rate',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '加企业微信客服人数',
- dataIndex: 'scan_follow_uv',
- key: 'scan_follow_uv',
- align: 'center',
- width: 100,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加企业微信客服成本',
- dataIndex: 'scan_follow_cost',
- key: 'scan_follow_cost',
- align: 'center',
- width: 100,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加企业微信客服率',
- dataIndex: 'scan_follow_rate',
- key: 'scan_follow_rate',
- align: 'center',
- width: 100,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '首日新增下单量',
- dataIndex: 'first_day_order_count',
- key: 'first_day_order_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '首日新增下单金额',
- dataIndex: 'first_day_order_amount',
- key: 'first_day_order_amount',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '首日新增下单ROI',
- dataIndex: 'first_day_order_roi',
- key: 'first_day_order_roi',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '订单量',
- dataIndex: 'order_count',
- key: 'order_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '订单金额',
- dataIndex: 'order_amount',
- key: 'order_amount',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '下单成本',
- dataIndex: 'order_cost',
- key: 'order_cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '下单率',
- dataIndex: 'order_rate',
- key: 'order_rate',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '下单ROI',
- dataIndex: 'order_roi',
- key: 'order_roi',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '客单价',
- dataIndex: 'atv',
- key: 'atv',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '转化量',
- dataIndex: 'conversions_count',
- key: 'conversions_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '转化成本',
- dataIndex: 'conversions_cost',
- key: 'conversions_cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '深度转化',
- dataIndex: 'deep_conversions_count',
- key: 'deep_conversions_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '转化率',
- dataIndex: 'conversions_rate',
- key: 'conversions_rate',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
- }
- },
- {
- title: '加粉数',
- dataIndex: 'add_fans_count',
- key: 'add_fans_count',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- {
- title: '加粉成本',
- dataIndex: 'add_fans_cost',
- key: 'add_fans_cost',
- align: 'center',
- width: 90,
- render: (a: any, b: any) => {
- return <Statistic value={a || 0} />
- }
- },
- ]
- return newArr
- }
- }
- export {
- columnsMonitor,
- columnsList
- }
|