import Layout from '@/layout/index.vue'

export const flightData = {
  path: '/dataManage',
  redirect: '/dataManage/flightData',
  name: 'FlightManage',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/flightData',
      component: () => import('@/views/als/flightData/index.vue'),
      meta: {
        title: '飞参数据',
        sort: 2
      }
    }
  ]
}
export const MDCData = {
  path: '/dataManage',
  redirect: '/dataManage/MDCData',
  name: 'MDCData',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/MDCData',
      component: () => import('@/views/als/MDCData/index.vue'),
      meta: {
        title: 'MDC数据',
        sort: 1
      }
    }
  ]
}
export const trainingData = {
  path: '/dataManage',
  redirect: '/dataManage/trainingData',
  name: 'TrainingData',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/trainingData',
      component: () => import('@/views/als/trainingData/index.vue'),
      meta: {
        title: '作训数据',
        sort: 3
      }
    }
  ]
}
// export const maintainRecord = {
//   path: '/dataManage',
//   redirect: '/dataManage/maintainRecord',
//   name: 'MaintainRecord',
//   component: Layout,
//   meta: {
//     title: '业务数据管理',
//     icon: 'el-icon-s-platform'
//   },
//   children: [
//     {
//       path: '/dataManage/maintainRecord',
//       component: () => import('@/views/als/maintainRecord/index.vue'),
//       meta: {
//         title: '维护记录'
//       }
//     }
//   ]
// }
// export const maintenanceRecord = {
//   path: '/dataManage',
//   redirect: '/dataManage/maintenanceRecord',
//   name: 'MaintenanceRecord',
//   component: Layout,
//   meta: {
//     title: '业务数据管理',
//     icon: 'el-icon-s-platform'
//   },
//   children: [
//     {
//       path: '/dataManage/maintenanceRecord',
//       component: () => import('@/views/als/maintenanceRecord/index.vue'),
//       meta: {
//         title: '维修记录'
//       }
//     }
//   ]
// }
export const smTask = {
  path: '/dataManage',
  redirect: '/dataManage/smTask',
  name: 'SmTask',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/smTask',
      component: () => import('@/views/als/smTask/index.vue'),
      meta: {
        title: '定检任务',
        sort: 4
      }
    },
    {
      path: '/dataManage/smTask/SMTaskDetails',
      component: () => import('@/views/als/smTask/SMTaskDetails.vue'),
      name: 'SMTaskDetails',
      meta: {
        title: '任务分配',
        hide: true
      }
    }
  ]
}
export const maintenanceask = {
  path: '/dataManage',
  redirect: '/dataManage/maintenanceask',
  name: 'MaintenanceRecord',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/maintenanceask',
      component: () => import('@/views/als/maintenanceask/index.vue'),
      meta: {
        title: '维修任务',
        sort: 5
      }
    },
    {
      path: '/dataManage/maintenanceask/viewDetails',
      component: () => import('@/views/als/maintenanceask/viewDetails.vue'),
      name: 'ViewDetails',
      meta: {
        title: '任务分配',
        hide: true
      }
    }
  ]
}

export const partReplacement = {
  path: '/dataManage',
  redirect: '/dataManage/partReplacement',
  name: 'PartReplacement',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/partReplacement',
      component: () => import('@/views/als/partReplacement/index.vue'),
      meta: {
        title: '换件记录',
        sort: 6
      }
    }
  ]
}

export const airConfiguration = {
  path: '/dataManage',
  redirect: '/dataManage/airConfiguration',
  name: 'AirConfiguration',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/airConfiguration',
      component: () => import('@/views/als/airConfiguration/index.vue'),
      meta: {
        title: '构型管理',
        sort: 7
      }
    }
  ]
}
export const faultCase = {
  path: '/dataManage',
  redirect: '/dataManage/faultCase',
  name: 'FaultCase',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/faultCase',
      component: () => import('@/views/als/faultCase/index.vue'),
      meta: {
        title: '故障案例',
        sort: 8
      }
    }
  ]
}
export const airInstall = {
  path: '/dataManage',
  redirect: '/dataManage/airInstall',
  name: 'AirInstall',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/airInstall',
      component: () => import('@/views/als/airInstall/index.vue'),
      meta: {
        title: '装机管理',
        sort: 9
      }
    }
  ]
}
export const warning = {
  path: '/dataManage',
  redirect: '/dataManage/warning',
  name: 'warning',
  component: Layout,
  meta: {
    title: '业务数据管理',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: '/dataManage/warning',
      component: () => import('@/views/als/warning/index.vue'),
      meta: {
        title: '警告列表',
        sort: 10
      }
    }
  ]
}
