Procházet zdrojové kódy

'保存智能投放'

魏志佳 před 4 roky
rodič
revize
fc613537af
1 změnil soubory, kde provedl 10 přidání a 14 odebrání
  1. 10 14
      src/views/modules/autoLaunch/configLaunchInfo.vue

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

@@ -1280,6 +1280,7 @@ export default {
                         props: {
                             disabled: this.excludeSelectedRowKeys.indexOf(record.key)>-1,  // Column configuration not to be checked
                             name: record.name,
+                            defaultChecked:this.incluedSelectedRowKeys.indexOf(record.key)>-1
                         },
                     }),
                 };
@@ -1297,6 +1298,7 @@ export default {
                         props: {
                             disabled: this.incluedSelectedRowKeys.indexOf(record.key)>-1, // Column configuration not to be checked
                             name: record.name,
+                            defaultChecked:this.excludeSelectedRowKeys.indexOf(record.key)>-1
                         },
                     }),
                 };
@@ -1332,8 +1334,10 @@ export default {
         
     
         goBack() {
-            this.$router.replace('/autoLaunch/autoLaunchList')
-            this.$bus.$emit('remove', '/autoLaunch/newStrategy')
+            this.$router.replace('/autoLaunch/configLaunchList')
+            this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')  
+            this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)  
+            
         },
     
        
@@ -1765,12 +1769,14 @@ export default {
                         if(res.success){                            
                             
                             this.$router.replace('/autoLaunch/configLaunchList')
-                            this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')                              
+                            this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo') 
+                            this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)                               
                         }else{
                             this.$message.error(res.message)
                             
                             // this.$router.replace('/autoLaunch/configLaunchList')
                             // this.$bus.$emit('remove', '/autoLaunch/configLaunchInfo')
+                            // this.$bus.$emit('remove', `/autoLaunch/configLaunchInfo?id=${this.editRecordId}`)  
                         }
                     })
 
@@ -2005,17 +2011,7 @@ export default {
                     }
                     
             
-                    let incluedSelectedRowKeys=res.result.population?JSON.parse(res.result.population):[]
-                    let excludeSelectedRowKeys=res.result.excludePopulation?JSON.parse(res.result.excludePopulation):[]
-                    let selectedRow=[]
-                    incluedSelectedRowKeys.forEach(item=>{
-                        selectedRow.push({
-                            accountId:this.accountId,
-                            key:item,
-                            id:item,
-                        })
-                       
-                    })
+                    
                     this.incluedSelectedRowKeys=res.result.population?JSON.parse(res.result.population):[]
                     this.excludeSelectedRowKeys=res.result.excludePopulation?JSON.parse(res.result.excludePopulation):[]