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


const routes: Routes = [
  {
    path: '',
    component: PhoneStatisticsComponent,
    children: [
      {
        // 日期电话统计
        path: 'datePhoneStatistics',
        loadChildren: () => import('./date-phone-statistics/date-phone-statistics.module').then(m => m.DatePhoneStatisticsModule),
        data: {
          reuse: true,
          title: '电-日期电话统计'
        }
      },
      {
        // 科室电话统计
        path: 'departmentPhoneStatistics',
        loadChildren: () => import('./department-phone-statistics/department-phone-statistics.module').then(m => m.DepartmentPhoneStatisticsModule),
        data: {
          reuse: true,
          title: '电-科室电话统计'
        }
      },
    ]
  }
];

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