diff --git a/src/app/modules/admin/member/partner/components/list.component.ts b/src/app/modules/admin/member/partner/components/list.component.ts
index 40e1c22..975d700 100644
--- a/src/app/modules/admin/member/partner/components/list.component.ts
+++ b/src/app/modules/admin/member/partner/components/list.component.ts
@@ -95,6 +95,21 @@ import { FuseAlertType } from '@fuse/components/alert';
.mat-tooltip {
white-space: pre-line;
}
+ .daebon-color {
+ color: aqua;
+ }
+ .bubon-color {
+ color: darkorange;
+ }
+ .chongpan-color {
+ color: red;
+ }
+ .maejang-color {
+ color: green;
+ }
+ .member-color {
+ color: blueviolet;
+ }
`,
],
encapsulation: ViewEncapsulation.None,
@@ -107,6 +122,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChildren('chkUsers') chkUsers!: QueryList
;
+ memberTotalCount: number = 0;
listMember!: MemberModel[];
listPartner$!: Observable;
listMemberLevels$!: Observable;
@@ -239,6 +255,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
let listMemberResult: ListMembersResponse.Result = data['listPartner'];
this.listPartner$ = of(listMemberResult.getMembersList());
this.listMember = listMemberResult.getMembersList();
+ this.memberTotalCount = listMemberResult.getTotalCount();
let listMemberLevelsResult: ListMemberLevelsResponse.Result =
data['listMemberLevels'];
@@ -607,6 +624,28 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
return type === 1 ? '롤링' : '';
}
+ __getChildMemberCount(member: MemberModel): string {
+ const childs = member.getChildrenCountList().join().toString();
+ const childArr = childs.split(',');
+ const tempColor = [
+ 'daebon-color',
+ 'bubon-color',
+ 'chongpan-color',
+ 'maejang-color',
+ 'member-color ',
+ ];
+ let result = '';
+ const start = tempColor.length - childArr.length;
+
+ for (let idx = 0; idx < childArr.length; idx++) {
+ result += `${
+ childArr[idx]
+ } `;
+ }
+
+ return result;
+ }
+
__getMemberState(member: MemberModel): string {
const state = member.getState();
let resultStr = '';