|
@@ -2,6 +2,7 @@ import React from "react"
|
|
|
import { Space } from "antd"
|
|
|
import { AdStatus, PromotedObjectType, SpeedMode } from "@/services/launchAdq/enum"
|
|
|
import TargetingPopover from "../../components/targetingPopover"
|
|
|
+import { EyeOutlined } from "@ant-design/icons"
|
|
|
function tableConfig(callback: (data: any, type: 'log' | 'page') => void): any {
|
|
|
return [
|
|
|
{
|
|
@@ -78,6 +79,62 @@ function tableConfig(callback: (data: any, type: 'log' | 'page') => void): any {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '广告ID',
|
|
|
+ dataIndex: 'sysAdgroupId',
|
|
|
+ key: 'sysAdgroupId',
|
|
|
+ align: 'center',
|
|
|
+ width: 100,
|
|
|
+ render: (a: any, b: any) => {
|
|
|
+ if (a) {
|
|
|
+ return <span style={{ fontSize: "12px" }}>{a}</span>
|
|
|
+ } else {
|
|
|
+ return <span>--</span>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '定向ID',
|
|
|
+ dataIndex: 'sysTargetingId',
|
|
|
+ key: 'sysTargetingId',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ render: (a: any, b: any) => {
|
|
|
+ if (a) {
|
|
|
+ return <Space><span style={{ fontSize: "12px" }}>{a}</span><TargetingPopover id={b.sysTargetingId}/></Space>
|
|
|
+ } else {
|
|
|
+ return <span>--</span>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '创意ID',
|
|
|
+ dataIndex: 'sysAdcreativeId',
|
|
|
+ key: 'sysAdcreativeId',
|
|
|
+ align: 'center',
|
|
|
+ width: 100,
|
|
|
+ render: (a: any, b: any) => {
|
|
|
+ if (a) {
|
|
|
+ return <span style={{ fontSize: "12px" }}>{a}</span>
|
|
|
+ } else {
|
|
|
+ return <span>--</span>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '落地页ID',
|
|
|
+ dataIndex: 'sysPageId',
|
|
|
+ key: 'sysPageId',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ render: (a: any, b: any) => {
|
|
|
+ if (a) {
|
|
|
+ return <Space><span style={{ fontSize: "12px" }}>{a}</span> <a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => { callback(b.sysPageId, 'page') }}><EyeOutlined /></a></Space>
|
|
|
+ } else {
|
|
|
+ return <span>--</span>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
title: '创建时间',
|
|
|
dataIndex: 'createTime',
|
|
@@ -96,8 +153,6 @@ function tableConfig(callback: (data: any, type: 'log' | 'page') => void): any {
|
|
|
render: (a: any, b: any) => {
|
|
|
return <Space style={{ marginLeft: 10 }}>
|
|
|
<a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => { callback({ taskId: b.id, campaignName: b.campaignName }, 'log') }}>日志</a>
|
|
|
- <a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => { callback(b.sysPageId, 'page') }}>查看落地页</a>
|
|
|
- <TargetingPopover id={b.sysTargetingId}/>
|
|
|
{/* <Popconfirm
|
|
|
title={`你确定删除"${b?.taskName}"这个任务?`}
|
|
|
onConfirm={() => { del(b?.id) }}
|