|
@@ -23,6 +23,7 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="dp链接">
|
|
<a-form-model-item label="dp链接">
|
|
<a-radio-group
|
|
<a-radio-group
|
|
|
|
+ :disabled="modalTitle === 'edit'"
|
|
v-model="configForm.dpLinkIndexUsed"
|
|
v-model="configForm.dpLinkIndexUsed"
|
|
button-style="solid"
|
|
button-style="solid"
|
|
@change="handleDpLinkIndexUsed"
|
|
@change="handleDpLinkIndexUsed"
|
|
@@ -304,13 +305,12 @@
|
|
<radio-check v-model="configForm.adSelectAge" :options="ageArr" @change="getAgeSelect"></radio-check>
|
|
<radio-check v-model="configForm.adSelectAge" :options="ageArr" @change="getAgeSelect"></radio-check>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="自定义人群">
|
|
<a-form-model-item label="自定义人群">
|
|
- <a-radio-group v-model="configForm.customPerson" button-style="solid">
|
|
|
|
|
|
+ <a-radio-group v-model="configForm.customPerson" button-style="solid" @change="handleCustomPerson">
|
|
<a-radio-button value="NONE">不限</a-radio-button>
|
|
<a-radio-button value="NONE">不限</a-radio-button>
|
|
<a-radio-button value="a">自定义人群</a-radio-button>
|
|
<a-radio-button value="a">自定义人群</a-radio-button>
|
|
</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="定向逻辑">
|
|
- <!-- adRetargetingTagsType -->
|
|
|
|
<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>
|
|
@@ -553,6 +553,7 @@
|
|
v-model="configForm.adMinBid"
|
|
v-model="configForm.adMinBid"
|
|
:min="0.1"
|
|
:min="0.1"
|
|
:max="10000"
|
|
:max="10000"
|
|
|
|
+ :step="0.01"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
/>
|
|
/>
|
|
<span>~</span>
|
|
<span>~</span>
|
|
@@ -563,6 +564,7 @@
|
|
v-model="configForm.adMaxBid"
|
|
v-model="configForm.adMaxBid"
|
|
:min="0.1"
|
|
:min="0.1"
|
|
:max="10000"
|
|
:max="10000"
|
|
|
|
+ :step="0.01"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
/> 元
|
|
/> 元
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -574,6 +576,7 @@
|
|
v-model="configForm.adMinBid"
|
|
v-model="configForm.adMinBid"
|
|
:min="0.1"
|
|
:min="0.1"
|
|
:max="10000"
|
|
:max="10000"
|
|
|
|
+ :step="0.01"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
/>
|
|
/>
|
|
<span>~</span>
|
|
<span>~</span>
|
|
@@ -584,6 +587,7 @@
|
|
v-model="configForm.adMaxBid"
|
|
v-model="configForm.adMaxBid"
|
|
:min="0.1"
|
|
:min="0.1"
|
|
:max="10000"
|
|
:max="10000"
|
|
|
|
+ :step="0.01"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
/> 元
|
|
/> 元
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -591,6 +595,7 @@
|
|
<a-input-number
|
|
<a-input-number
|
|
class="common-input"
|
|
class="common-input"
|
|
v-model="configForm.adStepBid"
|
|
v-model="configForm.adStepBid"
|
|
|
|
+ :step="0.01"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@blur="handleFloatingInterval"
|
|
@blur="handleFloatingInterval"
|
|
/> 元
|
|
/> 元
|
|
@@ -1039,7 +1044,7 @@ export default {
|
|
},
|
|
},
|
|
configForm: {
|
|
configForm: {
|
|
dpLinkIndexUsed: 0,
|
|
dpLinkIndexUsed: 0,
|
|
- adRetargetingTagsType: '1',
|
|
|
|
|
|
+ adRetargetingTagsType: '',
|
|
adAudiencePackageId: undefined,
|
|
adAudiencePackageId: undefined,
|
|
adStepBid: 0,
|
|
adStepBid: 0,
|
|
ladderOne: '',
|
|
ladderOne: '',
|
|
@@ -1229,6 +1234,19 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
moment,
|
|
moment,
|
|
|
|
+ handleCustomPerson(e) {
|
|
|
|
+ const defaultValue = e.target.value;
|
|
|
|
+ if (defaultValue === 'NONE') {
|
|
|
|
+ this.configForm.updateGetingInclude = [];
|
|
|
|
+ this.configForm.adRetargetingTagsInclude = '';
|
|
|
|
+ this.configForm.adRetargetingTagsExclude = '';
|
|
|
|
+ this.configForm.updateGetingExclude = [];
|
|
|
|
+ this.configForm.adRetargetingTagsType = '';
|
|
|
|
+ }
|
|
|
|
+ else if (defaultValue === 'a') {
|
|
|
|
+ this.configForm.adRetargetingTagsType = '1';
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleAsyncPackage() {
|
|
handleAsyncPackage() {
|
|
this.handleGetAdAudiencePackage();
|
|
this.handleGetAdAudiencePackage();
|
|
this.configForm.adAudiencePackageId = undefined;
|
|
this.configForm.adAudiencePackageId = undefined;
|
|
@@ -1288,12 +1306,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleDirectEvent(list) {
|
|
handleDirectEvent(list) {
|
|
- console.log(list, 'list--list--Include');
|
|
|
|
this.configForm.updateGetingInclude = list;
|
|
this.configForm.updateGetingInclude = list;
|
|
this.configForm.adRetargetingTagsInclude = list && list.join(',');
|
|
this.configForm.adRetargetingTagsInclude = list && list.join(',');
|
|
},
|
|
},
|
|
handleExcludeEvent(list) {
|
|
handleExcludeEvent(list) {
|
|
- console.log(list, 'list--list--Exclude');
|
|
|
|
this.configForm.updateGetingExclude = list;
|
|
this.configForm.updateGetingExclude = list;
|
|
this.configForm.adRetargetingTagsExclude = list && list.join(',');
|
|
this.configForm.adRetargetingTagsExclude = list && list.join(',');
|
|
},
|
|
},
|
|
@@ -1339,14 +1355,14 @@ export default {
|
|
defaultData.forEach(item => {
|
|
defaultData.forEach(item => {
|
|
item.replaceSex = item.audience.gender === 'NONE' ? '不限' : item.audience.gender === 'GENDER_FEMALE' ? '女' : '男';
|
|
item.replaceSex = item.audience.gender === 'NONE' ? '不限' : item.audience.gender === 'GENDER_FEMALE' ? '女' : '男';
|
|
item.replaceEnabled = item.audience.auto_extend_enabled === 1 ? '开启' : '不开启';
|
|
item.replaceEnabled = item.audience.auto_extend_enabled === 1 ? '开启' : '不开启';
|
|
- item.replacePlate = item.audience.platform && item.audience.platform.length ? item.audience.platform.join(',') : '暂无';
|
|
|
|
- item.replaceCitys = item.audience.cityNames && item.audience.cityNames.length ? item.audience.cityNames.join(',') : '暂无';
|
|
|
|
|
|
+ item.replacePlate = item.audience.platform && item.audience.platform.length ? item.audience.platform.join(',') : '不限';
|
|
|
|
+ item.replaceCitys = item.audience.cityNames && item.audience.cityNames.length ? item.audience.cityNames.join(',') : '不限';
|
|
this.ageArr.forEach(val => {
|
|
this.ageArr.forEach(val => {
|
|
if (item.audience.age && item.audience.age.length && item.audience.age.includes(val.value)) {
|
|
if (item.audience.age && item.audience.age.length && item.audience.age.includes(val.value)) {
|
|
ageUpdateList.push(val.label);
|
|
ageUpdateList.push(val.label);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- item.replaceAge = ageUpdateList.length ? ageUpdateList.join(',') : '暂无';
|
|
|
|
|
|
+ item.replaceAge = ageUpdateList.length ? ageUpdateList.join(',') : '不限';
|
|
});
|
|
});
|
|
this.packageMessageDetail = defaultData;
|
|
this.packageMessageDetail = defaultData;
|
|
},
|
|
},
|
|
@@ -1512,7 +1528,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleAccountMode(e) {
|
|
handleAccountMode(e) {
|
|
- this.configForm.accountBudget = '';
|
|
|
|
|
|
+ this.configForm.accountBudget = 0;
|
|
},
|
|
},
|
|
handleAdDownLoadType(e) {
|
|
handleAdDownLoadType(e) {
|
|
this.optimizationOption = [];
|
|
this.optimizationOption = [];
|
|
@@ -1587,6 +1603,9 @@ export default {
|
|
this.configForm.advertisingType = detailData.advertisingType || '1';
|
|
this.configForm.advertisingType = detailData.advertisingType || '1';
|
|
this.configForm.campaignName = detailData.campaignName || '';
|
|
this.configForm.campaignName = detailData.campaignName || '';
|
|
this.configForm.dpLinkIndexUsed = detailData.dpLinkIndexUsed;
|
|
this.configForm.dpLinkIndexUsed = detailData.dpLinkIndexUsed;
|
|
|
|
+ if (detailData.dpLinkIndexUsed === 1) {
|
|
|
|
+ this.adNameTags.push('dp链接标识');
|
|
|
|
+ }
|
|
this.configForm.adName = detailData.adName || '';
|
|
this.configForm.adName = detailData.adName || '';
|
|
this.configForm.campaignCnt = detailData.campaignCnt || '';
|
|
this.configForm.campaignCnt = detailData.campaignCnt || '';
|
|
this.configForm.campaignAdCnt = detailData.campaignAdCnt || '';
|
|
this.configForm.campaignAdCnt = detailData.campaignAdCnt || '';
|