// 医师认证路由

import Layout from '@/layout'

// 操作师
const operate = [
  {
    path: 'operate/list',
    component: () => import('@/views/normal/personnel/operate'),
    name: 'OperateDoctorList',
    meta: { title: '操作师', noCache: true }
  },
  {
    hidden: true,
    path: 'operate/add',
    component: () => import('@/views/normal/personnel/operate/edit'),
    name: 'OperateDoctorAdd',
    meta: { title: '添加操作师', noCache: true }
  },
  {
    hidden: true,
    path: 'operate/edit',
    component: () => import('@/views/normal/personnel/operate/edit'),
    name: 'OperateDoctorEdit',
    meta: { title: '修改操作师资料', noCache: true }
  }
]

// 培训师
const training = [
  {
    path: 'training/list',
    component: () => import('@/views/normal/personnel/training'),
    name: 'TrainingDoctorList',
    meta: { title: '培训师', noCache: true }
  },
  {
    hidden: true,
    path: 'training/add',
    component: () => import('@/views/normal/personnel/training/edit'),
    name: 'TrainingDoctorAdd',
    meta: { title: '添加培训师', noCache: true }
  },
  {
    hidden: true,
    path: 'training/edit',
    component: () => import('@/views/normal/personnel/training/edit'),
    name: 'TrainingDoctorEdit',
    meta: { title: '修改培训师资料', noCache: true }
  }
]

const personnelRoutes = [
  {
    path: '/personnel',
    component: Layout,
    alwaysShow: true,
    name: 'Personnel',
    meta: { title: '人员认证', noCache: true },
    children: [...operate, ...training]
  }
]

export default personnelRoutes
