Переглянути джерело

'改智能投放配置回显'

魏志佳 4 роки тому
батько
коміт
14ae68bd9e

+ 1 - 3
src/views/modules/autoLaunch/components/MultiCheckBox.vue

@@ -224,13 +224,11 @@ import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
     },
     mounted() {
       this.currentLayerNum = this.curLayerNum
-
       this.listArr.forEach(element => {
         this.plainOptions.push(element.value)
         // console.log(this.plainOptions)
       })
- 
-    
+
        console.log('zhixingle yici')
       if (this.$refs.checkList) {
         let refsCheckListArr = Array.from(this.$refs.checkList)

+ 18 - 2
src/views/modules/autoLaunch/components/linkMultiSelect.vue

@@ -344,7 +344,7 @@
              
             }
           }, 100)
-          this.$emit('getSelectedArr',val.checkList)
+          // this.$emit('getSelectedArr',val.checkList)
 
         })
       },
@@ -580,6 +580,14 @@
         }else if(val.curLayerNum==4){
 
         }
+
+
+        let dataArr=[];
+        this.checkedShowList.forEach(item=>{
+          dataArr.push(item.code)
+        })
+        this.$emit('getSelectedArr',dataArr)
+
       },
 
 
@@ -588,6 +596,7 @@
         // this.listArr1=this.listArr;
         this.title1=this.title;
         // console.log(this.listUrl)
+        console.log(this.listArr,'----------------')
         if(this.listUrl){
             getAction(this.listUrl,{
                 parent:0,
@@ -603,7 +612,14 @@
                         
                     })
                 };
-                this.listArr1=res.result
+                this.listArr1=res.result;
+                this.listArr.forEach(item=>{
+                  this.listArr1.forEach(ele=>{
+                    if(ele.value==item){
+                      ele.checked=true
+                    } 
+                  })
+                })
             })
         }
 

+ 10 - 2
src/views/modules/autoLaunch/configLaunchInfo.vue

@@ -1556,7 +1556,7 @@ export default {
 
             //获取选中的城市
             getSelectedCityArr(val){
-                // console.log(val);
+                console.log(val);
                 this.region=[];
                 this.region=val;
             },
@@ -2016,8 +2016,16 @@ export default {
                         })
                        
                     })
-
+                    this.incluedSelectedRowKeys=res.result.population?JSON.parse(res.result.population):[]
+                    this.excludeSelectedRowKeys=res.result.excludePopulation?JSON.parse(res.result.excludePopulation):[]
                     
+                    let region=res.result.region?JSON.parse(res.result.region):[]
+                    if(region.length==0){
+                        this.district='NONE'
+                    }else{
+                        this.district='CITY';
+                        this.regionList=region
+                    }
 
                     if(this.getFormData('customCrowd')=='1' || this.getFormData('customCrowd')=='2'){