edit
This commit is contained in:
@ -212,6 +212,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
{
|
||||
text: '审核',
|
||||
click: _record => this.ViewAdimin(_record),
|
||||
acl: { ability: ['USERCENTER-FREIGHT-ENTERPRISE-adminAudit'] },
|
||||
iif: (item: any) => item.approvalStatus === 10
|
||||
},
|
||||
{
|
||||
|
||||
@ -22,25 +22,51 @@ import { FreightComponentsListViewComponent } from './components/freight/list/vi
|
||||
import { FreightComponentsUserDetailComponent } from './components/freight/user/detail/detail.component';
|
||||
import { FreightComponentsUserComponent } from './components/freight/user/user.component';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
|
||||
{ path: 'freight/list', component: FreightComponentsListComponent },
|
||||
{ path: 'freight/list', component: FreightComponentsListComponent, data: { guard: { ability: ['USERCENTER-FREIGHT-LIST-list'] } } },
|
||||
{ path: 'freight/list/view/:id', component: FreightComponentsListViewComponent },
|
||||
{ path: 'freight/list/new', component: FreightComponentsListNewComponent },
|
||||
{ path: 'freight/list/detail/:id', component: FreightComponentsListDetailComponent },
|
||||
{ path: 'freight/enterprise/detail/:id', component: FreightComponentsListDetailComponent },
|
||||
{ path: 'freight/enterprise', component: FreightComponentsEnterpriseAuditComponent },
|
||||
{ path: 'freight/user', component: FreightComponentsUserComponent },
|
||||
{ path: 'freight/user/view/:id', component: FreightComponentsUserDetailComponent },
|
||||
{ path: 'driver', component: UserCenterComponentsDriverComponent },
|
||||
{ path: 'driver/detail/:id', component: UserCenterComponentsDriverDetailComponent },
|
||||
{ path: 'driver/captain', component: UserCenterComponentsDriverCaptainComponent },
|
||||
{ path: 'driver/captain/detail/:id', component: CaptainDetailComponent },
|
||||
{ path: 'freight/list/new', component: FreightComponentsListNewComponent, data: { guard: { ability: ['USERCENTER-FREIGHT-NEW-save'] } } },
|
||||
{
|
||||
path: 'freight/list/detail/:id',
|
||||
component: FreightComponentsListDetailComponent,
|
||||
data: { guard: { ability: ['USERCENTER-FREIGHT-LIST-DETAIL-view'] } }
|
||||
},
|
||||
{
|
||||
path: 'freight/enterprise/detail/:id',
|
||||
component: FreightComponentsListDetailComponent,
|
||||
data: { guard: { ability: ['USERCENTER-FREIGHT-ENTERPRISE-view'] } }
|
||||
},
|
||||
{
|
||||
path: 'freight/enterprise',
|
||||
component: FreightComponentsEnterpriseAuditComponent,
|
||||
data: { guard: { ability: ['USERCENTER-FREIGHT-ENTERPRISE-list', 'USERCENTER-FREIGHT-ENTERPRISE-adminList'] } }
|
||||
},
|
||||
{ path: 'freight/user', component: FreightComponentsUserComponent, data: { guard: { ability: ['USERCENTER-FREIGHT-USER-list'] } } },
|
||||
{
|
||||
path: 'freight/user/view/:id',
|
||||
component: FreightComponentsUserDetailComponent,
|
||||
data: { guard: { ability: ['USERCENTER-FREIGHT-USER-D-view'] } }
|
||||
},
|
||||
{ path: 'driver', component: UserCenterComponentsDriverComponent, data: { guard: { ability: ['USERCENTER-DRIVER-LIST-list'] } } },
|
||||
{
|
||||
path: 'driver/detail/:id',
|
||||
component: UserCenterComponentsDriverDetailComponent,
|
||||
data: { guard: { ability: ['USERCENTER-DRIVER-LIST-DETAIL-view'] } }
|
||||
},
|
||||
{
|
||||
path: 'driver/captain',
|
||||
component: UserCenterComponentsDriverCaptainComponent,
|
||||
data: { guard: { ability: ['USERCENTER-DRIVER-CAPTAIN-list'] } }
|
||||
},
|
||||
{
|
||||
path: 'driver/captain/detail/:id',
|
||||
component: CaptainDetailComponent,
|
||||
data: { guard: { ability: ['USERCENTER-DRIVER-CAPTAIN-DETAIL-view'] } }
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class UsercenterRoutingModule {}
|
||||
|
||||
Reference in New Issue
Block a user