|
@@ -19,6 +19,7 @@
|
|
|
:appId.sync="configForm.accountId"
|
|
|
:multiple="false"
|
|
|
request="1,3"
|
|
|
+ @select-value="handleSelectValue"
|
|
|
>
|
|
|
</acount-search>
|
|
|
</a-form-model-item>
|
|
@@ -325,7 +326,7 @@
|
|
|
</a-tooltip>
|
|
|
</a-radio-button>
|
|
|
<a-radio-button value="ORIGINAL_VIDEO">原生</a-radio-button>
|
|
|
- <a-radio-button value="SPLASH_VIDEO" disabled>开屏</a-radio-button>
|
|
|
+ <a-radio-button value="SPLASH_VIDEO">开屏</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
</div>
|
|
@@ -818,7 +819,7 @@
|
|
|
v-model="configForm.creativeCallToAction"
|
|
|
>
|
|
|
<a-select-option
|
|
|
- v-for="(item, index) in configForm.creativeOptions"
|
|
|
+ v-for="(item, index) in creativeOptions"
|
|
|
:key="index + 1"
|
|
|
:value="item"
|
|
|
>
|
|
@@ -871,7 +872,7 @@
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO_VERTICAL">竖版视频</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO">横版视频</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE">大图横图</a-radio-button>
|
|
|
- <a-radio-button value="CREATIVE_IMAGE_MODE_SMALL">小图</a-radio-button>
|
|
|
+ <a-radio-button value="CREATIVE_IMAGE_MODE_SMALL" disabled>小图</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE_VERTICAL">大图竖图</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
@@ -881,7 +882,7 @@
|
|
|
v-model="configForm.creativeCallToAction"
|
|
|
>
|
|
|
<a-select-option
|
|
|
- v-for="(item, index) in configForm.creativeOptions"
|
|
|
+ v-for="(item, index) in creativeOptions"
|
|
|
:key="index + 1"
|
|
|
:value="item"
|
|
|
>
|
|
@@ -913,7 +914,7 @@
|
|
|
<div v-else-if="configForm.adUnionVideoType === 'SPLASH_VIDEO'">
|
|
|
<a-form-model-item label="创意内容">
|
|
|
<a-radio-group v-model="configForm.creativeImageMode" button-style="solid">
|
|
|
- <a-radio-button value="arr">开屏图片</a-radio-button>
|
|
|
+ <a-radio-button value="CREATIVE_IMAGE_MODE_UNION_SPLASH">开屏图片</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="行动号召" prop="creativeCallToAction">
|
|
@@ -922,7 +923,7 @@
|
|
|
v-model="configForm.creativeCallToAction"
|
|
|
>
|
|
|
<a-select-option
|
|
|
- v-for="(item, index) in configForm.creativeOptions"
|
|
|
+ v-for="(item, index) in creativeOptions"
|
|
|
:key="index + 1"
|
|
|
:value="item"
|
|
|
>
|
|
@@ -969,7 +970,7 @@
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO_VERTICAL">竖版视频</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO">横版视频</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE">大图横图</a-radio-button>
|
|
|
- <a-radio-button value="CREATIVE_IMAGE_MODE_SMALL">小图</a-radio-button>
|
|
|
+ <a-radio-button value="CREATIVE_IMAGE_MODE_SMALL" disabled>小图</a-radio-button>
|
|
|
<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE_VERTICAL">大图竖图</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
@@ -1040,7 +1041,7 @@
|
|
|
v-model="configForm.creativeCallToAction"
|
|
|
>
|
|
|
<a-select-option
|
|
|
- v-for="(item, index) in configForm.creativeOptions"
|
|
|
+ v-for="(item, index) in creativeOptions"
|
|
|
:key="index + 1"
|
|
|
:value="item"
|
|
|
>
|
|
@@ -1518,6 +1519,7 @@ export default {
|
|
|
},
|
|
|
labelCol: {span: 4},
|
|
|
wrapperCol: {span: 14},
|
|
|
+ creativeOptions: [],
|
|
|
rules: {
|
|
|
creativeAppName: [
|
|
|
{required: true, message: '请输入', trigger: 'blur'},
|
|
@@ -1616,7 +1618,6 @@ export default {
|
|
|
adMinBid: '',
|
|
|
adMaxBid: '',
|
|
|
adBidCreateType: 'FIX',
|
|
|
- creativeOptions: [],
|
|
|
advancedCreativeType: 'ATTACHED_CREATIVE_NONE',
|
|
|
adLocationType: '',
|
|
|
adCity: '',
|
|
@@ -1685,7 +1686,7 @@ export default {
|
|
|
adRetargetingTagsExclude: '',
|
|
|
adAutoExtendTargets: '',
|
|
|
adDeliveryRange: '',
|
|
|
- creativeCallToAction: '', // 行动号召
|
|
|
+ creativeCallToAction: undefined, // 行动号召
|
|
|
creativeLabel: undefined // 倡议标签
|
|
|
},
|
|
|
isTomatoStatus: true,
|
|
@@ -1818,7 +1819,7 @@ export default {
|
|
|
this.configForm.creativeProductDescription = '';
|
|
|
this.configForm.defaultFormList = [];
|
|
|
this.configForm.creativeEnablePersonalAction = '';
|
|
|
- this.configForm.creativeCallToAction = '';
|
|
|
+ this.configForm.creativeCallToAction = undefined;
|
|
|
}
|
|
|
else {
|
|
|
this.configForm.creativeEnablePersonalAction = true;
|
|
@@ -1889,7 +1890,7 @@ export default {
|
|
|
this.handleGetCreativeClassification();
|
|
|
this.handleGetAdvertiserStrategy();
|
|
|
this.handleDirectionalList();
|
|
|
- this.handleGetAdAudiencePackage();
|
|
|
+ // this.handleGetAdAudiencePackage();
|
|
|
}
|
|
|
else {
|
|
|
this.createOptions = [];
|
|
@@ -1913,6 +1914,10 @@ export default {
|
|
|
methods: {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
moment,
|
|
|
+ handleSelectValue(data) {
|
|
|
+ this.configForm.accountId = data.id;
|
|
|
+ this.handleGetAdAudiencePackage();
|
|
|
+ },
|
|
|
handleAdDistrict(e) {
|
|
|
const defaultValue = e.target.value;
|
|
|
if (defaultValue === 'NONE') {
|
|
@@ -1926,7 +1931,7 @@ export default {
|
|
|
handleAdUnionVideoType(e) {
|
|
|
this.$refs['ruleForm'].clearValidate(['creativeSource']);
|
|
|
if (e.target.value === 'SPLASH_VIDEO') {
|
|
|
- this.configForm.creativeImageMode = 'arr';
|
|
|
+ this.configForm.creativeImageMode = 'CREATIVE_IMAGE_MODE_UNION_SPLASH';
|
|
|
}
|
|
|
else {
|
|
|
this.configForm.creativeImageMode = 'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL';
|
|
@@ -1934,6 +1939,7 @@ export default {
|
|
|
},
|
|
|
NewCheckboxChangeValue(newVal) {
|
|
|
this.$refs['ruleForm'].clearValidate(['creativeSource']);
|
|
|
+ let selectiveListUpdate = [...this.selectiveList];
|
|
|
if (newVal.length) {
|
|
|
if (newVal.includes('INVENTORY_AWEME_FEED')) {
|
|
|
this.isTAwemeStatus = true;
|
|
@@ -1946,15 +1952,27 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.configForm.creativeEnablePersonalAction = true;
|
|
|
});
|
|
|
+ this.configForm.adAudiencePackageId = undefined;
|
|
|
+ this.packageMessageDetail = [];
|
|
|
+ this.selectiveList = selectiveListUpdate.filter(item => item.delivery_range === 'UNION');
|
|
|
+ // if (this.configForm.adDirectionalFlag === 'choice') {
|
|
|
+ // this.selectiveList = selectiveListUpdate.filter(item => item.delivery_range === 'UNION');
|
|
|
+ // }
|
|
|
}
|
|
|
else {
|
|
|
this.configForm.adUnionVideoType = '';
|
|
|
this.configForm.creativeEnablePersonalAction = '';
|
|
|
+ this.configForm.adAudiencePackageId = undefined;
|
|
|
+ this.packageMessageDetail = [];
|
|
|
+ this.handleGetAdAudiencePackage();
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
this.isTAwemeStatus = true;
|
|
|
this.configForm.adUnionVideoType = '';
|
|
|
+ this.configForm.adAudiencePackageId = undefined;
|
|
|
+ this.packageMessageDetail = [];
|
|
|
+ this.handleGetAdAudiencePackage();
|
|
|
}
|
|
|
},
|
|
|
handleGetChengZiSite() {
|
|
@@ -2184,7 +2202,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- this.selectiveList = defaultList;
|
|
|
+ if (this.configForm.checkboxChangeValue.length === 1 && this.configForm.checkboxChangeValue[0] === 'INVENTORY_UNION_SLOT') {
|
|
|
+ this.selectiveList = defaultList.filter(item => item.delivery_range === 'UNION');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.selectiveList = defaultList;
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
this.$message.error(result.message);
|
|
@@ -2244,7 +2267,7 @@ export default {
|
|
|
getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdActionText', params)
|
|
|
.then(result => {
|
|
|
if (result.code === 0) {
|
|
|
- this.configForm.creativeOptions = result.result;
|
|
|
+ this.creativeOptions = result.result;
|
|
|
}
|
|
|
else {
|
|
|
this.$message.error(result.message);
|
|
@@ -2377,6 +2400,9 @@ export default {
|
|
|
this.configForm.checkboxChangeValue = [];
|
|
|
this.isTAwemeStatus = true;
|
|
|
}
|
|
|
+ this.configForm.adUnionVideoType = '';
|
|
|
+ this.configForm.creativeImageMode = 'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL';
|
|
|
+ this.handleGetAdAudiencePackage();
|
|
|
},
|
|
|
handleAccountMode(e) {
|
|
|
if (e.target.value === '1') {
|
|
@@ -2478,7 +2504,13 @@ export default {
|
|
|
getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdAudiencePackage', {accountId: detailData.accountId})
|
|
|
.then(result => {
|
|
|
if (result.code === 0) {
|
|
|
- this.selectiveList = result.result || [];
|
|
|
+ let checkboxChangeValueList = detailData.creativeInventoryType.split(',');
|
|
|
+ if (checkboxChangeValueList.length === 1 && checkboxChangeValueList[0] === 'INVENTORY_UNION_SLOT') {
|
|
|
+ this.selectiveList = result.result.filter(item => item.delivery_range === 'UNION');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.selectiveList = result.result || [];
|
|
|
+ }
|
|
|
this.configForm.adAudiencePackageId = Number(detailData.adAudiencePackageId);
|
|
|
this.handleSelectiveOrientation(Number(detailData.adAudiencePackageId));
|
|
|
}
|
|
@@ -2615,7 +2647,7 @@ export default {
|
|
|
getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdActionText', params)
|
|
|
.then(result => {
|
|
|
if (result.code === 0) {
|
|
|
- this.configForm.creativeOptions = result.result;
|
|
|
+ this.creativeOptions = result.result;
|
|
|
this.configForm.creativeCallToAction = detailData.creativeCallToAction;
|
|
|
}
|
|
|
else {
|
|
@@ -3042,6 +3074,10 @@ export default {
|
|
|
this.$message.error('请添加卖点');
|
|
|
return;
|
|
|
}
|
|
|
+ // if (this.isTAwemeStatus && !paramsFormData.creativeCallToAction) {
|
|
|
+ // this.$message.error('行动号召不能为空');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (!this.creativeTag.length) {
|
|
|
this.$message.error('请添加标签');
|
|
|
return;
|