하부회원수 수정

This commit is contained in:
Park Byung Eun 2022-09-17 12:54:07 +00:00
parent 3b637282f3
commit 6a5122a378
2 changed files with 10 additions and 1 deletions

View File

@ -47,7 +47,7 @@
<div class="flex items-center text-secondary my-1">
<span>하부회원수</span>
<span class="mx-2">&bull;</span>
<span>{{ currentMember?.getChildMemberCount() }}명</span>
<span>{{ __getDirectChildCount() }}명</span>
</div>
<div class="flex items-center text-secondary my-1">
<span>총입금</span>

View File

@ -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')