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

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