|
@@ -14,7 +14,7 @@ import New1Radio from "../../components/New1Radio"
|
|
|
import { SelectTimeList } from "../../tencentAdPutIn/const"
|
|
|
|
|
|
interface Props {
|
|
|
- type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间'
|
|
|
+ type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' | '关闭智能定向'
|
|
|
updateData: any[],
|
|
|
visible?: boolean,
|
|
|
onClose?: () => void
|
|
@@ -71,6 +71,7 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
|
|
|
case '修改名称':
|
|
|
case '深度优化ROI':
|
|
|
case '修改投放首日开始时间':
|
|
|
+ case '关闭智能定向':
|
|
|
let params2: any = {}
|
|
|
if (type === '深度优化ROI') {
|
|
|
params2 = JSON.parse(JSON.stringify(values))
|
|
@@ -169,7 +170,7 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
|
|
|
message.error(errorFields?.[0]?.errors?.[0])
|
|
|
}}
|
|
|
onFinish={handleOk}
|
|
|
- initialValues={{ timeSeriesType: '0', timeSeries: getTimeSeriesList(), updateType: 'fixed' }}
|
|
|
+ initialValues={{ timeSeriesType: '0', timeSeries: getTimeSeriesList(), updateType: 'fixed', smartTargetingMode: 'SMART_TARGETING_MANUAL' }}
|
|
|
>
|
|
|
<Card
|
|
|
title={<strong style={{ fontSize: 14 }}>{type === '删除' ? '确认删除?' : '修改设置'}</strong>}
|
|
@@ -319,6 +320,15 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
|
|
|
placeholder='请选择首日开始时间'
|
|
|
options={SelectTimeList}
|
|
|
/>
|
|
|
+ </Form.Item> : type === '关闭智能定向' ? <Form.Item
|
|
|
+ label={<strong>智能定向</strong>}
|
|
|
+ name='smartTargetingMode'
|
|
|
+ rules={[{ required: true, message: '请选择智能定向!' }]}
|
|
|
+ >
|
|
|
+ <Radio.Group defaultValue="a" buttonStyle="solid">
|
|
|
+ <Radio.Button value="SMART_TARGETING_OPEN" disabled>开启</Radio.Button>
|
|
|
+ <Radio.Button value="SMART_TARGETING_MANUAL">关闭</Radio.Button>
|
|
|
+ </Radio.Group>
|
|
|
</Form.Item> : null}
|
|
|
</Card>
|
|
|
<Form.Item className="submit_pull">
|
|
@@ -363,7 +373,7 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
|
|
|
key: 'messageCn',
|
|
|
render: (value) => <span style={{ fontSize: 12 }}>{value}</span>,
|
|
|
}]}
|
|
|
- dataSource={failIdList.map((item, index) => ({...item, id: index}))}
|
|
|
+ dataSource={failIdList.map((item, index) => ({ ...item, id: index }))}
|
|
|
/>
|
|
|
</Modal>}
|
|
|
</>
|