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) { add(item: any) {
console.log(item); console.log(item);
this.modals.destroy(item); this.modals.destroy([item]);
} }
// 批量回复操作 // 批量回复操作
batchReply() { batchReply() {

View File

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