user view route modify

This commit is contained in:
Park Byung Eun 2022-07-06 06:38:44 +00:00
parent d09c29c051
commit 5ce6c4f656
6 changed files with 16 additions and 13 deletions

View File

@ -46,13 +46,6 @@ export const defaultNavigation: FuseNavigationItem[] = [
icon: 'heroicons_outline:academic-cap', icon: 'heroicons_outline:academic-cap',
link: '/member/user', link: '/member/user',
}, },
{
id: 'member.user_view',
title: 'User-view',
type: 'basic',
icon: 'heroicons_outline:academic-cap',
link: '/member/user/view',
},
], ],
}, },
{ {

View File

@ -225,7 +225,10 @@
</div> </div>
</div> </div>
<!-- id --> <!-- id -->
<div class="hidden sm:block truncate"> <div
class="hidden sm:block truncate"
(click)="viewUserDetail(user.id)"
>
{{ user.id }} {{ user.id }}
</div> </div>

View File

@ -32,6 +32,7 @@ import { FuseConfirmationService } from '@fuse/services/confirmation';
import { User } from '../models/user'; import { User } from '../models/user';
import { UserPagination } from '../models/user-pagination'; import { UserPagination } from '../models/user-pagination';
import { UserService } from '../services/user.service'; import { UserService } from '../services/user.service';
import { Router } from '@angular/router';
@Component({ @Component({
selector: 'user-list', selector: 'user-list',
@ -80,7 +81,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef, private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService, private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder, private _formBuilder: FormBuilder,
private _userService: UserService private _userService: UserService,
private router: Router
) {} ) {}
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
@ -162,6 +164,10 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Public methods // @ Public methods
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
viewUserDetail(id: string): void {
let url: string = 'member/user/' + id;
this.router.navigateByUrl(url);
}
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
// @ Private methods // @ Private methods
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------

View File

@ -3,7 +3,7 @@ import { Route } from '@angular/router';
import { ListComponent } from 'app/modules/admin/member/user/components/list.component'; import { ListComponent } from 'app/modules/admin/member/user/components/list.component';
import { ViewComponent } from 'app/modules/admin/member/user/components/view.component'; import { ViewComponent } from 'app/modules/admin/member/user/components/view.component';
import { UsersResolver } from './resolvers/user.resolver'; import { UsersResolver, UserResolver } from './resolvers/user.resolver';
export const userRoutes: Route[] = [ export const userRoutes: Route[] = [
{ {
@ -14,7 +14,10 @@ export const userRoutes: Route[] = [
}, },
}, },
{ {
path: 'view', path: ':id',
component: ViewComponent, component: ViewComponent,
resolve: {
users: UserResolver,
},
}, },
]; ];

View File

@ -3,7 +3,6 @@
"Dashboards": "Dashboards", "Dashboards": "Dashboards",
"Member": "Member", "Member": "Member",
"User": "User", "User": "User",
"User-view": "User View",
"Project": "Project", "Project": "Project",
"Partner": "Partner", "Partner": "Partner",
"Analytics": "Analytics", "Analytics": "Analytics",

View File

@ -3,7 +3,6 @@
"Dashboards": "대쉬보드", "Dashboards": "대쉬보드",
"Member": "회원", "Member": "회원",
"User": "사용자", "User": "사용자",
"User-view": "사용자 상세보기",
"Project": "프로젝트", "Project": "프로젝트",
"Partner": "파트너", "Partner": "파트너",
"Analytics": "Analytics", "Analytics": "Analytics",