import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home.component';
import { AppraiseDetailComponent } from '../../share/appraise-detail/appraise-detail.component';
import { OrderDetailComponent } from '../../share/order-detail/order-detail.component';


const routes: Routes = [
  {
    path: '',
    component: HomeComponent,
    children: [
      {
        // 调解->差评查看
        path: 'appraiseDetail/:id',
        component: AppraiseDetailComponent,
      },
      {
        // 近一周异常工单->查看工单详情
        path: 'orderDetail/:id',
        component: OrderDetailComponent,
      }
    ]
  }
];

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