import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';
import {PlanGroupFinalPageComponent} from './plan-group-final-page/plan-group-final-page.component';
import {PlanGroupBatchPageComponent} from './plan-group-batch-page/plan-group-batch-page.component';
import {PlanGroupPageComponent} from './plan-group-page/plan-group-page.component';
import {PlanGroupDetailComponent} from './plan-group-detail/plan-group-detail.component';
import {PlanGroupInitComponent} from './plan-group-init/plan-group-init.component';
import { PlaGroupPublishComponent } from './pla-group-publish/pla-group-publish.component';
import { PlanGroupBatchDetailComponent } from './plan-group-batch-detail/plan-group-batch-detail.component';

const routes: Routes = [{
  path: '', children: [
    {path: 'group', component: PlanGroupPageComponent},
    {path: 'final', component: PlanGroupFinalPageComponent},
    {path: 'batch', component: PlanGroupBatchPageComponent}
  ]
}];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  entryComponents: [PlanGroupInitComponent, PlanGroupDetailComponent],
  declarations: [PlanGroupFinalPageComponent, PlanGroupBatchPageComponent, PlanGroupPageComponent, PlanGroupDetailComponent, PlanGroupInitComponent, PlaGroupPublishComponent,PlanGroupBatchDetailComponent],
  exports: [
    RouterModule
  ]
})

export class ArtPlanModule {

}
