浏览代码

bug-yufei

jiayufei 4 年之前
父节点
当前提交
342d4d0c7b
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/views/modules/account-config/components/configuration-modal.vue

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

@@ -1324,6 +1324,7 @@ export default {
                 creativeThirdIndustryIds: [{required: true, message: '请选择', trigger: 'change'}]
             },
             configForm: {
+                adAppType: '',
                 adDirectionalFlag: 'add',
                 adInterestActionMode: 'UNLIMITED',
                 creativeDisplayMode: 'CREATIVE_DISPLAY_MODE_CTR',
@@ -1442,9 +1443,17 @@ export default {
         },
         NewAdExternalUrl() {
             return this.configForm.adExternalUrl;
+        },
+        NewPlatformLoadingType() {
+            return this.platformLoadingType;
         }
     },
     watch: {
+        NewPlatformLoadingType(newVal, oldVal) {
+            if (newVal) {
+                this.configForm.adAppType = newVal;
+            }
+        },
         NewAdExternalUrl(newVal, oldVal) {
             if (newVal && this.configForm.accountId) {
                 const paramsData = {
@@ -1935,6 +1944,7 @@ export default {
                 this.configForm.adDownloadUrl = '';
                 this.configForm.adPackage = '';
                 this.configForm.adConvertId = '';
+                this.configForm.adAppType = '';
                 this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
                 this.$refs.ruleForm.clearValidate(['adPackage']);
             }
@@ -2013,6 +2023,7 @@ export default {
                         this.configForm.adPackage = detailData.adPackage || '';
                         this.configForm.adConvertType = detailData.adConvertType || '';
                         this.configForm.adDistrict = detailData.adDistrict || 'NONE';
+                        this.configForm.adAppType = detailData.adAppType;
                         if (detailData.adDownloadType === 'DOWNLOAD_URL') {
                             this.handleGetPackage();
                         }