Explorar o código

定向包bug修改完成

朱鑫波 %!s(int64=4) %!d(string=hai) anos
pai
achega
fb37a4e408

+ 10 - 2
src/views/modules/autoLaunch/directional/directional-service.js

@@ -44,7 +44,15 @@
                 title: '失败原因',
                 dataIndex: 'message',
                 width: '25%',
-                align: 'center'
+                align: 'center',
+                customRender(t) {
+                    if(t === 'OK') {
+                        return '-';
+                    }
+                    else {
+                        return t;
+                    }
+                }
             },
             {
                 title: '操作',
@@ -67,7 +75,7 @@
             },
             {
                 title: '所属账户',
-                dataIndex: 'accountName',
+                dataIndex: 'authName',
                 width: '50%',
                 align: 'center'
             }

+ 25 - 1
src/views/modules/autoLaunch/directional/directional.vue

@@ -518,7 +518,8 @@ export default {
             },
             tableSelectList: {},
             acountRelaxDetail: {},
-            causeDetailData: {}
+            causeDetailData: {},
+            editPerson: null,
         };
     },
     watch: {
@@ -726,6 +727,29 @@ export default {
             this.relaxVisible = false;
             this.personDetail = val;
             this.personName = val.authName;
+            let params = {};
+            params.accountId = val.accountId;
+            params.templateId = val.templateId;
+            getAction('/kuaishouDirectionalPackage/queryPopulationById' ,params).then(res => {
+                if(res.success) {
+                    this.retargetAccountId(val.accountId);
+                    this.editPerson = res.result;
+                    if(res.result.population&&res.result.excludePopulation){
+                        this.people = '3';
+                    }
+                    else if(res.result.population && !res.result.excludePopulation){
+                        this.people = '1';
+                    }
+                    else if(!res.result.population&&!res.result.excludePopulation){
+                        this.people = '0';
+                    }
+                    else{
+                        this.people = '2';
+                    }
+                    this.incluedSelectedRowKeys = res.result.population ? res.result.population : [];
+                    this.excludeSelectedRowKeys = res.result.excludePopulation ? res.result.excludePopulation : [];
+                }
+            })
         },
         handleAddPopulation() {
             this.personLoading = true;