Commit ba788e8e by sawit

routes widget myjob, mylearn

parent c21d15b2
...@@ -7,10 +7,10 @@ export const MYJOB_ROUTES: Routes = [ ...@@ -7,10 +7,10 @@ export const MYJOB_ROUTES: Routes = [
path: '', path: '',
component: MyjobComponent, component: MyjobComponent,
children: [ children: [
{ // {
path: 'dashboard', // path: 'dashboard',
component: MyjobDashboardComponent // component: MyjobDashboardComponent
}, // },
{ {
//////////////MyJob///////////////// //////////////MyJob/////////////////
path: 'home', path: 'home',
...@@ -203,10 +203,40 @@ export const MYJOB_ROUTES: Routes = [ ...@@ -203,10 +203,40 @@ export const MYJOB_ROUTES: Routes = [
import('../my-portal/excel-report/excel-report.component').then((m) => m.ExcelReportComponent), import('../my-portal/excel-report/excel-report.component').then((m) => m.ExcelReportComponent),
}, },
{ {
path: '', path: 'dashboard-home',
redirectTo: 'dashboard', loadComponent: () =>
pathMatch: 'full' import('../dashboard-management/dashboard-management.component').then((m) => m.DashboardManagementComponent),
} },
{
path: 'widget-list',
loadComponent: () =>
import('../dashboard-management/widget-management/widget-list.component').then((m) => m.WidgetListComponent),
},
{
path: 'dataset-widget-linker',
loadComponent: () =>
import('../dashboard-management/widget-management/dataset-widget-linker.component').then((m) => m.DatasetWidgetLinkerComponent),
},
{
path: 'dashboard-viewer',
loadComponent: () =>
import('../dashboard-management/dashboard-viewer/dashboard-viewer.component').then((m) => m.DashboardViewerComponent),
},
// {
// path: 'widget-warehouse',
// loadComponent: () =>
// import('../dashboard-management/dashboard-management.component').then((m) => m.DashboardManagementComponent),
// },
// {
// path: 'widget-linker',
// loadComponent: () =>
// import('../dashboard-management/widget-management/dataset-widget-linker.component').then((m) => m.DatasetWidgetLinkerComponent),
// },
// {
// path: '',
// redirectTo: 'dashboard',
// pathMatch: 'full'
// }
] ]
} }
]; ];
...@@ -139,9 +139,24 @@ export const MYLEARN_ROUTES: Routes = [ ...@@ -139,9 +139,24 @@ export const MYLEARN_ROUTES: Routes = [
import('../my-portal/excel-report/excel-report.component').then((m) => m.ExcelReportComponent), import('../my-portal/excel-report/excel-report.component').then((m) => m.ExcelReportComponent),
}, },
{ {
path: '', path: 'dashboard-home',
redirectTo: 'dashboard', loadComponent: () =>
pathMatch: 'full' import('../dashboard-management/dashboard-management.component').then((m) => m.DashboardManagementComponent),
},
{
path: 'widget-list',
loadComponent: () =>
import('../dashboard-management/widget-management/widget-list.component').then((m) => m.WidgetListComponent),
},
{
path: 'dataset-widget-linker',
loadComponent: () =>
import('../dashboard-management/widget-management/dataset-widget-linker.component').then((m) => m.DatasetWidgetLinkerComponent),
},
{
path: 'dashboard-viewer',
loadComponent: () =>
import('../dashboard-management/dashboard-viewer/dashboard-viewer.component').then((m) => m.DashboardViewerComponent),
} }
] ]
} }
......
...@@ -99,7 +99,7 @@ export class NavService implements OnDestroy { ...@@ -99,7 +99,7 @@ export class NavService implements OnDestroy {
active: false, active: false,
children: [ children: [
{ {
path: `/portal-manage/dashboard-management/dashboard-home`, path: `/portal-manage/${appName}/dashboard-home`,
title: 'แดชบอร์ดหลัก', title: 'แดชบอร์ดหลัก',
type: 'link' type: 'link'
}, },
...@@ -110,7 +110,7 @@ export class NavService implements OnDestroy { ...@@ -110,7 +110,7 @@ export class NavService implements OnDestroy {
active: false, active: false,
children: [ children: [
{ {
path: `/portal-manage/dashboard-management/widget-list`, path: `/portal-manage/${appName}/widget-list`,
title: 'รายการวิดเจ็ต', title: 'รายการวิดเจ็ต',
type: 'link' type: 'link'
}, },
...@@ -120,7 +120,7 @@ export class NavService implements OnDestroy { ...@@ -120,7 +120,7 @@ export class NavService implements OnDestroy {
// type: 'link' // type: 'link'
// }, // },
{ {
path: `/portal-manage/dashboard-management/dataset-widget-linker`, path: `/portal-manage/${appName}/dataset-widget-linker`,
title: 'เชื่อมโยงข้อมูลกับวิดเจ็ต', title: 'เชื่อมโยงข้อมูลกับวิดเจ็ต',
type: 'link' type: 'link'
}, },
...@@ -138,22 +138,22 @@ export class NavService implements OnDestroy { ...@@ -138,22 +138,22 @@ export class NavService implements OnDestroy {
active: false, active: false,
children: [ children: [
{ {
path: `/portal-manage/dashboard-management/dashboard-viewer`, path: `/portal-manage/${appName}/dashboard-viewer`,
title: 'ดูแดชบอร์ด', title: 'ดูแดชบอร์ด',
type: 'link' type: 'link'
} }
] ]
}, },
{ // {
path: `/portal-manage/${appName}/widget-warehouse`, // path: `/portal-manage/${appName}/widget-warehouse`,
title: 'คลังวิดเจ็ต', // title: 'คลังวิดเจ็ต',
type: 'link' // type: 'link'
}, // },
{ // {
path: `/portal-manage/${appName}/widget-linker`, // path: `/portal-manage/${appName}/widget-linker`,
title: 'เชื่อมโยงวิดเจ็ตกับชุดข้อมูล', // title: 'เชื่อมโยงวิดเจ็ตกับชุดข้อมูล',
type: 'link' // type: 'link'
} // }
] ]
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment