Commit 573ac80d by sawit

routes myjob excel

parent 40f1ed97
......@@ -146,11 +146,11 @@ export class ApprovedListComponent implements OnInit {
}
openView(id: string) {
if (id == '1') {
this.router.navigate(['/' + this.path.data + '/view-list-excel/1']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-excel/1']);
} else if (id == '2') {
this.router.navigate(['/' + this.path.data + '/view-list-doc/1']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-doc/1']);
} else if (id == '3') {
this.router.navigate(['/' + this.path.data + '/view-list-course/1']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-course/1']);
}
}
}
......@@ -129,14 +129,14 @@ export class CategoryListApproveComponent implements OnInit {
this.getListCount();
}
openView(id: string) {
if (id == '1') {
this.router.navigate(['/' + this.path.data + '/approve-excel']);
this.router.navigate(['/portal-manage/' + this.path.data + '/approve-excel']);
} else if (id == '2') {
this.router.navigate(['/' + this.path.data + '/approve-doc']);
this.router.navigate(['/portal-manage/' + this.path.data + '/approve-doc']);
} else if (id == '3') {
this.router.navigate(['/' + this.path.data + '/approve-course']);
this.router.navigate(['/portal-manage/' + this.path.data + '/approve-course']);
}
}
async getListCount() {
......
......@@ -164,11 +164,11 @@ export class CategorylistComponent implements OnInit {
}
openView(id: string) {
if (id == '1') {
this.router.navigate(['/' + this.path.data + '/view-list-excel']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-excel']);
} else if (id == '2') {
this.router.navigate(['/' + this.path.data + '/view-list-doc']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-doc']);
} else if (id == '3') {
this.router.navigate(['/' + this.path.data + '/view-list-course']);
this.router.navigate(['/portal-manage/' + this.path.data + '/view-list-course']);
}
// else if (id == '4') {
// this.router.navigate(['/' + this.path.data + '/view-list-widgets']);
......
......@@ -169,11 +169,11 @@ export class CreateCategoryComponent implements OnInit {
}
openView(id: string) {
if (id == '1') {
this.router.navigate(['/' + this.path.data + '/list-excel']);
this.router.navigate(['/portal-manage/' + this.path.data + '/list-excel']);
} else if (id == '2') {
this.router.navigate(['/' + this.path.data + '/list-doc']);
this.router.navigate(['/portal-manage/' + this.path.data + '/list-doc']);
} else if (id == '3') {
this.router.navigate(['/' + this.path.data + '/list-course']);
this.router.navigate(['/portal-manage/' + this.path.data + '/list-course']);
}
// else if (id == '4') {
// this.router.navigate(['/' + this.path.data + '/list-widgets']);
......
......@@ -103,6 +103,106 @@ export const MYJOB_ROUTES: Routes = [
import('./company-department/major/major.component').then((m) => m.MajorComponent),
},
{
path: 'category-list',
loadComponent: () =>
import('../my-portal/category-list/category-list.component').then((m) => m.CategorylistComponent),
},
{
path: 'view-list-excel',
loadComponent: () =>
import('../my-portal/category-list/view-list-excel/view-list-excel.component').then((m) => m.ViewListExcelComponent),
},
{
path: 'view-list-doc',
loadComponent: () =>
import('../my-portal/category-list/view-list-doc/view-list-doc.component').then((m) => m.ViewListDocComponent),
},
{
path: 'view-list-course',
loadComponent: () =>
import('../my-portal/category-list/view-list-course/view-list-course.component').then((m) => m.ViewListCourseComponent),
},
{
path: 'create-category',
loadComponent: () =>
import('../my-portal/create-category/create-category.component').then((m) => m.CreateCategoryComponent),
},
{
path: 'list-excel',
loadComponent: () =>
import('../my-portal/create-category/list-excel/list-excel.component').then((m) => m.ListExcelComponent),
},
{
path: 'list-doc',
loadComponent: () =>
import('../my-portal/create-category/list-doc/list-doc.component').then((m) => m.ListDocComponent),
},
{
path: 'list-course',
loadComponent: () =>
import('../my-portal/create-category/list-course/list-course.component').then((m) => m.ListCourseComponent),
},
{
path: 'category-list-approve',
loadComponent: () =>
import('../my-portal/category-list-approve/category-list-approve.component').then((m) => m.CategoryListApproveComponent),
},
{
path: 'approve-excel',
loadComponent: () =>
import('../my-portal/category-list-approve/approve-excel/approve-excel.component').then((m) => m.ApproveExcelComponent),
},
{
path: 'approve-doc',
loadComponent: () =>
import('../my-portal/category-list-approve/approve-doc/approve-doc.component').then((m) => m.ApproveDocComponent),
},
{
path: 'approve-course',
loadComponent: () =>
import('../my-portal/category-list-approve/approve-course/approve-course.component').then((m) => m.ApproveCourseComponent),
},
{
path: 'approved-list',
loadComponent: () =>
import('../my-portal/approved-list/approved-list.component').then((m) => m.ApprovedListComponent),
},
{
path: 'view-list-excel/:type',
loadComponent: () =>
import('../my-portal/approved-list/view-list-excel/view-list-excel.component').then((m) => m.ViewListExcelComponent),
},
{
path: 'view-list-doc/:type',
loadComponent: () =>
import('../my-portal/approved-list/view-list-doc/view-list-doc.component').then((m) => m.ViewListDocComponent),
},
{
path: 'view-list-course/:type',
loadComponent: () =>
import('../my-portal/approved-list/view-list-course/view-list-course.component').then((m) => m.ViewListCourseComponent),
},
{
path: 'excel-list',
loadComponent: () =>
import('../my-portal/excel-list/excel-list.component').then((m) => m.ExcelListComponent),
},
{
path: 'excel-report-toggle',
loadComponent: () =>
import('../my-portal/excel-report-toggle/excel-report-toggle.component').then((m) => m.ExcelReportToggleComponent),
},
{
path: 'datasource-table',
loadComponent: () =>
import('../my-portal/datasource-table/datasource-table.component').then((m) => m.DatasourceTableComponent),
},
{
path: 'excel-report',
loadComponent: () =>
import('../my-portal/excel-report/excel-report.component').then((m) => m.ExcelReportComponent),
},
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full'
......
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