This commit is contained in:
wangshiming
2022-04-22 15:02:10 +08:00
parent cebadedc93
commit f0e975e5ec
2 changed files with 8 additions and 7 deletions

View File

@ -128,7 +128,7 @@ export class ParterRebateManageMentAddPartnerListComponent implements OnInit {
// 回复操作
add(item: any) {
console.log(item);
this.modals.destroy(item);
this.modals.destroy([item]);
}
// 批量回复操作
batchReply() {

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2022-03-21 09:26:45
* @LastEditors : Shiming
* @LastEditTime : 2022-04-22 14:44:12
* @LastEditTime : 2022-04-22 15:01:43
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -32,7 +32,7 @@ export class ParterRebateManageMentAddComponent implements OnInit {
remarke: string = '';
accountingRate: Number = 0;
priority: string = '';
partnerPeopleList: any;
partnerPeopleList: any = [];
configType = '1';
precision = 2;
partnerId :Array<string> =[];
@ -110,15 +110,16 @@ export class ParterRebateManageMentAddComponent implements OnInit {
modalRef.afterClose.subscribe((res: any) => {
this.partnerId = [];
if (res) {
console.log(Array.isArray(res));
console.log(res);
if(Array.isArray(res)) {
this.partnerPeopleList = res;
console.log(res);
console.log(this.partnerPeopleList);
this.partnerPeopleList = this.partnerPeopleList.concat(res);
res.forEach((ele: any) => {
this.partnerId.push(ele?.id);
})
} else {
this.partnerPeopleList = [res];
console.log(res);
this.partnerPeopleList = this.partnerPeopleList.concat(res);
this.partnerId.push(res?.id);
}
}