총 회원수 적용

This commit is contained in:
이담 정 2022-09-17 11:48:25 +00:00
parent e2ff707637
commit 3b637282f3
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,10 @@
<!-- Actions --> <!-- Actions -->
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4"> <div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
<!-- Search --> <!-- Search -->
<span>총회원수:<span style="color: red">38</span></span>&nbsp;&nbsp; <span
>총회원수:<span style="color: red">{{ memberTotalCount }}</span
>명</span
>&nbsp;&nbsp;
<span>진행중금액:<span style="color: red">0</span></span>&nbsp;&nbsp; <span>진행중금액:<span style="color: red">0</span></span>&nbsp;&nbsp;
<span>총 보유머니:<span style="color: red">21,437,873</span></span <span>총 보유머니:<span style="color: red">21,437,873</span></span
>&nbsp;&nbsp; >&nbsp;&nbsp;

View File

@ -87,6 +87,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChildren('chkUsers') chkUsers!: QueryList<MatCheckbox>; @ViewChildren('chkUsers') chkUsers!: QueryList<MatCheckbox>;
memberTotalCount: number = 0;
listMembers$!: Observable<MemberModel[] | undefined>; listMembers$!: Observable<MemberModel[] | undefined>;
listMemberLevels$!: Observable<MemberLevel[] | undefined>; listMemberLevels$!: Observable<MemberLevel[] | undefined>;
@ -141,6 +142,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
this._activatedRoute.data.subscribe((data) => { this._activatedRoute.data.subscribe((data) => {
let listMemberResult: ListMembersResponse.Result = data['listmembers']; let listMemberResult: ListMembersResponse.Result = data['listmembers'];
this.listMembers$ = of(listMemberResult.getMembersList()); this.listMembers$ = of(listMemberResult.getMembersList());
this.memberTotalCount = listMemberResult.getTotalCount();
let listMemberLevelsResult: ListMemberLevelsResponse.Result = let listMemberLevelsResult: ListMemberLevelsResponse.Result =
data['listMemberLevels']; data['listMemberLevels'];