출금관리에 회원상세보기 추가

This commit is contained in:
이담 정 2022-07-07 12:44:55 +00:00
parent 3705407ee0
commit 6be23a1a12
3 changed files with 20 additions and 16 deletions

View File

@ -113,12 +113,6 @@
<div class="hidden sm:block" [mat-sort-header]="'state'">
상태
</div>
<div
class="hidden sm:block"
[mat-sort-header]="'memberInfomation'"
>
회원정보
</div>
<div
class="hidden sm:block"
[mat-sort-header]="'bettingInfomation'"
@ -155,9 +149,15 @@
</div>
<!-- id -->
<div class="hidden sm:block truncate">
{{ withdraw.id }}
</div>
<ng-container *ngIf="users$ | async as users">
<ng-container
*ngFor="let user of users; trackBy: __trackByFn"
>
<div class="hidden sm:block truncate">
{{ withdraw.id }}
</div>
</ng-container>
</ng-container>
<!-- nickname -->
<div class="hidden sm:block truncate">
@ -217,13 +217,6 @@
{{ withdraw.state }}
</div>
<!-- memberInformation -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
회원정보
</button>
</div>
<!-- bettingInformation -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">

View File

@ -29,6 +29,7 @@ import {
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
import { User } from 'app/modules/admin/member/user/models/user';
import { Withdraw } from '../models/withdraw';
import { WithdrawPagination } from '../models/withdraw-pagination';
import { WithdrawService } from '../services/withdraw.service';
@ -65,6 +66,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort;
withdraws$!: Observable<Withdraw[] | undefined>;
users$!: Observable<User[] | undefined>;
isLoading = false;
searchInputControl = new FormControl();

View File

@ -1,8 +1,10 @@
import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
import { ViewComponent } from '../../member/user/components/view.component';
import { WithdrawsResolver } from './resolvers/withdraw.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';
export const withdrawRoutes: Route[] = [
{
@ -12,4 +14,11 @@ export const withdrawRoutes: Route[] = [
withdraws: WithdrawsResolver,
},
},
{
path: ':id',
component: ViewComponent,
resolve: {
users: UserResolver,
},
},
];