|
@@ -303,7 +303,7 @@ function tablePlanConfig(
|
|
|
ellipsis: true,
|
|
|
render: (_: any, b: any) => {
|
|
|
// return <BoxOther creativeComponents={b?.creative_preview?.[0] || {}} />
|
|
|
- return <CreativePreview creativePreview={b?.creative_preview || []} deliveryMode={b?.delivery_mode}/>
|
|
|
+ return <CreativePreview creativePreview={b?.creative_preview || []} deliveryMode={b?.delivery_mode} />
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -314,12 +314,15 @@ function tablePlanConfig(
|
|
|
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 overlay={<Menu>
|
|
|
- <Menu.Item><a onClick={() => log(b)}>告警日志</a></Menu.Item>
|
|
|
- <Menu.Item><a onClick={() => handleTag(b)}>打标记</a></Menu.Item>
|
|
|
- {b?.tag_value ? <Menu.Item><a style={{ color: 'red' }} onClick={() => delTag(b)}>删除标记</a></Menu.Item> : undefined}
|
|
|
- </Menu>}>
|
|
|
+ <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>
|
|
@@ -382,7 +385,7 @@ function tablePlanConfig(
|
|
|
sorter: true,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.ctr_total !== undefined && b?.ctr_total !== null) {
|
|
|
- return <Statistic value={a ? a.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -485,7 +488,7 @@ function tablePlanConfig(
|
|
|
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.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -510,7 +513,7 @@ function tablePlanConfig(
|
|
|
width: 120,
|
|
|
sorter: true,
|
|
|
render: (a: any, b: any) => {
|
|
|
- return <StatisticNull data={b} field='mp_follow_pv_cost_total' precision={2}/>
|
|
|
+ return <StatisticNull data={b} field='mp_follow_pv_cost_total' precision={2} />
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -544,7 +547,7 @@ function tablePlanConfig(
|
|
|
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.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -581,7 +584,7 @@ function tablePlanConfig(
|
|
|
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.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -620,7 +623,7 @@ function tablePlanConfig(
|
|
|
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.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -668,7 +671,7 @@ function tablePlanConfig(
|
|
|
sorter: true,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.order_rate_total !== undefined && b?.order_rate_total !== null) {
|
|
|
- return <Statistic value={a ? a.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -683,7 +686,7 @@ function tablePlanConfig(
|
|
|
sorter: true,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.order_roi_total !== undefined && b?.order_roi_total !== null) {
|
|
|
- return <Statistic value={a ? a.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|
|
@@ -742,7 +745,7 @@ function tablePlanConfig(
|
|
|
sorter: true,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.conversions_rate_total !== undefined && b?.conversions_rate_total !== null) {
|
|
|
- return <Statistic value={a ? a.toFixed(2) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
+ return <Statistic value={a ? (a * 100) : 0} precision={2} valueStyle={{ color: '#3f8600' }} suffix="%" />
|
|
|
} else {
|
|
|
return '--'
|
|
|
}
|