Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BookingMyHrManagement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chanachai
BookingMyHrManagement
Commits
f47c946b
Commit
f47c946b
authored
Mar 11, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin routing menu
parent
cb2863f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
6 deletions
+35
-6
admin.routing.ts
Synto-Angular/src/app/admin/admin.routing.ts
+15
-0
navservice.ts
Synto-Angular/src/app/shared/services/navservice.ts
+20
-6
No files found.
Synto-Angular/src/app/admin/admin.routing.ts
View file @
f47c946b
...
...
@@ -2,6 +2,12 @@ import { Routes, RouterModule } from '@angular/router';
import
{
HomeAdminComponent
}
from
'./home-admin/home-admin.component'
;
import
{
UserManagementComponent
}
from
'./user-management/user-management.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
HistoryProductComponent
}
from
'./history-product/history-product.component'
;
import
{
ProductManagementComponent
}
from
'./product-management/product-management.component'
;
import
{
ProjectManagementComponent
}
from
'./project-management/project-management.component'
;
import
{
ProjectEmployeeManagementComponent
}
from
'./project-management/project-employee-management/project-employee-management.component'
;
import
{
ProjectProductManagementComponent
}
from
'./project-management/project-product-management/project-product-management.component'
;
import
{
TransectionProductManagementComponent
}
from
'./transection-product-management/transection-product-management.component'
;
const
routes
:
Routes
=
[
{
...
...
@@ -9,6 +15,15 @@ const routes: Routes = [
children
:
[
{
path
:
"home"
,
component
:
HomeAdminComponent
},
{
path
:
"user-management"
,
component
:
UserManagementComponent
},
{
path
:
"product-management"
,
component
:
ProductManagementComponent
},
{
path
:
"project-management"
,
component
:
ProjectManagementComponent
,
children
:
[
{
path
:
"employee"
,
component
:
ProjectEmployeeManagementComponent
},
{
path
:
"product"
,
component
:
ProjectProductManagementComponent
}
]
},
{
path
:
"approve-borrow"
,
component
:
TransectionProductManagementComponent
},
{
path
:
"history-product"
,
component
:
HistoryProductComponent
},
]
}
...
...
Synto-Angular/src/app/shared/services/navservice.ts
View file @
f47c946b
...
...
@@ -657,7 +657,7 @@ export class NavService implements OnDestroy {
// Array
items
=
new
BehaviorSubject
<
Menu
[]
>
(
this
.
MENUITEMS
);
itemsAdmin
=
new
BehaviorSubject
<
Menu
[]
>
([{
headTitle
:
'Admin'
},
{
path
:
'/
dashboard/stocks
'
,
title
:
'หน้าแรก'
,
type
:
'link'
},
{
path
:
'/
admin/home
'
,
title
:
'หน้าแรก'
,
type
:
'link'
},
{
title
:
'การจัดการ'
,
type
:
'sub'
,
...
...
@@ -665,14 +665,28 @@ export class NavService implements OnDestroy {
Menusub
:
true
,
active
:
false
,
children
:
[
{
path
:
'/
mail/cha
t'
,
title
:
'การจัดการสมาชิก'
,
type
:
'link'
},
{
path
:
'/
mail/mail
'
,
title
:
'การจัดการอุปกรณ์'
,
type
:
'link'
},
{
path
:
'/
admin/user-managemen
t'
,
title
:
'การจัดการสมาชิก'
,
type
:
'link'
},
{
path
:
'/
admin/product-management
'
,
title
:
'การจัดการอุปกรณ์'
,
type
:
'link'
},
{
path
:
'/
mail/mail-settings
'
,
title
:
'การจัดการ
อุปกรณ์
'
,
path
:
'/
admin/project-management
'
,
title
:
'การจัดการ
โครงการ
'
,
type
:
'link'
,
},
],
},]);
},
{
title
:
'การเบิกคืนอุปกรณ์'
,
type
:
'sub'
,
selected
:
false
,
Menusub
:
true
,
active
:
false
,
children
:
[
{
path
:
'/admin/approve-borrow'
,
title
:
'อนุมัติการเบิก-คืน'
,
type
:
'link'
},
{
path
:
'/admin/history-product'
,
title
:
'ประวัติการทำรายการ'
,
type
:
'link'
,
},
],
}]);
itemsEmp
=
new
BehaviorSubject
<
Menu
[]
>
(
this
.
MENUITEMS
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment