|
@@ -101,7 +101,7 @@
|
|
allow-clear
|
|
allow-clear
|
|
placeholder="请输入广告组名称"
|
|
placeholder="请输入广告组名称"
|
|
/>
|
|
/>
|
|
- <!-- <div>
|
|
|
|
|
|
+ <div>
|
|
<a-tag
|
|
<a-tag
|
|
v-for="item in campaignTags"
|
|
v-for="item in campaignTags"
|
|
:key="item"
|
|
:key="item"
|
|
@@ -110,7 +110,7 @@
|
|
>
|
|
>
|
|
+ {{ item }}
|
|
+ {{ item }}
|
|
</a-tag>
|
|
</a-tag>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="广告计划名称" prop="adName">
|
|
<a-form-model-item label="广告计划名称" prop="adName">
|
|
<a-input
|
|
<a-input
|
|
@@ -393,7 +393,11 @@
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item v-if="configForm.customPerson === 'a'" label="定向逻辑">
|
|
<a-form-model-item v-if="configForm.customPerson === 'a'" label="定向逻辑">
|
|
- <a-radio-group v-model="configForm.adRetargetingTagsType" button-style="solid" @change="handleDirectionalLogic">
|
|
|
|
|
|
+ <a-radio-group
|
|
|
|
+ v-model="configForm.adRetargetingTagsType"
|
|
|
|
+ button-style="solid"
|
|
|
|
+ @change="handleDirectionalLogic"
|
|
|
|
+ >
|
|
<a-radio-button value="1">定向</a-radio-button>
|
|
<a-radio-button value="1">定向</a-radio-button>
|
|
<a-radio-button value="2">排除</a-radio-button>
|
|
<a-radio-button value="2">排除</a-radio-button>
|
|
<a-radio-button value="3">同时定向排除</a-radio-button>
|
|
<a-radio-button value="3">同时定向排除</a-radio-button>
|
|
@@ -1388,7 +1392,7 @@ export default {
|
|
urlResult: '',
|
|
urlResult: '',
|
|
createOptions: [],
|
|
createOptions: [],
|
|
campaignTags: ['序号', '日期'],
|
|
campaignTags: ['序号', '日期'],
|
|
- adNameTags: ['出价方式', '素材名称', '日期', '创意方式'],
|
|
|
|
|
|
+ adNameTags: ['序号', '出价方式', '素材名称', '日期', '创意方式'],
|
|
fieldNames: {
|
|
fieldNames: {
|
|
label: 'industryName',
|
|
label: 'industryName',
|
|
value: 'industryId',
|
|
value: 'industryId',
|
|
@@ -1974,29 +1978,30 @@ export default {
|
|
},
|
|
},
|
|
handleSelectPackageTabs(e) {
|
|
handleSelectPackageTabs(e) {
|
|
if (this.modalTitle === 'add') {
|
|
if (this.modalTitle === 'add') {
|
|
- if (e === 'add') {
|
|
|
|
- this.configForm.adAudiencePackageId = undefined;
|
|
|
|
- this.packageMessageDetail = [];
|
|
|
|
- }
|
|
|
|
- else if (e === 'choice') {
|
|
|
|
- this.configForm.adDistrict = 'NONE';
|
|
|
|
- this.listArr = [];
|
|
|
|
- this.configForm.adLocationType = 'HOME';
|
|
|
|
- this.configForm.adGender = 'NONE';
|
|
|
|
- this.configForm.adSelectAge = ['NONE'];
|
|
|
|
- this.configForm.customPerson = 'NONE';
|
|
|
|
- this.configForm.updateGetingInclude = [];
|
|
|
|
- this.configForm.adRetargetingTagsInclude = '';
|
|
|
|
- this.configForm.adRetargetingTagsExclude = '';
|
|
|
|
- this.configForm.updateGetingExclude = [];
|
|
|
|
- this.configForm.adRetargetingTagsType = '';
|
|
|
|
- this.configForm.adPlatform = 'NONE';
|
|
|
|
- this.configForm.adDeviceSelectType = ['NONE'];
|
|
|
|
- this.configForm.adAndroidVersion = 'NONE';
|
|
|
|
- this.configForm.adSelectAc = ['NONE'];
|
|
|
|
- this.configForm.adHideIfExists = '0';
|
|
|
|
- this.configForm.adAutoExtendEnabled = '0';
|
|
|
|
- }
|
|
|
|
|
|
+ // if (e === 'add') {
|
|
|
|
+ // this.configForm.adAudiencePackageId = undefined;
|
|
|
|
+ // this.packageMessageDetail = [];
|
|
|
|
+ // }
|
|
|
|
+ // else if (e === 'choice') {
|
|
|
|
+ // this.configForm.adDistrict = 'NONE';
|
|
|
|
+ // this.listArr = [];
|
|
|
|
+ // this.configForm.adLocationType = 'HOME';
|
|
|
|
+ // this.configForm.adGender = 'NONE';
|
|
|
|
+ // this.configForm.adSelectAge = ['NONE'];
|
|
|
|
+ // this.configForm.customPerson = 'NONE';
|
|
|
|
+ // this.configForm.updateGetingInclude = [];
|
|
|
|
+ // this.configForm.adRetargetingTagsInclude = '';
|
|
|
|
+ // this.configForm.adRetargetingTagsExclude = '';
|
|
|
|
+ // this.configForm.updateGetingExclude = [];
|
|
|
|
+ // this.configForm.adRetargetingTagsType = '';
|
|
|
|
+ // this.configForm.adSuperiorPopularityType = 'NONE';
|
|
|
|
+ // this.configForm.adPlatform = 'NONE';
|
|
|
|
+ // this.configForm.adDeviceSelectType = ['NONE'];
|
|
|
|
+ // this.configForm.adAndroidVersion = 'NONE';
|
|
|
|
+ // this.configForm.adSelectAc = ['NONE'];
|
|
|
|
+ // this.configForm.adHideIfExists = '0';
|
|
|
|
+ // this.configForm.adAutoExtendEnabled = '0';
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleCustomPerson(e) {
|
|
handleCustomPerson(e) {
|
|
@@ -2900,8 +2905,35 @@ export default {
|
|
},
|
|
},
|
|
handleRelaxSure() {
|
|
handleRelaxSure() {
|
|
let paramsFormData = this.configForm;
|
|
let paramsFormData = this.configForm;
|
|
- if (this.configForm.adDistrict === 'CITY') {
|
|
|
|
- if (!this.configForm.adSelectCity.length) {
|
|
|
|
|
|
+ if (paramsFormData.adDirectionalFlag === 'add') {
|
|
|
|
+ paramsFormData.adAudiencePackageId = null;
|
|
|
|
+ this.packageMessageDetail = [];
|
|
|
|
+ }
|
|
|
|
+ else if (paramsFormData.adDirectionalFlag === 'choice') {
|
|
|
|
+ paramsFormData.adDistrict = 'NONE';
|
|
|
|
+ this.listArr = [];
|
|
|
|
+ paramsFormData.adLocationType = 'HOME';
|
|
|
|
+ paramsFormData.adGender = 'NONE';
|
|
|
|
+ paramsFormData.adSelectAge = ['NONE'];
|
|
|
|
+ paramsFormData.customPerson = 'NONE';
|
|
|
|
+ paramsFormData.updateGetingInclude = [];
|
|
|
|
+ paramsFormData.adRetargetingTagsInclude = '';
|
|
|
|
+ paramsFormData.adRetargetingTagsExclude = '';
|
|
|
|
+ paramsFormData.updateGetingExclude = [];
|
|
|
|
+ paramsFormData.adRetargetingTagsType = '';
|
|
|
|
+ paramsFormData.adSuperiorPopularityType = 'NONE';
|
|
|
|
+ paramsFormData.adPlatform = 'NONE';
|
|
|
|
+ paramsFormData.adInterestActionMode = 'UNLIMITED';
|
|
|
|
+ paramsFormData.adDeviceSelectType = ['NONE'];
|
|
|
|
+ paramsFormData.adAndroidVersion = 'NONE';
|
|
|
|
+ paramsFormData.adHideIfConverted = 'NO_EXCLUDE';
|
|
|
|
+ paramsFormData.adSelectAc = ['NONE'];
|
|
|
|
+ paramsFormData.adHideIfExists = '0';
|
|
|
|
+ paramsFormData.adAutoExtendEnabled = '0';
|
|
|
|
+ this.adAutoExtendList = [];
|
|
|
|
+ }
|
|
|
|
+ if (paramsFormData.adDistrict === 'CITY') {
|
|
|
|
+ if (!paramsFormData.adSelectCity.length) {
|
|
this.$message.error('请选择省市');
|
|
this.$message.error('请选择省市');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2912,7 +2944,7 @@ export default {
|
|
else {
|
|
else {
|
|
paramsFormData.adDeliveryRange = '';
|
|
paramsFormData.adDeliveryRange = '';
|
|
}
|
|
}
|
|
- if (this.configForm.adDirectionalFlag === 'choice' && !this.configForm.adAudiencePackageId) {
|
|
|
|
|
|
+ if (paramsFormData.adDirectionalFlag === 'choice' && !paramsFormData.adAudiencePackageId) {
|
|
this.$message.error('请选择已有定向包');
|
|
this.$message.error('请选择已有定向包');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2934,11 +2966,11 @@ export default {
|
|
this.$message.error('请选择可开放定向');
|
|
this.$message.error('请选择可开放定向');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.configForm.adScheduleType === 'SCHEDULE_START_END' && !this.configForm.launchDateRange.length) {
|
|
|
|
|
|
+ if (paramsFormData.adScheduleType === 'SCHEDULE_START_END' && !paramsFormData.launchDateRange.length) {
|
|
this.$message.error('请选择投放时间');
|
|
this.$message.error('请选择投放时间');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.configForm.launchTimeInterval === 'a' && this.configForm.scheduleTimeData === str) {
|
|
|
|
|
|
+ if (paramsFormData.launchTimeInterval === 'a' && paramsFormData.scheduleTimeData === str) {
|
|
this.$message.error('请选择投放时段');
|
|
this.$message.error('请选择投放时段');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2946,7 +2978,7 @@ export default {
|
|
this.$message.error('请上传图片');
|
|
this.$message.error('请上传图片');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.isTAwemeStatus && !this.configForm.defaultFormList.length) {
|
|
|
|
|
|
+ if (this.isTAwemeStatus && !paramsFormData.defaultFormList.length) {
|
|
this.$message.error('请添加卖点');
|
|
this.$message.error('请添加卖点');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2957,7 +2989,7 @@ export default {
|
|
if (this.campaignStatus) {
|
|
if (this.campaignStatus) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (this.configForm.adBudget < this.configForm.adCpaBid) {
|
|
|
|
|
|
+ if (paramsFormData.adBudget < paramsFormData.adCpaBid) {
|
|
this.isAdCpaBidBlur = true;
|
|
this.isAdCpaBidBlur = true;
|
|
this.adCpaBidBlurTxt = '出价不能大于预算';
|
|
this.adCpaBidBlurTxt = '出价不能大于预算';
|
|
return;
|
|
return;
|