casinomoney페이지에 회원상세보기추가
This commit is contained in:
parent
9d042a73bf
commit
bf1c18fea3
|
@ -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 '../user/components/view.component';
|
||||||
|
|
||||||
import { CasinomoneysResolver } from './resolvers/casinomoney.resolver';
|
import { CasinomoneysResolver } from './resolvers/casinomoney.resolver';
|
||||||
|
import { UserResolver } from '../user/resolvers/user.resolver';
|
||||||
|
|
||||||
export const casinomoneyRoutes: Route[] = [
|
export const casinomoneyRoutes: Route[] = [
|
||||||
{
|
{
|
||||||
|
@ -12,4 +14,11 @@ export const casinomoneyRoutes: Route[] = [
|
||||||
casinomoneyrs: CasinomoneysResolver,
|
casinomoneyrs: CasinomoneysResolver,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: ':id',
|
||||||
|
component: ViewComponent,
|
||||||
|
resolve: {
|
||||||
|
users: UserResolver,
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -239,10 +239,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- id -->
|
<!-- id -->
|
||||||
<div class="hidden sm:block truncate">
|
<ng-container *ngIf="users$ | async as users">
|
||||||
{{ casinomoney.id }}
|
<ng-container
|
||||||
</div>
|
*ngFor="let user of users; trackBy: __trackByFn"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="hidden sm:block truncate"
|
||||||
|
(click)="viewUserDetail(user.id)"
|
||||||
|
>
|
||||||
|
{{ casinomoney.id }}
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</ng-container>
|
||||||
<!-- nickname -->
|
<!-- nickname -->
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
{{ casinomoney.nickname }}
|
{{ casinomoney.nickname }}
|
||||||
|
|
|
@ -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 '../../user/models/user';
|
||||||
import { Casinomoney } from '../models/casinomoney';
|
import { Casinomoney } from '../models/casinomoney';
|
||||||
import { CasinomoneyPagination } from '../models/casinomoney-pagination';
|
import { CasinomoneyPagination } from '../models/casinomoney-pagination';
|
||||||
import { CasinomoneyService } from '../services/casinomoney.service';
|
import { CasinomoneyService } from '../services/casinomoney.service';
|
||||||
|
@ -66,6 +67,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
@ViewChild(MatSort) private _sort!: MatSort;
|
@ViewChild(MatSort) private _sort!: MatSort;
|
||||||
|
|
||||||
casinomoneys$!: Observable<Casinomoney[] | undefined>;
|
casinomoneys$!: Observable<Casinomoney[] | undefined>;
|
||||||
|
users$!: Observable<User[] | undefined>;
|
||||||
|
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
searchInputControl = new FormControl();
|
searchInputControl = new FormControl();
|
||||||
|
@ -164,8 +166,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
// @ Public methods
|
// @ Public methods
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
viewCasinomoneyDetail(id: string): void {
|
viewUserDetail(id: string): void {
|
||||||
let url: string = 'member/casinomoney/' + id;
|
let url: string = 'member/user/' + id;
|
||||||
this.router.navigateByUrl(url);
|
this.router.navigateByUrl(url);
|
||||||
}
|
}
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user