You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.8 KiB
52 lines
2.8 KiB
import { Routes, RouterModule } from '@angular/router'; |
|
import { NgModule } from '@angular/core'; |
|
import { PlanComponent } from './plan/plan.component'; |
|
import { TodayWarningComponent } from './today-warning/today-warning.component'; |
|
import { CriminalRecordsComponent } from './records/criminal-records/criminal-records.component'; |
|
import { AuthGuard } from '../auth.guard' |
|
import { TodayWarningAdminComponent } from './today-warning-admin/today-warning-admin.component'; |
|
import { CriminalRecordsAdminComponent } from './records/criminal-records-admin/criminal-records-admin.component'; |
|
import { OilStationInfoComponent } from './oil-station-info/oil-station-info.component'; |
|
import { EquipmentInfoComponent } from './equipment-info/equipment-info.component'; |
|
import { PlanAdminComponent } from './plan-admin/plan-admin.component'; |
|
import { HomePageComponent } from './home-page/home-page.component'; |
|
import { OilUnloadingProcessListComponent } from './records/oil-unloading-process-list/oil-unloading-process-list.component'; |
|
import { init3DGuard } from './init3D.guard'; |
|
|
|
import { NavBarComponent } from './license/nav-bar/nav-bar.component'; |
|
import { AuditNavComponent } from './audit/audit-nav/audit-nav.component'; |
|
import { WarningStatisticsListComponent } from './records/warning-statistics-list/warning-statistics-list.component'; |
|
import { RecordsNavComponent } from './records/records-nav/records-nav.component'; |
|
|
|
const routes: Routes = [ |
|
{ path: 'homepage', component: HomePageComponent }, |
|
{ path: 'plan', component: PlanAdminComponent }, |
|
{ path: 'plan/petrolStation', component: PlanComponent, canActivate: [init3DGuard], }, |
|
{ path: 'todaywarning', component: TodayWarningAdminComponent }, |
|
{ path: 'todaywarning/petrolStation', component: TodayWarningComponent }, |
|
{ |
|
path: 'records_nav', component: RecordsNavComponent, children: [ |
|
{ path: 'all', component: CriminalRecordsAdminComponent }, |
|
{ path: 'oliunloadinglist', component: OilUnloadingProcessListComponent }, |
|
{ path: 'warningstatisticslist', component: WarningStatisticsListComponent }, |
|
] |
|
}, |
|
{ |
|
path: 'records_nav/petrolStation', component: RecordsNavComponent, children: [ |
|
{ path: 'all', component: CriminalRecordsComponent }, |
|
{ path: 'oliunloadinglist', component: OilUnloadingProcessListComponent }, |
|
{ path: 'warningstatisticslist', component: WarningStatisticsListComponent } |
|
] |
|
}, |
|
{ path: 'equipmentInfo', component: EquipmentInfoComponent }, |
|
{ path: 'oliStationInfo', component: OilStationInfoComponent }, |
|
{ path: 'license/petrolStation', component: NavBarComponent }, |
|
{ path: 'audit', component: AuditNavComponent } |
|
|
|
]; |
|
|
|
@NgModule({ |
|
imports: [RouterModule.forChild(routes)], |
|
exports: [RouterModule] |
|
}) |
|
export class PagesRoutingModule { }
|
|
|