Files
bbq/src/app/routes/waybill-management/waybill-management-routing.module.ts
Taric Xin c829cd3e59 edit
2022-04-27 17:07:11 +08:00

45 lines
1.9 KiB
TypeScript

/*
* @Author: your name
* @Date: 2021-12-03 15:31:52
* @LastEditTime: 2021-12-07 14:56:57
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\order-management\order-management-routing.module.ts
*/
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { WaybillManagementAbnormalAppearComponent } from './components/abnormal-appear/abnormal-appear.component';
import { WaybillManagementBulkeDetailComponent } from './components/bulk-detail/bulk-detail.component';
import { WaybillManagementBulkComponent } from './components/bulk/bulk.component';
import { WaybillManagementVehicleDetailComponent } from './components/vehicle-detail/vehicle-detail.component';
import { WaybillManagementVehicleComponent } from './components/vehicle/vehicle.component';
const routes: Routes = [
{
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 {}