瀏覽代碼

头条 人群包 页面

jiayufei 4 年之前
父節點
當前提交
a071d8be72
共有 1 個文件被更改,包括 12 次插入23 次删除
  1. 12 23
      src/views/modules/account-config/components/configuration-modal.vue

+ 12 - 23
src/views/modules/account-config/components/configuration-modal.vue

@@ -1195,7 +1195,6 @@ export default {
             };
             getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getDMPCustomAudience', paramsData).then(result => {
                 if (result.code === 0) {
-                    console.log(result, 'result--8888888888888888888888888888888-result');
                     result.result.forEach(item => {
                         item.key = item.custom_audience_id;
                     });
@@ -1398,9 +1397,6 @@ export default {
                     if (result.code === 0) {
                         this.configForm.adPackage = result.result.package || '';
                         this.platformLoadingType = result.result.platform || '';
-                        // if (result.result.platform === '') {
-
-                        // }
                     }
                     else {
                         this.$message.error(result.message);
@@ -1442,21 +1438,18 @@ export default {
         },
         handleAdDownLoadType(e) {
             this.optimizationOption = [];
-            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, '[][][][][][][]]][]][][]]][]');
-                this.configForm.adExternalUrl = undefined;
-                this.configForm.adDownloadUrl = undefined;
-                this.configForm.adPackage = undefined;
-                this.configForm.adConvertId = undefined;
-                this.configForm.adOpenUrl = undefined;
-                this.$refs['ruleForm'].clearValidate(['adExternalUrl']);
+            const defaultValue = e.target.value;
+            if (defaultValue === 'DOWNLOAD_URL') {
+                this.configForm.adExternalUrl = '';
+                this.configForm.adOpenUrl = '';
+                this.$refs.ruleForm.clearValidate(['adExternalUrl']);
+            }
+            else if (defaultValue === 'EXTERNAL_URL') {
+                this.configForm.adDownloadUrl = '';
+                this.configForm.adPackage = '';
+                this.configForm.adConvertId = '';
+                this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
+                this.$refs.ruleForm.clearValidate(['adPackage']);
             }
         },
         handleCampaignCnt(e) {
@@ -2059,10 +2052,6 @@ export default {
                 }
             }
             this.configForm.creativeLabel = [];
-            if (this.creativeTag.length > 20) {
-                this.creativeTag = this.creativeTag.slice(0, 20);
-                this.$message.error('最多创建20个');
-            }
         },
         handleTagsClose(removedTag) {
             const tags = this.creativeTag.filter(tag => tag !== removedTag);