|
@@ -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;
|