Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init

This commit is contained in:
이담 정 2022-07-06 06:45:32 +00:00
commit e47f26146c
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",