소스 검색

master上线

朱鑫波 4 년 전
부모
커밋
93604e6a7c
3개의 변경된 파일71개의 추가작업 그리고 20개의 파일을 삭제
  1. 62 13
      src/views/modules/autoLaunch/configLaunchInfo.vue
  2. 7 5
      src/views/modules/material/videoMaterial.vue
  3. 2 2
      vue.config.js

+ 62 - 13
src/views/modules/autoLaunch/configLaunchInfo.vue

@@ -303,7 +303,7 @@
                                 </a-radio-group>
                             </a-form-item>
 
-                            <!-- <div style="margin-top:24px"  v-if="getFormData('platformOs')!=0">
+                            <div style="margin-top:24px"  v-if="getFormData('platformOs')!=0">
                                 <div v-if="getFormData('platformOs')==1">
                                     <a-form-item>
                                     <a-radio-group v-decorator="['androidOsv',{initialValue: 3,}]">
@@ -327,10 +327,10 @@
                                     </a-form-item>
                                 </div>
                                 
-                            </div> -->
+                            </div>
                         </div>
                     </div>
-                    <!-- <div class="row-item" v-if="getFormData('platformOs')!=2">
+                    <div class="row-item" v-if="getFormData('platformOs')!=2">
                         <div class="hint-item"></div>
                         <div class="label-item">
                         <div class="text-item">设备品牌</div>
@@ -368,7 +368,48 @@
                         </div>                  
                         
                         </div>
-                    </div> -->
+                    </div>
+                    <div class="row-item">
+                        <div class="hint-item"></div>
+                        <div class="label-item">
+                        <div class="text-item">设备价格</div>
+                        <div class="required-item"></div>
+                        </div>
+                        <div class="input-item">
+                        <a-form-item>
+                            <a-radio-group v-model="devicePrice">
+                                <a-radio-button :value="0">不限</a-radio-button>
+                                <a-radio-button :value="1">选择价格</a-radio-button>                      
+                            </a-radio-group>
+                        </a-form-item>
+                        <div style="width: 400px; margin-top: 24px;" class="inventoryTypes" v-if="devicePrice==1">
+                            <div class="inventory-tags-lists-header" style="padding-left:15px">
+                                
+                            <div class="inventory-tags-lists-name"><strong>品牌名称</strong></div>
+                            </div>
+                            <div class="inventory-tags-lists-container" >
+                                <a-checkbox-group
+                                v-decorator="['devicePrice', { rules: [{ required: true, message: '请选择设备价格' }] }]"
+                                style="width: 120%"
+                                >
+                                <a-checkbox :value="1" style="margin-bottom: 8px">1500以下</a-checkbox>
+                                <a-checkbox :value="2" style="margin-bottom: 8px">1501~2000</a-checkbox>
+                                <a-checkbox :value="3" style="margin-bottom: 8px">2001~2500</a-checkbox>
+                                <a-checkbox :value="4" style="margin-bottom: 8px">2501~3000</a-checkbox>
+                                <a-checkbox :value="5" style="margin-left: 0; margin-bottom: 8px">3001~3500</a-checkbox>
+                                <a-checkbox :value="6" style="margin-bottom: 8px">3501~4000</a-checkbox>
+                                <a-checkbox :value="7" style="margin-bottom: 8px">4001~4500</a-checkbox>
+                                <a-checkbox :value="8" style="margin-bottom: 8px">4501~5000</a-checkbox>
+                                <a-checkbox :value="9" style="margin-left: 0; margin-bottom: 8px">5001~5500</a-checkbox>
+                                <a-checkbox :value="10" style="margin-bottom: 8px">5500以上</a-checkbox>
+                                </a-checkbox-group>
+                            </div>
+                        </div>                  
+                        
+                        </div>
+                    </div>
+
+
                     <div class="row-item">
                         <div class="hint-item"></div>
                             <div class="label-item">
