Ver Fonte

头条 人群包 页面

jiayufei há 4 anos atrás
pai
commit
76eec9cf48

+ 11 - 3
src/views/modules/account-config/components/configuration-modal.vue

@@ -1442,13 +1442,12 @@ export default {
         },
         handleAdDownLoadType(e) {
             this.optimizationOption = [];
-            this.$refs['ruleForm'].clearValidate(['adDownloadUrl']);
-            this.$refs['ruleForm'].clearValidate(['adExternalUrl']);
-            this.$refs['ruleForm'].clearValidate(['adPackage']);
             if (e.target.value === 'DOWNLOAD_URL') {
                 this.configForm.adExternalUrl = undefined;
                 this.configForm.adOpenUrl = undefined;
                 this.configForm.adConvertId = undefined;
+                this.$refs['ruleForm'].clearValidate(['adDownloadUrl']);
+                this.$refs['ruleForm'].clearValidate(['adPackage']);
             }
             else if (e.target.value === 'EXTERNAL_URL') {
                 console.log(this.configForm.adDownloadUrl, this.configForm.adPackage, '[][][][][][][]]][]][][]]][]');
@@ -1457,6 +1456,7 @@ export default {
                 this.configForm.adPackage = undefined;
                 this.configForm.adConvertId = undefined;
                 this.configForm.adOpenUrl = undefined;
+                this.$refs['ruleForm'].clearValidate(['adExternalUrl']);
             }
         },
         handleCampaignCnt(e) {
@@ -1559,6 +1559,14 @@ export default {
                                     this.configForm.updateGetingExclude = detailData.adRetargetingTagsExclude.split(',').map(item => Number(item));
                                     this.configForm.updateGetingInclude = [];
                                 }
+                                else {
+                                    this.configForm.customPerson = 'NONE';
+                                    this.configForm.directionalLogic = '1';
+                                    this.configForm.adRetargetingTagsExclude = '';
+                                    this.configForm.updateGetingExclude = '';
+                                    this.configForm.updateGetingInclude = [];
+                                    this.configForm.updateGetingExclude = [];
+                                }
                             }
                             else {
                                 this.$message.error(result.message);