This commit is contained in:
Park Byung Eun 2022-08-24 02:52:59 +00:00
parent 18a6593b31
commit 4980163e55
2 changed files with 9 additions and 7 deletions

View File

@ -52,7 +52,7 @@
<th mat-header-cell *matHeaderCellDef>상위</th> <th mat-header-cell *matHeaderCellDef>상위</th>
<td mat-cell *matCellDef="let info"> <td mat-cell *matCellDef="let info">
<span class="font-medium text-right"> <span class="font-medium text-right">
{{ __getParentUserName("") }} {{ __getParentUserName(info) }}
</span> </span>
</td> </td>
</ng-container> </ng-container>
@ -95,9 +95,9 @@
<ng-container matColumnDef="bankInfo"> <ng-container matColumnDef="bankInfo">
<th mat-header-cell *matHeaderCellDef>계좌정보</th> <th mat-header-cell *matHeaderCellDef>계좌정보</th>
<td mat-cell *matCellDef="let info"> <td mat-cell *matCellDef="let info">
<span>{{ info.getBankAccount() }}</span> <span>{{ info.getBankAccount().getName() }}</span> <br />
<span>{{ info.getBankAccount() }}</span> <span>{{ info.getBankAccount().getAccountNumber() }}</span>
<span>{{ info.getBankAccount() }}</span> <span></span>
</td> </td>
</ng-container> </ng-container>
@ -209,7 +209,7 @@
<th mat-header-cell *matHeaderCellDef>상위</th> <th mat-header-cell *matHeaderCellDef>상위</th>
<td mat-cell *matCellDef="let info"> <td mat-cell *matCellDef="let info">
<span class="font-medium text-right"> <span class="font-medium text-right">
{{ __getParentUserName("") }} {{ __getParentUserName(info) }}
</span> </span>
</td> </td>
</ng-container> </ng-container>

View File

@ -377,11 +377,13 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
}); });
} }
__getParentUserName(parentId: string): string { __getParentUserName(info: MemberModel): string {
/* console.log(member.getReferrerMember()?.getUsername()); /* console.log(member.getReferrerMember()?.getUsername());
const name = 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() : '없음'; return !!find ? find.getUsername() : '없음';
} }