|
@@ -64,14 +64,8 @@ function TargetIng(props: Props) {
|
|
|
{
|
|
|
key: '1',
|
|
|
label: <>
|
|
|
- {queryForm?.sysAdgroup && Object.keys(queryForm?.sysAdgroup).length > 0 ? (['BID_MODE_CPC', 'BID_MODE_CPM'].includes(queryForm?.sysAdgroup?.bidMode) || (queryForm?.sysAdgroup?.bidMode === 'BID_MODE_OCPM' && queryForm?.sysAdgroup?.optimizationGoal === 'OPTIMIZATIONGOAL_CLICK')) ? <>
|
|
|
- {accountCreateLogs?.length > 0 && queryForm?.sysTargeting ? <Button type="link" style={{ fontSize: 12, padding: 0 }} onClick={() => setCpVisible(true)}>选择定向包</Button> : <Tooltip title={accountCreateLogs?.length > 0 ? `请先添加定向` : `请先选择媒体账户`}>
|
|
|
- <Button type="link" disabled style={{ fontSize: 12, padding: 0 }}>选择定向包</Button>
|
|
|
- </Tooltip>}
|
|
|
- </> : <Tooltip title='“二方包”人群包仅能在出价方式为CPC(包含oCPM点击优化目标)、CPM场景下使用'>
|
|
|
- <Button type="link" disabled style={{ fontSize: 12, padding: 0 }}>选择定向包</Button>
|
|
|
- </Tooltip> : <Tooltip title='请先设置广告基本信息'>
|
|
|
- <Button type="link" disabled style={{ fontSize: 12, padding: 0 }}>选择定向包</Button>
|
|
|
+ {accountCreateLogs?.length > 0 && queryForm?.sysTargeting ? <Button type="link" style={{ fontSize: 12, padding: 0 }} onClick={() => setCpVisible(true)}>选择定向包</Button> : <Tooltip title={accountCreateLogs?.length > 0 ? `请先添加定向` : `请先选择媒体账户`}>
|
|
|
+ <Button type="link" style={{ fontSize: 12, padding: 0 }}>选择定向包</Button>
|
|
|
</Tooltip>}
|
|
|
</>
|
|
|
},
|