import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NewStatisticsComponent } from './new-statistics.component';


const routes: Routes = [
  {
    path: '',
    component: NewStatisticsComponent,
    children: [
      {
        // 维修统计
        path: 'maintenanceStatistics',
        loadChildren: () => import('./maintenance-statistics/maintenance-statistics.module').then(m => m.MaintenanceStatisticsModule),
      },
      {
        // 配送陪检统计
        path: 'distributionInspectionStatistics',
        loadChildren: () => import('./distribution-inspection-statistics/distribution-inspection-statistics.module').then(m => m.DistributionInspectionStatisticsModule),
      },
      {
        // 电话统计
        path: 'phoneStatistics',
        loadChildren: () => import('./phone-statistics/phone-statistics.module').then(m => m.PhoneStatisticsModule),
      },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class NewStatisticsRoutingModule { }
