edit
This commit is contained in:
		| @ -15,14 +15,30 @@ import { WaybillManagementVehicleDetailComponent } from './components/vehicle-de | ||||
| import { WaybillManagementVehicleComponent } from './components/vehicle/vehicle.component'; | ||||
|  | ||||
| const routes: Routes = [ | ||||
|   { path: 'vehicle', component: WaybillManagementVehicleComponent }, | ||||
|   { path: 'vehicle/vehicle-detail/:id', component: WaybillManagementVehicleDetailComponent }, | ||||
|   { path: 'bulk', component: WaybillManagementBulkComponent }, | ||||
|   { path: 'bulk/bulk-detail/:id', component: WaybillManagementBulkeDetailComponent }, | ||||
|   { path: 'abnormal-appear', component: WaybillManagementAbnormalAppearComponent }, | ||||
| ] | ||||
|   { | ||||
|     path: 'vehicle', | ||||
|     component: WaybillManagementVehicleComponent, | ||||
|     data: { guard: { ability: ['WAYBILL-VEHICLE-search'] } } | ||||
|   }, | ||||
|   { | ||||
|     path: 'vehicle/vehicle-detail/:id', | ||||
|     component: WaybillManagementVehicleDetailComponent, | ||||
|     data: { guard: { ability: ['WAYBILL-VEHICLE-DETAIL-wholeUnloadCarInfo'] } } | ||||
|   }, | ||||
|   { path: 'bulk', component: WaybillManagementBulkComponent, data: { guard: { ability: ['WAYBILL-BULK-search'] } } }, | ||||
|   { | ||||
|     path: 'bulk/bulk-detail/:id', | ||||
|     component: WaybillManagementBulkeDetailComponent, | ||||
|     data: { guard: { ability: ['WAYBILL-BULK-DETAIL-insertBulkStartCarInfo'] } } | ||||
|   }, | ||||
|   { | ||||
|     path: 'abnormal-appear', | ||||
|     component: WaybillManagementAbnormalAppearComponent, | ||||
|     data: { guard: { ability: ['WAYBILL-ABNORMAL-search'] } } | ||||
|   } | ||||
| ]; | ||||
| @NgModule({ | ||||
|   imports: [RouterModule.forChild(routes)], | ||||
|   exports: [RouterModule] | ||||
| }) | ||||
| export class WaybillManagementRoutingModule { } | ||||
| export class WaybillManagementRoutingModule {} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user