|
@@ -1,4 +1,4 @@
|
|
|
-import { Tooltip } from "antd"
|
|
|
+import { Space, Tooltip } from "antd"
|
|
|
import React from "react"
|
|
|
import style from './index.less'
|
|
|
import { BidModeEnum, OptimizationGoalEnum, PromotedObjectType, SiteSetEnum } from "@/services/launchAdq/enum";
|
|
@@ -60,9 +60,9 @@ let columns = () => {
|
|
|
width: 100,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (a) {
|
|
|
- return <span style={{ fontSize: "12px" }}>{b?.endDate ? b?.beginDate + '~' + b?.endDate : b?.beginDate + '~ 长期投放'}</span>
|
|
|
+ return <span style={{ fontSize: "12px" }}>{b?.endDate ? b?.beginDate + '~' + b?.endDate : b?.beginDate + '~ 长期投放'}</span>
|
|
|
}
|
|
|
- return <span style={{ fontSize: "12px" }}>{b?.sysAdGroupData?.endDate ? b?.sysAdGroupData?.beginDate + '~' + b?.sysAdGroupData?.endDate : b?.sysAdGroupData?.beginDate + '~ 长期投放'}</span>
|
|
|
+ return <span style={{ fontSize: "12px" }}>{b?.sysAdGroupData?.endDate ? b?.sysAdGroupData?.beginDate + '~' + b?.sysAdGroupData?.endDate : b?.sysAdGroupData?.beginDate + '~ 长期投放'}</span>
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -160,15 +160,28 @@ let columns = () => {
|
|
|
title: '创意素材',
|
|
|
dataIndex: 'mediaData',
|
|
|
key: 'mediaData',
|
|
|
- width: 120,
|
|
|
+ width: 140,
|
|
|
render: (a: any, b: any) => {
|
|
|
- let adcreativeElements = b?.sysAdcreativeData?.adcreativeElements
|
|
|
+ let adcreativeElements = b?.sysAdcreativeData?.adcreativeElements
|
|
|
if (adcreativeElements) {
|
|
|
- if (Object.keys(adcreativeElements).includes('imageUrlList')) {
|
|
|
- return <span>11</span>
|
|
|
+ let keys = Object.keys(adcreativeElements)
|
|
|
+ if (keys.includes('imageUrlList')) {
|
|
|
+ return <Space wrap>{adcreativeElements.imageUrlList.map((url: string, index: number) => <img key={index} src={url} height={25} />)}</Space>
|
|
|
+ } else if (keys.includes('elementStory')) {
|
|
|
+ return <Space wrap>{adcreativeElements.elementStory.map((url: string, index: number) => <img key={index} src={url} height={25} />)}</Space>
|
|
|
+ } else {
|
|
|
+ if (keys.includes('videoUrl') || keys.includes('shortVideo1Url')) {
|
|
|
+ return <Space>
|
|
|
+ {keys?.includes('imageUrl') && <img src={adcreativeElements.imageUrl} height={25}/>}
|
|
|
+ {keys?.includes('videoUrl') && <video src={adcreativeElements.videoUrl} style={{ height: 25 }}/>}
|
|
|
+ {keys?.includes('shortVideo1Url') && <video src={adcreativeElements.shortVideo1Url} style={{ height: 25 }}/>}
|
|
|
+ </Space>
|
|
|
+ } else {
|
|
|
+ return keys?.includes('imageUrl') ? <img src={adcreativeElements.imageUrl} height={25}/> : '无'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- return <span style={{ fontSize: "12px" }}>{b?.sysAdcreativeData?.adcreativeElements?.imageUrl}</span>
|
|
|
+ return <span style={{ fontSize: "12px" }}>无</span>
|
|
|
}
|
|
|
},
|
|
|
{
|