|
@@ -643,7 +643,7 @@ const CreateAd: React.FC = () => {
|
|
|
// 提交
|
|
|
const submit = (props: { campaignName: string, count?: number }) => {
|
|
|
let newQueryForm = JSON.parse(JSON.stringify(queryForm))
|
|
|
- if (launchMode === 2) {
|
|
|
+ if (launchMode !== 1) {
|
|
|
if (Array.isArray(newQueryForm.materials) && Array.isArray(newQueryForm?.texts)) {
|
|
|
let taskMediaMap = JSON.parse(JSON.stringify(newQueryForm.taskMediaMaps[0]))
|
|
|
let adcreativeElements = taskMediaMap.sysAdcreative?.adcreativeElements || {}
|
|
@@ -734,6 +734,7 @@ const CreateAd: React.FC = () => {
|
|
|
delete params?.model
|
|
|
params.targetSingle = true
|
|
|
console.log('paramsSubmit====>', params)
|
|
|
+ return
|
|
|
createAdBatch.run(params).then(res => {
|
|
|
if (res) {
|
|
|
Modal.success({
|
|
@@ -960,10 +961,10 @@ const CreateAd: React.FC = () => {
|
|
|
value: 2,
|
|
|
label: "叉乘模式",
|
|
|
},
|
|
|
- {
|
|
|
- value: 3,
|
|
|
- label: "顺序模式",
|
|
|
- }
|
|
|
+ // {
|
|
|
+ // value: 3,
|
|
|
+ // label: "顺序模式",
|
|
|
+ // }
|
|
|
]}>
|
|
|
</Select>
|
|
|
{/* <Popconfirm
|