bug fix
This commit is contained in:
parent
18a6593b31
commit
4980163e55
|
@ -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>
|
||||||
|
|
|
@ -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() : '없음';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user