|
@@ -23,6 +23,7 @@
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="dp链接">
|
|
|
<a-radio-group
|
|
|
+ :disabled="modalTitle === 'edit'"
|
|
|
v-model="configForm.dpLinkIndexUsed"
|
|
|
button-style="solid"
|
|
|
@change="handleDpLinkIndexUsed"
|
|
@@ -73,6 +74,7 @@
|
|
|
@blur="handleAccountBudget"
|
|
|
/> 元
|
|
|
</a-form-model-item>
|
|
|
+ <div v-if="adBudgetShowTitle" style="width: 500px;color: #f00;margin-left: 140px;">单次修改预算幅度, 不能低于100.0元</div>
|
|
|
</div>
|
|
|
<div class="separate-module-con">
|
|
|
<p class="rock-title">广告组信息</p>
|
|
@@ -266,7 +268,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="separate-module-con">
|
|
|
- <a-tabs v-model="selectPackageTabs">
|
|
|
+ <a-tabs v-model="selectPackageTabs" @change="handleSelectPackageTabs">
|
|
|
<a-tab-pane key="1" tab="新建定向">
|
|
|
<p class="rock-title">用户定向</p>
|
|
|
<a-form-model-item label="地域">
|
|
@@ -304,13 +306,12 @@
|
|
|
<radio-check v-model="configForm.adSelectAge" :options="ageArr" @change="getAgeSelect"></radio-check>
|
|
|
</a-form-model-item>
|
|
|
<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="a">自定义人群</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
<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-button value="1">定向</a-radio-button>
|
|
|
<a-radio-button value="2">排除</a-radio-button>
|
|
@@ -319,17 +320,46 @@
|
|
|
</a-form-model-item>
|
|
|
<div v-if="configForm.customPerson === 'a' && configForm.adRetargetingTagsType === '1'" class="adver-position-radio">
|
|
|
<div style="width: 60%;">
|
|
|
- <directional-logic ref="direct" packtype="directional" multitype="alone" :defaultlist="directionalData" :valueids="configForm.adRetargetingTagsType" :updatelistinclude="configForm.updateGetingInclude" @selection-alone-event="handleSelectionAloneEvent"></directional-logic>
|
|
|
+ <directional-logic
|
|
|
+ ref="direct"
|
|
|
+ packtype="directional"
|
|
|
+ multitype="alone"
|
|
|
+ :defaultlist="directionalData"
|
|
|
+ :valueids="configForm.adRetargetingTagsType"
|
|
|
+ :updatelistinclude="configForm.updateGetingInclude" @selection-alone-event="handleSelectionAloneEvent"
|
|
|
+ @clearlist="handleClearlist"
|
|
|
+ >
|
|
|
+ </directional-logic>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="configForm.customPerson === 'a' && configForm.adRetargetingTagsType === '2'" class="adver-position-radio">
|
|
|
<div style="width: 60%;">
|
|
|
- <directional-logic ref="exclude" packtype="exclude" multitype="alone" :defaultlist="directionalData" :valueids="configForm.adRetargetingTagsType" :updatelistexclude="configForm.updateGetingExclude" @selection-alone-event="handleSelectionAloneEvent"></directional-logic>
|
|
|
+ <directional-logic
|
|
|
+ ref="exclude"
|
|
|
+ packtype="exclude"
|
|
|
+ multitype="alone"
|
|
|
+ :defaultlist="directionalData"
|
|
|
+ :valueids="configForm.adRetargetingTagsType"
|
|
|
+ :updatelistexclude="configForm.updateGetingExclude" @selection-alone-event="handleSelectionAloneEvent"
|
|
|
+ @clearlist="handleClearlist"
|
|
|
+ >
|
|
|
+ </directional-logic>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="configForm.customPerson === 'a' && configForm.adRetargetingTagsType === '3'" class="adver-position-radio">
|
|
|
<div style="width: 60%;">
|
|
|
- <directional-logic ref="twoway" packtype="twoway" multitype="all" :defaultlist="directionalData" :valueids="configForm.adRetargetingTagsType" :updatelistinclude="configForm.updateGetingInclude" :updatelistexclude="configForm.updateGetingExclude" @selection-direct-event="handleDirectEvent" @selection-exclude-event="handleExcludeEvent"></directional-logic>
|
|
|
+ <directional-logic
|
|
|
+ ref="twoway"
|
|
|
+ packtype="twoway"
|
|
|
+ multitype="all"
|
|
|
+ :defaultlist="directionalData"
|
|
|
+ :valueids="configForm.adRetargetingTagsType"
|
|
|
+ :updatelistinclude="configForm.updateGetingInclude"
|
|
|
+ :updatelistexclude="configForm.updateGetingExclude" @selection-direct-event="handleDirectEvent"
|
|
|
+ @selection-exclude-event="handleExcludeEvent"
|
|
|
+ @clearlist="handleClearlist"
|
|
|
+ >
|
|
|
+ </directional-logic>
|
|
|
</div>
|
|
|
</div>
|
|
|
<a-form-model-item label="媒体定向">
|
|
@@ -399,7 +429,7 @@
|
|
|
</a-form-model-item>
|
|
|
</a-tab-pane>
|
|
|
<a-tab-pane key="2" tab="选择定向包">
|
|
|
- <a-form-model-item class="select-orientation-class" label="选择已有定向包" prop="adAudiencePackageId">
|
|
|
+ <a-form-model-item class="select-orientation-class" label="选择已有定向包" :prop="selectPackageTabs === '2' ? 'adAudiencePackageId' : ''">
|
|
|
<a-select
|
|
|
class="common-input-long"
|
|
|
v-model="configForm.adAudiencePackageId"
|
|
@@ -432,27 +462,27 @@
|
|
|
<div v-if="packageMessageDetail.length" class="orientation-content-substance">
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">定向人群包:</span>
|
|
|
- <span>{{ packageMessageDetail[0].description }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].description }}</span>
|
|
|
</div>
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">地域:</span>
|
|
|
- <span>{{ packageMessageDetail[0].replaceCitys }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].replaceCitys }}</span>
|
|
|
</div>
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">性别:</span>
|
|
|
- <span>{{ packageMessageDetail[0].replaceSex }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].replaceSex }}</span>
|
|
|
</div>
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">年龄:</span>
|
|
|
- <span>{{ packageMessageDetail[0].replaceAge }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].replaceAge }}</span>
|
|
|
</div>
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">平台:</span>
|
|
|
- <span>{{ packageMessageDetail[0].replacePlate }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].replacePlate }}</span>
|
|
|
</div>
|
|
|
<div class="content-substance-singal">
|
|
|
<span class="singal-spn">智能放量:</span>
|
|
|
- <span>{{ packageMessageDetail[0].replaceEnabled }}</span>
|
|
|
+ <span class="singal-content">{{ packageMessageDetail[0].replaceEnabled }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else class="orientation-content-msg">
|
|
@@ -489,8 +519,6 @@
|
|
|
@blur="handleAdBudgetBlur"
|
|
|
/>
|
|
|
</a-input-group>
|
|
|
- <div v-if="adBudgetShowTitle" style="width: 500px;color: #f00;">单次修改预算幅度, 不能低于100.0元</div>
|
|
|
- <span class="especial-label budget-mode-label">*</span>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="投放时间">
|
|
|
<a-radio-group :disabled="modalTitle === 'edit'" v-model="configForm.adScheduleType" button-style="solid" @change="handleAdScheduleType">
|
|
@@ -553,7 +581,9 @@
|
|
|
v-model="configForm.adMinBid"
|
|
|
:min="0.1"
|
|
|
:max="10000"
|
|
|
+ :step="0.01"
|
|
|
placeholder="请输入"
|
|
|
+ @blur="handleAdMinBidBlur"
|
|
|
/>
|
|
|
<span>~</span>
|
|
|
</a-form-model-item>
|
|
@@ -563,9 +593,12 @@
|
|
|
v-model="configForm.adMaxBid"
|
|
|
:min="0.1"
|
|
|
:max="10000"
|
|
|
+ :step="0.01"
|
|
|
placeholder="请输入"
|
|
|
+ @blur="handleAdMaxBidBlur"
|
|
|
/> 元
|
|
|
</a-form-model-item>
|
|
|
+ <div v-if="isAdCpaBidBlur" style="width: 500px;color: #f00;margin-left: 140px;">{{ adCpaBidBlurTxt }}</div>
|
|
|
</div>
|
|
|
<div v-if="configForm.adBidCreateType === 'STEP'">
|
|
|
<a-form-model-item label="目标转化出价" class="dp-link-start" prop="adMinBid">
|
|
@@ -574,7 +607,9 @@
|
|
|
v-model="configForm.adMinBid"
|
|
|
:min="0.1"
|
|
|
:max="10000"
|
|
|
+ :step="0.01"
|
|
|
placeholder="请输入"
|
|
|
+ @blur="handleAdMinBidBlur"
|
|
|
/>
|
|
|
<span>~</span>
|
|
|
</a-form-model-item>
|
|
@@ -584,13 +619,17 @@
|
|
|
v-model="configForm.adMaxBid"
|
|
|
:min="0.1"
|
|
|
:max="10000"
|
|
|
+ :step="0.01"
|
|
|
placeholder="请输入"
|
|
|
+ @blur="handleAdMaxBidBlur"
|
|
|
/> 元
|
|
|
</a-form-model-item>
|
|
|
+ <div v-if="isAdCpaBidBlur" style="width: 500px;color: #f00;margin-left: 140px">{{ adCpaBidBlurTxt }}</div>
|
|
|
<a-form-model-item label="浮动间隔" prop="adStepBid">
|
|
|
<a-input-number
|
|
|
class="common-input"
|
|
|
v-model="configForm.adStepBid"
|
|
|
+ :step="0.01"
|
|
|
placeholder="请输入"
|
|
|
@blur="handleFloatingInterval"
|
|
|
/> 元
|
|
@@ -880,7 +919,7 @@ export default {
|
|
|
{
|
|
|
value: '4G',
|
|
|
label: '4G'
|
|
|
- },
|
|
|
+ }
|
|
|
],
|
|
|
adHideIfConvertedDataOption: [ // 过滤已转化用户option
|
|
|
{
|
|
@@ -1039,7 +1078,7 @@ export default {
|
|
|
},
|
|
|
configForm: {
|
|
|
dpLinkIndexUsed: 0,
|
|
|
- adRetargetingTagsType: '1',
|
|
|
+ adRetargetingTagsType: '',
|
|
|
adAudiencePackageId: undefined,
|
|
|
adStepBid: 0,
|
|
|
ladderOne: '',
|
|
@@ -1056,7 +1095,7 @@ export default {
|
|
|
productSellingPoints: [], // 商品买点
|
|
|
adBudgetMode: 'BUDGET_MODE_DAY', // 预算类型
|
|
|
adDownloadUrl: '', // 下载链接
|
|
|
- accountBudget: 0, // 账户日预算
|
|
|
+ accountBudget: 1000, // 账户日预算
|
|
|
accountId: undefined, // 账户
|
|
|
dpLinkStartIndex: 1,
|
|
|
dpLinkEndIndex: 2,
|
|
@@ -1229,6 +1268,49 @@ export default {
|
|
|
methods: {
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
moment,
|
|
|
+ handleSelectPackageTabs(e) {
|
|
|
+ if (this.modalTitle === 'add') {
|
|
|
+ if (e === '1') {
|
|
|
+ this.configForm.adAudiencePackageId = undefined;
|
|
|
+ this.packageMessageDetail = [];
|
|
|
+ }
|
|
|
+ else if (e === '2') {
|
|
|
+ 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 = '';
|
|
|
+ if (!this.platformLoadingType) {
|
|
|
+ this.configForm.adPlatform = 'NONE';
|
|
|
+ this.platformLoadingType = '';
|
|
|
+ }
|
|
|
+ this.configForm.adDeviceSelectType = ['NONE'];
|
|
|
+ this.configForm.adAndroidVersion = 'NONE';
|
|
|
+ this.configForm.adSelectAc = ['NONE'];
|
|
|
+ this.configForm.adHideIfExists = '0';
|
|
|
+ this.configForm.adAutoExtendEnabled = '0';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 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() {
|
|
|
this.handleGetAdAudiencePackage();
|
|
|
this.configForm.adAudiencePackageId = undefined;
|
|
@@ -1255,6 +1337,20 @@ export default {
|
|
|
handleFloatingInterval(e) {
|
|
|
this.configForm.adStepBid = Number(Number(e.target.value).toFixed(2));
|
|
|
},
|
|
|
+ handleAdMinBidBlur(e) {
|
|
|
+ this.configForm.adMinBid = Number(Number(e.target.value).toFixed(2));
|
|
|
+ },
|
|
|
+ handleAdMaxBidBlur(e) {
|
|
|
+ const defaultValue = e.target.value;
|
|
|
+ this.configForm.adMaxBid = Number(Number(defaultValue).toFixed(2));
|
|
|
+ if (this.configForm.adBudget > 0 && defaultValue > this.configForm.adBudget) {
|
|
|
+ this.isAdCpaBidBlur = true;
|
|
|
+ this.adCpaBidBlurTxt = '出价不能大于预算';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.isAdCpaBidBlur = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
handleDirectionalList() {
|
|
|
const paramsData = {
|
|
|
accountId: this.configForm.accountId
|
|
@@ -1287,13 +1383,17 @@ export default {
|
|
|
this.configForm.adRetargetingTagsInclude = '';
|
|
|
}
|
|
|
},
|
|
|
+ handleClearlist() {
|
|
|
+ this.configForm.updateGetingInclude = [];
|
|
|
+ this.configForm.adRetargetingTagsInclude = '';
|
|
|
+ this.configForm.adRetargetingTagsExclude = '';
|
|
|
+ this.configForm.updateGetingExclude = [];
|
|
|
+ },
|
|
|
handleDirectEvent(list) {
|
|
|
- console.log(list, 'list--list--Include');
|
|
|
this.configForm.updateGetingInclude = list;
|
|
|
this.configForm.adRetargetingTagsInclude = list && list.join(',');
|
|
|
},
|
|
|
handleExcludeEvent(list) {
|
|
|
- console.log(list, 'list--list--Exclude');
|
|
|
this.configForm.updateGetingExclude = list;
|
|
|
this.configForm.adRetargetingTagsExclude = list && list.join(',');
|
|
|
},
|
|
@@ -1339,14 +1439,14 @@ export default {
|
|
|
defaultData.forEach(item => {
|
|
|
item.replaceSex = item.audience.gender === 'NONE' ? '不限' : item.audience.gender === 'GENDER_FEMALE' ? '女' : '男';
|
|
|
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 => {
|
|
|
if (item.audience.age && item.audience.age.length && item.audience.age.includes(val.value)) {
|
|
|
ageUpdateList.push(val.label);
|
|
|
}
|
|
|
});
|
|
|
- item.replaceAge = ageUpdateList.length ? ageUpdateList.join(',') : '暂无';
|
|
|
+ item.replaceAge = ageUpdateList.length ? ageUpdateList.join(',') : '不限';
|
|
|
});
|
|
|
this.packageMessageDetail = defaultData;
|
|
|
},
|
|
@@ -1355,11 +1455,13 @@ export default {
|
|
|
this.configForm.adMinBid = '';
|
|
|
this.configForm.adMaxBid = '';
|
|
|
this.configForm.adStepBid = 0;
|
|
|
+ this.isAdCpaBidBlur = false;
|
|
|
this.$refs['ruleForm'].clearValidate(['adMinBid']);
|
|
|
this.$refs['ruleForm'].clearValidate(['adMaxBid']);
|
|
|
},
|
|
|
handleAdCpaBidBlur(e) {
|
|
|
const defaultValue = e.target.value;
|
|
|
+ this.configForm.adCpaBid = Number(Number(defaultValue).toFixed(2));
|
|
|
if (this.configForm.adBudget > 0 && defaultValue > this.configForm.adBudget) {
|
|
|
this.isAdCpaBidBlur = true;
|
|
|
this.adCpaBidBlurTxt = '出价不能大于预算';
|
|
@@ -1426,6 +1528,10 @@ export default {
|
|
|
else {
|
|
|
this.isAdCpaBidBlur = false;
|
|
|
}
|
|
|
+ },
|
|
|
+ handleAccountBudget(e) {
|
|
|
+ const adBudgetInput = e.target.value;
|
|
|
+ this.configForm.accountBudget = Number(Number(adBudgetInput).toFixed(2));
|
|
|
if (this.modalTitle === 'edit') {
|
|
|
if (Number(adBudgetInput) >= Number(this.defaultAdBudget) && Number(adBudgetInput) < (Number(this.defaultAdBudget) + 100)) {
|
|
|
this.adBudgetShowTitle = true;
|
|
@@ -1438,9 +1544,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- handleAccountBudget(e) {
|
|
|
- this.configForm.accountBudget = Number(Number(e.target.value).toFixed(2));
|
|
|
- },
|
|
|
handleExportRules(value, min, max, callback) {
|
|
|
let cnReg = /([\u4e00-\u9fa5]|[\u3000-\u303F]|[\uFF00-\uFF60])/;
|
|
|
let length = 0;
|
|
@@ -1512,7 +1615,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleAccountMode(e) {
|
|
|
- this.configForm.accountBudget = '';
|
|
|
+ if (e.target.value === '1') {
|
|
|
+ this.configForm.accountBudget = 0;
|
|
|
+ }
|
|
|
+ else if (e.target.value === '2') {
|
|
|
+ this.configForm.accountBudget = 1000;
|
|
|
+ }
|
|
|
},
|
|
|
handleAdDownLoadType(e) {
|
|
|
this.optimizationOption = [];
|
|
@@ -1587,17 +1695,24 @@ export default {
|
|
|
this.configForm.advertisingType = detailData.advertisingType || '1';
|
|
|
this.configForm.campaignName = detailData.campaignName || '';
|
|
|
this.configForm.dpLinkIndexUsed = detailData.dpLinkIndexUsed;
|
|
|
+ if (detailData.dpLinkIndexUsed === 1) {
|
|
|
+ this.adNameTags.push('dp链接标识');
|
|
|
+ }
|
|
|
this.configForm.adName = detailData.adName || '';
|
|
|
this.configForm.campaignCnt = detailData.campaignCnt || '';
|
|
|
this.configForm.campaignAdCnt = detailData.campaignAdCnt || '';
|
|
|
this.configForm.launchTarget = detailData.launchTarget || 'OCPM';
|
|
|
- this.configForm.adDownloadType = detailData.adDownloadType || 'DOWNLOAD_URL';
|
|
|
+ this.configForm.adDownloadType = detailData.adDownloadType;
|
|
|
+ this.configForm.adPlatform = detailData.adPlatform;
|
|
|
this.configForm.adExternalUrl = detailData.adExternalUrl || '';
|
|
|
this.configForm.adOpenUrl = detailData.adOpenUrl || '';
|
|
|
this.configForm.adDownloadUrl = detailData.adDownloadUrl || '';
|
|
|
this.configForm.adPackage = detailData.adPackage || '';
|
|
|
this.configForm.adConvertType = detailData.adConvertType || '';
|
|
|
this.configForm.adDistrict = detailData.adDistrict || 'NONE';
|
|
|
+ if (detailData.adDownloadType === 'DOWNLOAD_URL') {
|
|
|
+ this.handleGetPackage();
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
this.listArr = detailData.adCity.split(',');
|
|
|
this.configForm.adSelectCity = detailData.adCity.split(',');
|
|
@@ -1648,7 +1763,6 @@ export default {
|
|
|
this.configForm.adSelectAc = detailData.adAc.split(',');
|
|
|
this.configForm.adDeviceSelectType = detailData.adDeviceType.split(',');
|
|
|
this.configForm.adSuperiorPopularityType = detailData.adSuperiorPopularityType;
|
|
|
- this.configForm.adPlatform = detailData.adPlatform;
|
|
|
this.configForm.adAc = detailData.adAc;
|
|
|
this.configForm.adHideIfExists = String(detailData.adHideIfExists);
|
|
|
this.configForm.adHideIfConverted = detailData.adHideIfConverted;
|
|
@@ -1656,7 +1770,7 @@ export default {
|
|
|
this.configForm.adSmartBidType = detailData.adSmartBidType;
|
|
|
this.configForm.adBudgetMode = detailData.adBudgetMode;
|
|
|
this.configForm.adBudget = detailData.adBudget;
|
|
|
- this.defaultAdBudget = detailData.adBudget;
|
|
|
+ this.defaultAdBudget = detailData.accountBudget;
|
|
|
this.configForm.adScheduleType = detailData.adScheduleType;
|
|
|
this.configForm.launchDateRange[0] = detailData.adStartTime;
|
|
|
this.configForm.launchDateRange[1] = detailData.adEndTime;
|
|
@@ -1680,7 +1794,6 @@ export default {
|
|
|
this.imageUrl = detailData.imageUrl;
|
|
|
this.urlResult = detailData.imageUrl;
|
|
|
this.md5Result = detailData.creativeProductImageCode;
|
|
|
- this.handleGetPackage();
|
|
|
if (detailData.adAndroidOsv !== 'NONE') {
|
|
|
this.configForm.adAndroidVersion = 'a';
|
|
|
this.configForm.androidChangeValue = detailData.adAndroidOsv;
|
|
@@ -2008,6 +2121,9 @@ export default {
|
|
|
},
|
|
|
handleRelaxSure() {
|
|
|
let paramsFormData = this.configForm;
|
|
|
+ if (this.adBudgetShowTitle) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.configForm.adDistrict === 'CITY') {
|
|
|
if (!this.configForm.adSelectCity.length) {
|
|
|
this.$message.error('请选择省市');
|
|
@@ -2018,6 +2134,20 @@ export default {
|
|
|
this.$message.error('请选择已有定向包');
|
|
|
return;
|
|
|
}
|
|
|
+ if (paramsFormData.customPerson === 'a') {
|
|
|
+ if (paramsFormData.adRetargetingTagsType === '1' && !paramsFormData.adRetargetingTagsInclude) {
|
|
|
+ this.$message.error('请选择人群');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else if (paramsFormData.adRetargetingTagsType === '2' && !paramsFormData.adRetargetingTagsExclude) {
|
|
|
+ this.$message.error('请选择人群');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else if (paramsFormData.adRetargetingTagsType === '3' && (!paramsFormData.adRetargetingTagsExclude || !paramsFormData.adRetargetingTagsInclude)) {
|
|
|
+ this.$message.error('请选择人群');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.configForm.adScheduleType === 'SCHEDULE_START_END' && !this.configForm.launchDateRange.length) {
|
|
|
this.$message.error('请选择投放时间');
|
|
|
return;
|