|
@@ -1866,7 +1866,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
NewAountId(newVal, oldVal) {
|
|
NewAountId(newVal, oldVal) {
|
|
- if (newVal && this.configForm.adPackage) {
|
|
|
|
|
|
+ if ((newVal && this.configForm.adPackage) || (newVal && this.configForm.adExternalUrl)) {
|
|
const paramsData = {
|
|
const paramsData = {
|
|
advancedCreativeType: 'ATTACHED_CREATIVE_NONE',
|
|
advancedCreativeType: 'ATTACHED_CREATIVE_NONE',
|
|
advertiserId: this.configForm.accountId,
|
|
advertiserId: this.configForm.accountId,
|
|
@@ -1916,6 +1916,10 @@ export default {
|
|
moment,
|
|
moment,
|
|
handleSelectValue(data) {
|
|
handleSelectValue(data) {
|
|
this.configForm.accountId = data.id;
|
|
this.configForm.accountId = data.id;
|
|
|
|
+ this.configForm.adConvertType = undefined;
|
|
|
|
+ this.configForm.adConvertId = undefined;
|
|
|
|
+ this.toolConvertList = [];
|
|
|
|
+ this.optimizationOption = [];
|
|
this.handleGetAdAudiencePackage();
|
|
this.handleGetAdAudiencePackage();
|
|
},
|
|
},
|
|
handleAdDistrict(e) {
|
|
handleAdDistrict(e) {
|
|
@@ -2127,6 +2131,7 @@ export default {
|
|
this.directionalData = result.result;
|
|
this.directionalData = result.result;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ this.directionalData = [];
|
|
this.$message.error(result.message);
|
|
this.$message.error(result.message);
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -2504,7 +2509,7 @@ export default {
|
|
getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdAudiencePackage', {accountId: detailData.accountId})
|
|
getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdAudiencePackage', {accountId: detailData.accountId})
|
|
.then(result => {
|
|
.then(result => {
|
|
if (result.code === 0) {
|
|
if (result.code === 0) {
|
|
- let checkboxChangeValueList = detailData.creativeInventoryType.split(',');
|
|
|
|
|
|
+ let checkboxChangeValueList = detailData.creativeInventoryType ? detailData.creativeInventoryType.split(',') : [];
|
|
if (checkboxChangeValueList.length === 1 && checkboxChangeValueList[0] === 'INVENTORY_UNION_SLOT') {
|
|
if (checkboxChangeValueList.length === 1 && checkboxChangeValueList[0] === 'INVENTORY_UNION_SLOT') {
|
|
this.selectiveList = result.result.filter(item => item.delivery_range === 'UNION');
|
|
this.selectiveList = result.result.filter(item => item.delivery_range === 'UNION');
|
|
}
|
|
}
|
|
@@ -2744,9 +2749,10 @@ export default {
|
|
},
|
|
},
|
|
handleConvertTypeChange(e) {
|
|
handleConvertTypeChange(e) {
|
|
this.configForm.adConvertId = '';
|
|
this.configForm.adConvertId = '';
|
|
|
|
+ this.optimizationOption = [];
|
|
this.toolConvertList.forEach(item => {
|
|
this.toolConvertList.forEach(item => {
|
|
if (item.convert_type === e) {
|
|
if (item.convert_type === e) {
|
|
- this.optimizationOption = item.external_actions;
|
|
|
|
|
|
+ this.optimizationOption = [...item.external_actions];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|