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

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

View File

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

View File

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