|
@@ -1269,28 +1269,33 @@ export default {
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
moment,
|
|
moment,
|
|
handleSelectPackageTabs(e) {
|
|
handleSelectPackageTabs(e) {
|
|
- 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 = '';
|
|
|
|
- // 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 (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) {
|
|
handleCustomPerson(e) {
|