|
@@ -512,7 +512,7 @@ const onChangeAdPosition = (val: string) => {
|
512
|
512
|
watchSiteIds()// 版位变化
|
513
|
513
|
}
|
514
|
514
|
/**优化目标下拉列表 */
|
515
|
|
-const eventGetOPtimizationGoal = (val?) => {
|
|
515
|
+const eventGetOPtimizationGoal = (val?, type?) => {
|
516
|
516
|
getOptimizationGoal({
|
517
|
517
|
site_set: val ? val.split(',') : '',
|
518
|
518
|
promoted_object_type: props.promoted_object_type
|
|
@@ -523,7 +523,7 @@ const eventGetOPtimizationGoal = (val?) => {
|
523
|
523
|
})
|
524
|
524
|
optimizationGoal_1.value = res.filter((v)=>{return v.name && v.name != '' && v.goal && v.goal != ''});
|
525
|
525
|
form['optimization_goal_name'] = optimizationGoal_1.value.filter((v: any) => { return v.value == form['optimization_goal'] })[0]?.label
|
526
|
|
- changeOptimizationGoal()
|
|
526
|
+ changeOptimizationGoal(type)
|
527
|
527
|
}).catch((res)=>{
|
528
|
528
|
optimizationGoal_1.value = [];
|
529
|
529
|
optimizationGoal_2.value = [];
|
|
@@ -690,7 +690,8 @@ const onChangeKey = ({ val, key }) => {
|
690
|
690
|
}
|
691
|
691
|
}
|
692
|
692
|
/**优化目标 及 深度转化类型 变化 ==> 导致 深度优化目标 发生变化 */
|
693
|
|
-const changeOptimizationGoal = () => {
|
|
693
|
+const changeOptimizationGoal = (type?) => {
|
|
694
|
+ console.log('change')
|
694
|
695
|
optimizationGoal_1.value.forEach((item)=>{
|
695
|
696
|
if(item.goal == form.optimization_goal){
|
696
|
697
|
let deep_info:any[] = []
|
|
@@ -706,18 +707,22 @@ const changeOptimizationGoal = () => {
|
706
|
707
|
v.label = v.name;
|
707
|
708
|
v.value = v.goal;
|
708
|
709
|
})
|
709
|
|
- if(deep_info.filter((v)=>v.value == deep_conversion_behavior_spec.target).length == 0){
|
710
|
|
- if(allGoalInfos.value.length == 0) {
|
711
|
|
- getGoalInfos().then((res:any)=>{
|
712
|
|
- allGoalInfos.value = res;
|
|
710
|
+ if(type == 'init'){
|
|
711
|
+ if(deep_info.filter((v)=>v.value == deep_conversion_behavior_spec.target).length == 0){
|
|
712
|
+ if(allGoalInfos.value.length == 0) {
|
|
713
|
+ getGoalInfos().then((res:any)=>{
|
|
714
|
+ allGoalInfos.value = res;
|
|
715
|
+ get_deep_info(deep_info)
|
|
716
|
+ })
|
|
717
|
+ }else{
|
713
|
718
|
get_deep_info(deep_info)
|
714
|
|
- })
|
|
719
|
+ }
|
715
|
720
|
}else{
|
716
|
|
- get_deep_info(deep_info)
|
|
721
|
+ optimizationGoal_2.value = deep_info
|
|
722
|
+ form['deep_conversion_behavior_spec_target_name'] = optimizationGoal_2.value?.filter((v: any) => { return v.value == deep_conversion_behavior_spec.target })[0]?.label
|
717
|
723
|
}
|
718
|
724
|
}else{
|
719
|
725
|
optimizationGoal_2.value = deep_info
|
720
|
|
- form['deep_conversion_behavior_spec_target_name'] = optimizationGoal_2.value?.filter((v: any) => { return v.value == deep_conversion_behavior_spec.target })[0]?.label
|
721
|
726
|
}
|
722
|
727
|
}
|
723
|
728
|
})
|
|
@@ -894,6 +899,7 @@ watch(
|
894
|
899
|
}
|
895
|
900
|
checkedWechat.value = props.dataFillBack.bid_site_wechat_enabled == '1' ? true : false; // 支持微信朋友圈&微信公众号与小程序版位
|
896
|
901
|
watch_deep_conversion()
|
|
902
|
+ eventGetOPtimizationGoal(props.dataFillBack?.site_ids, 'init')
|
897
|
903
|
}, { immediate: true})
|
898
|
904
|
</script>
|
899
|
905
|
<style lang="scss" scoped>@import "@/assets/style/batchDialogGdt.scss";
|