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