瀏覽代碼

联调通投智选

liubei@c-top.com.cn 3 年之前
父節點
當前提交
944e999c2b

+ 19 - 1
src/views/modules/account-config/account-config.vue

@@ -430,9 +430,27 @@ export default {
         this.handleInitTable();
     },
     methods: {
+        
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
         handleChangeCreativeImage(val) {
-            return val ? this.creativeImageOption.filter(item => item.id === val)[0].value : '-';
+            let orrr = []
+           if (val.split(',').length>1) {
+            this.creativeImageOption.forEach(item=>{
+               val.split(',').forEach(element => {
+                   if (item.id == element) {
+                       orrr.push(item.value)
+                       
+                   }
+               });
+            })
+            console.log(orrr);
+            return val = orrr.join('-')
+           }else{
+               return val ? this.creativeImageOption.filter(item => item.id === val)[0].value : '-';
+           }
+                
+            
+            
         },
         handleAccountMode(e) {
             this.budgetForm.budget = 1000;

+ 26 - 1
src/views/modules/account-config/components/configuration-modal.vue

@@ -2640,6 +2640,7 @@ export default {
             }
         },
         getAgeSelect(data) {
+            console.log(data);
             if (data.length > 1 && data.findIndex(item => item === 'NONE') === 0) {
                 data.splice(data.findIndex(item => item === 'NONE'), 1);
             }
@@ -2779,6 +2780,7 @@ export default {
                 this.pictureStatus = false;
                 this.creativeImageShow = true;
                 this.configForm.creativeImageMode.push('CREATIVE_IMAGE_MODE_VIDEO_VERTICAL');
+                // this.configForm.creativeImageMode = this.configForm.creativeImageMode.toString();
             }
             else if(e.target.value === 'd'){
                 this.configForm.radioChangeValue = '';
@@ -2789,6 +2791,7 @@ export default {
                 this.creativeImageShow = false;
                 this.configForm.creativeImageMode = [];
                 this.configForm.creativeImageMode.push('CREATIVE_IMAGE_MODE_VIDEO_VERTICAL');
+                // this.configForm.creativeImageMode = this.configForm.creativeImageMode.toString();
             }
             this.configForm.adUnionVideoType = '';
             // this.configForm.creativeImageMode = 'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL';
@@ -3200,6 +3203,7 @@ export default {
                             this.configForm.adverPosition = 'c';
                             this.configForm.radioChangeValue = detailData.creativeSceneInventory;
                         }
+                        
                         else if (detailData.creativeInventoryType) {
                             this.configForm.adverPosition = 'b';
                             this.configForm.checkboxChangeValue = detailData.creativeInventoryType.split(',');
@@ -3222,6 +3226,8 @@ export default {
                                 this.configForm.adDeliveryRange = '';
                             }
                             this.NewCheckboxChangeValue(this.configForm.checkboxChangeValue);
+                        }else if(detailData.adDeliveryRange){
+                            this.configForm.adverPosition  = 'd'
                         }
                         else {
                             this.configForm.adverPosition = 'a';
@@ -3232,7 +3238,16 @@ export default {
                             })
                         }
                         this.$nextTick(()=>{
-                            this.configForm.creativeImageMode = detailData.creativeImageMode;
+                            console.log(detailData);
+                            // this.configForm.creativeImageMode = detailData.creativeImageMode
+                            if (detailData.creativeImageMode.split(',').length > 1) {
+                                this.creativeImageShow = false;
+                                this.configForm.creativeImageMode = detailData.creativeImageMode.split(',')
+                            }else{
+                                this.creativeImageShow = true
+                                this.configForm.creativeImageMode = detailData.creativeImageMode.join(',');
+                            }
+                            console.log(this.configForm.creativeImageMode);
                         })
                         this.configForm.adInterestActionMode = detailData.adInterestActionMode;
                         this.configForm.creativeDisplayMode = detailData.creativeDisplayMode;
@@ -3670,6 +3685,10 @@ export default {
                     return;
                 }
                 paramsFormData.creativeSceneInventory = paramsFormData.radioChangeValue;
+            }else if (paramsFormData.adverPosition === 'd') {
+                paramsFormData.inventoryCatalog = 'UNIVERSAL';
+                paramsFormData.creativeSmartInventory = 'UNIVERSAL';
+                paramsFormData.adDeliveryRange = 'UNIVERSAL'
             }
             if (paramsFormData.launchTimeInterval === 'buxian') {
                 paramsFormData.adScheduleTime = '';
@@ -3712,6 +3731,12 @@ export default {
             paramsFormData.adKeywords = this.creativeTag;
             paramsFormData.copywritingNumber = paramsFormData.copywritingNumber?paramsFormData.copywritingNumber:0
             paramsFormData.userId = this.userInfo().id;
+            console.log(paramsFormData.creativeImageMode);
+            if (typeof paramsFormData.creativeImageMode == 'object'){
+                paramsFormData.creativeImageMode = paramsFormData.creativeImageMode.toString()
+            }
+            console.log(paramsFormData);
+            
             this.$refs.ruleForm.validate(valid => {
                 if (valid) {
                     this.sureLoading = true;