50 lines
1.4 KiB
TypeScript
Executable File
50 lines
1.4 KiB
TypeScript
Executable File
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { QualityCheckComponent } from './quality-check.component';
|
|
import { QcListComponent } from './qc-list/qc-list.component';
|
|
import { QcViewComponent } from './qc-list/qc-view/qc-view.component';
|
|
import { QcStartComponent } from './qc-list/qc-start/qc-start.component';
|
|
import { QcPdReportComponent } from './qc-list/qc-pd-report/qc-pd-report.component';
|
|
import { QcNewComponent } from './qc-list/qc-pd-report/qc-new/qc-new.component';
|
|
|
|
const routes: Routes =[
|
|
{
|
|
path: '',
|
|
component: QualityCheckComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
pathMatch: 'full',
|
|
redirectTo: 'qclist'
|
|
},{
|
|
path: 'qclist',
|
|
component: QcListComponent,
|
|
children: [
|
|
{
|
|
path: 'viewpd/:pdid/:rdmstr',
|
|
component: QcViewComponent,
|
|
},
|
|
{
|
|
path: 'startpd/:pdid/:rdmstr',
|
|
component: QcStartComponent,
|
|
},
|
|
{
|
|
path: 'pd_report/:pdid/:string',
|
|
component: QcPdReportComponent,
|
|
},
|
|
// {
|
|
// path:'qc_new/:pdid/:string',
|
|
// component:QcNewComponent
|
|
// },
|
|
]
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class QualityCheckRoutingModule { }
|