From 6a5122a378ea7d1fc006a92f0a380b7991ff6271 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Sat, 17 Sep 2022 12:54:07 +0000 Subject: [PATCH] =?UTF-8?q?=ED=95=98=EB=B6=80=ED=9A=8C=EC=9B=90=EC=88=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/member/user/components/view.component.html | 2 +- .../admin/member/user/components/view.component.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/modules/admin/member/user/components/view.component.html b/src/app/modules/admin/member/user/components/view.component.html index a67df31..9170104 100644 --- a/src/app/modules/admin/member/user/components/view.component.html +++ b/src/app/modules/admin/member/user/components/view.component.html @@ -47,7 +47,7 @@
하부회원수 - {{ currentMember?.getChildMemberCount() }}명 + {{ __getDirectChildCount() }}명
총입금 diff --git a/src/app/modules/admin/member/user/components/view.component.ts b/src/app/modules/admin/member/user/components/view.component.ts index c407c17..2408819 100644 --- a/src/app/modules/admin/member/user/components/view.component.ts +++ b/src/app/modules/admin/member/user/components/view.component.ts @@ -661,6 +661,15 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { return item.id || index; } + __getDirectChildCount(): number { + if ( + !!this.currentMember?.getChildrenCountList() && + this.currentMember?.getChildrenCountList().length > 0 + ) { + return this.currentMember?.getChildrenCountList()[0]; + } + return 0; + } __changePassword(): void { const password = this.memberDefaultForm.get('signinPw')?.value as string; const passwordConfirm = this.memberDefaultForm.get('signinPwConfirm')