@@ -1298,7 +1339,8 @@ export default {
     data() {
         return {
             clickTrackUrlTip:false,
-            // deviceBrand:0,
+            deviceBrand:0,
+            devicePrice:0,
             tongbuLoading:false,
             refreshPopulationLoading:false,
             noAreaBreak:false,
@@ -1527,7 +1569,7 @@ export default {
     methods: {
         platformOsChange(e){
             //console.log(e);
-            // this.deviceBrand=0;
+            this.deviceBrand=0;
             this.sysType=e.target.value;
             this.sysTypeChange(e)
         },
@@ -2083,10 +2125,11 @@ export default {
                          values.creativeCategory=undefined
                     }
                     
-                    // if(this.deviceBrand==0){
+                    if(this.deviceBrand==0){
                         
-                    // }
-                    // values.deviceBrand=this.deviceBrand==0?'[0]':JSON.stringify(values.deviceBrand)
+                    }
+                    values.deviceBrand=this.deviceBrand==0?'[]':JSON.stringify(values.deviceBrand)
+                    values.devicePrice=this.devicePrice==0?'[]':JSON.stringify(values.deviceBrand)
                     values.accountId = this.accountId
                    
                     values.creativeTag=values.creativeTag?JSON.stringify(values.creativeTag):undefined
@@ -2278,6 +2321,8 @@ export default {
                 this.actionBarTextList = res.result
             }
             })
+
+            
         },
 
         // 获取创意分类创意标签白名单
@@ -2353,10 +2398,13 @@ export default {
                         }
                     }
                     
-                    // if(res.result.deviceBrand){
+                    if(res.result.deviceBrand){
                         
-                    //     this.deviceBrand=res.result.deviceBrand.indexOf(0)>-1?0:1;
-                    // }
+                        this.deviceBrand=JSON.parse(res.result.deviceBrand).length>0?1:0;
+                    }
+                    if(res.result.devicePrice){
+                        this.devicePrice=JSON.parse(res.result.devicePrice).length>0?1:0
+                    }
                     setTimeout(()=>{                       
                         this.form.setFieldsValue({
                              ...res.result,
@@ -2365,7 +2413,8 @@ export default {
                             isOpen:res.result.isOpen?res.result.isOpen:0,
                             cpaBid:res.result.cpaBid/1000,
                             appId:res.singleAppid?JSON.parse(res.result.appIdArray)[0]:JSON.parse(res.result.appIdArray),
-                            // deviceBrand:res.result.deviceBrand?JSON.parse(res.result.deviceBrand):[],
+                            deviceBrand:res.result.deviceBrand?JSON.parse(res.result.deviceBrand):[],
+                            devicePrice:res.result.devicePrice?JSON.parse(res.result.devicePrice):[],
                         })
                     },0)
                     if((res.result.ocpxActionType == 180 || res.result.ocpxActionType == 53) && this.groupTypeData.deepConversionTypes&&this.groupTypeData.deepConversionTypes.length > 0){

+ 7 - 5
src/views/modules/material/videoMaterial.vue

@@ -2498,12 +2498,14 @@ export default {
       getAction('/ctop/materialInfo/getDetail', {
         materialId: item.id,
       }).then((res) => {
-        this.formPerson.setFieldsValue({
-          clipId: res.ascription.clipId,
-          planId: res.ascription.planId,
-          shotId: res.ascription.shotId,
-        })
         this.code = item.code
+        if (res.ascription) {
+          this.formPerson.setFieldsValue({
+            clipId: res.ascription.clipId,
+            planId: res.ascription.planId,
+            shotId: res.ascription.shotId,
+          })
+        }
       })
     },
     edit(item, status, editStatus) {

+ 2 - 2
vue.config.js

@@ -71,7 +71,7 @@ module.exports = {
           // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
           // target: 'http://192.168.1.8:8081', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
+        target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
@@ -80,7 +80,7 @@ module.exports = {
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目