This commit is contained in:
Taric Xin
2022-04-27 17:07:11 +08:00
parent bdb822da6e
commit c829cd3e59
3 changed files with 62 additions and 61 deletions

View File

@ -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 {}