|
@@ -615,12 +615,12 @@ const CreateAd: React.FC = () => {
|
|
|
...newQueryForm,
|
|
|
sysAdGroupData: newQueryForm.sysAdgroup,
|
|
|
targetingData: newQueryForm.sysTargeting,
|
|
|
- sysAdcreativeData: (newQueryForm.taskMediaMaps as any)[bIndex] ? (newQueryForm.taskMediaMaps as any)[bIndex].sysAdcreative : (newQueryForm.taskMediaMaps as any)[0].sysAdcreative,
|
|
|
+ sysAdcreativeData: (newQueryForm.taskMediaMaps as any)[bIndex].sysAdcreative,
|
|
|
pageData: (newQueryForm.pageList as any)[0] || (newQueryForm.adqPageList as any)[0]?.find((adq: { adAccountId: any }) => adq.adAccountId === accountCreateLogs[bIndex].adAccountId)?.pageList[0],
|
|
|
myId: Number(item.id + '' + index)
|
|
|
}
|
|
|
data.push(obj)
|
|
|
- bIndex = (index + 1) % accountCreateLogs.length
|
|
|
+ bIndex = bIndex === (newQueryForm.taskMediaMaps as any).length - 1 ? 0 : (index + 1) % (newQueryForm.taskMediaMaps as any).length
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -960,10 +960,10 @@ const CreateAd: React.FC = () => {
|
|
|
value: 2,
|
|
|
label: "叉乘模式",
|
|
|
},
|
|
|
- // {
|
|
|
- // value: 3,
|
|
|
- // label: "顺序模式",
|
|
|
- // }
|
|
|
+ {
|
|
|
+ value: 3,
|
|
|
+ label: "顺序模式",
|
|
|
+ }
|
|
|
]}>
|
|
|
</Select>
|
|
|
{/* <Popconfirm
|