|
|
|
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 './criminal-records/criminal-records.component';
|
|
|
|
import {AuthGuard} from '../auth.guard'
|
|
|
|
import { TodayWarningAdminComponent } from './today-warning-admin/today-warning-admin.component';
|
|
|
|
import { CriminalRecordsAdminComponent } from './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';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: 'plan', component: PlanComponent , data: { permission: 'xxxx' },canActivate: [AuthGuard]},
|
|
|
|
{ path: 'warning/petrolStation', component: TodayWarningComponent },
|
|
|
|
{ path: 'warning/admin', component: TodayWarningAdminComponent },
|
|
|
|
{ path: 'records/petrolStation', component: CriminalRecordsComponent },
|
|
|
|
{ path: 'records/admin', component: CriminalRecordsAdminComponent },
|
|
|
|
{ path: 'equipmentInfo', component: EquipmentInfoComponent },
|
|
|
|
{ path: 'oliStationInfo', component: OilStationInfoComponent }
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class PagesRoutingModule { }
|