|
@@ -18,10 +18,25 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
|
|
<a-form-item
|
|
<a-form-item
|
|
- label="模板名称"
|
|
|
|
|
|
+ label="选择已有广告组"
|
|
:labelCol="labelCol"
|
|
:labelCol="labelCol"
|
|
:wrapperCol="wrapperCol">
|
|
:wrapperCol="wrapperCol">
|
|
- <a-input v-model="templateName" placeholder="请输入模板名称">
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="campaignId"
|
|
|
|
+ showSearch
|
|
|
|
+ placeholder="选择已有广告组"
|
|
|
|
+ optionFilterProp="children"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ >
|
|
|
|
+ <a-select-option v-for="campaign in existCampaignList" :key="campaign.campaign_id" :value="campaign.campaign_id">{{campaign.name}}</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+
|
|
|
|
+ <a-form-item
|
|
|
|
+ label="创意名称"
|
|
|
|
+ :labelCol="labelCol"
|
|
|
|
+ :wrapperCol="wrapperCol">
|
|
|
|
+ <a-input v-model="templateName" placeholder="请输入创意名称">
|
|
</a-input>
|
|
</a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item
|
|
<a-form-item
|
|
@@ -343,6 +358,8 @@
|
|
components: {AFormItem},
|
|
components: {AFormItem},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ existCampaignList:[],
|
|
|
|
+ campaignId:'',
|
|
webUrl:'',
|
|
webUrl:'',
|
|
retargetingTagsExclude:[],
|
|
retargetingTagsExclude:[],
|
|
retargetingTagsInclude:[],
|
|
retargetingTagsInclude:[],
|
|
@@ -429,7 +446,8 @@
|
|
convertList:'template/convert/list/url',
|
|
convertList:'template/convert/list/url',
|
|
userOrentationList:'ctop/byteDanceUserOrientationTemplate/list',
|
|
userOrentationList:'ctop/byteDanceUserOrientationTemplate/list',
|
|
creativeTemplateList:'/ctop/bytedanceCreativeLaunchTemplate/list',
|
|
creativeTemplateList:'/ctop/bytedanceCreativeLaunchTemplate/list',
|
|
- userAudienceList:'toutiao/advertiser/custom/audience/select'
|
|
|
|
|
|
+ userAudienceList:'toutiao/advertiser/custom/audience/select',
|
|
|
|
+ getCampanginList:'toutiao/advertiser/campaign/list'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -563,6 +581,12 @@
|
|
this.audienceList = res.data;
|
|
this.audienceList = res.data;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ params = {};
|
|
|
|
+ getAction(this.url.getCampanginList+'?accountId='+this.accountId, params).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.existCampaignList = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
onChangeDeliveryTarget(value) {
|
|
onChangeDeliveryTarget(value) {
|
|
console.log(value);
|
|
console.log(value);
|
|
@@ -612,6 +636,7 @@
|
|
}
|
|
}
|
|
console.log("付费方式:" + this.priceType);
|
|
console.log("付费方式:" + this.priceType);
|
|
console.log("目标转化出价:" + this.convertPrice);
|
|
console.log("目标转化出价:" + this.convertPrice);
|
|
|
|
+ params.campaignId = this.campaignId;
|
|
params.userOrientationId = this.userOrientationId;
|
|
params.userOrientationId = this.userOrientationId;
|
|
params.templateName = this.templateName;
|
|
params.templateName = this.templateName;
|
|
params.accountId = this.accountId;
|
|
params.accountId = this.accountId;
|