From 4980163e55162982a731c64a2d1d8123601a9daa Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Wed, 24 Aug 2022 02:52:59 +0000 Subject: [PATCH] bug fix --- .../components/list.component.html | 10 +++++----- .../components/list.component.ts | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.html b/src/app/modules/admin/member/partner-recommendation/components/list.component.html index 7c975ca..7dce47b 100644 --- a/src/app/modules/admin/member/partner-recommendation/components/list.component.html +++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.html @@ -52,7 +52,7 @@ 상위 - {{ __getParentUserName("") }} + {{ __getParentUserName(info) }} @@ -95,9 +95,9 @@ 계좌정보 - {{ info.getBankAccount() }} - {{ info.getBankAccount() }} - {{ info.getBankAccount() }} + {{ info.getBankAccount().getName() }}
+ {{ info.getBankAccount().getAccountNumber() }} +
@@ -209,7 +209,7 @@ 상위 - {{ __getParentUserName("") }} + {{ __getParentUserName(info) }} diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts index 05f1507..d8a948c 100644 --- a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts +++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts @@ -377,11 +377,13 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { }); } - __getParentUserName(parentId: string): string { + __getParentUserName(info: MemberModel): string { /* console.log(member.getReferrerMember()?.getUsername()); const name = member.getReferrerMember()?.getUsername(); */ - const find = this.listMembers.find((m) => m.getId() === parentId); + const find = this.listMembers.find( + (m) => m.getId() === info.getParentMember()?.getId() + ); return !!find ? find.getUsername() : '없음'; }