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

This commit is contained in:
이담 정 2022-07-07 12:41:46 +00:00
parent 012b2be24c
commit 3705407ee0
3 changed files with 20 additions and 16 deletions

View File

@ -125,12 +125,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'"
@ -170,9 +164,15 @@
LV.{{ deposit.level }} LV.{{ deposit.level }}
</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">
{{ deposit.id }} {{ deposit.id }}
</div> </div>
</ng-container>
</ng-container>
<!-- nickname --> <!-- nickname -->
<div class="hidden sm:block truncate"> <div class="hidden sm:block truncate">
@ -242,13 +242,6 @@
{{ deposit.state }} {{ deposit.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 { Deposit } from '../models/deposit'; import { Deposit } from '../models/deposit';
import { DepositPagination } from '../models/deposit-pagination'; import { DepositPagination } from '../models/deposit-pagination';
import { DepositService } from '../services/deposit.service'; import { DepositService } from '../services/deposit.service';
@ -65,6 +66,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort; @ViewChild(MatSort) private _sort!: MatSort;
deposits$!: Observable<Deposit[] | undefined>; deposits$!: Observable<Deposit[] | 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 { DepositsResolver } from './resolvers/deposit.resolver'; import { DepositsResolver } from './resolvers/deposit.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';
export const depositRoutes: Route[] = [ export const depositRoutes: Route[] = [
{ {
@ -12,4 +14,11 @@ export const depositRoutes: Route[] = [
deposits: DepositsResolver, deposits: DepositsResolver,
}, },
}, },
{
path: ':id',
component: ViewComponent,
resolve: {
users: UserResolver,
},
},
]; ];