
export const asyncRoutes = [
  {
    path: '/VehicleManagement', name: 'VehicleManagement', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '公寓管理', icon: 'bus-fill' },
    children: [
      {
        path: '/VehicleList', name: 'VehicleList', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/VehicleList/index.vue', meta: { title: '车辆管理' },
        // 按钮权限
        children: []
      },
      {
        path: '/SiteAdministration', name: 'SiteAdministration', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/SiteAdministration/index.vue', meta: { title: '站点管理' },
        // 按钮权限
        children: []
      },

      {
        path: '/RouteManagement', name: 'RouteManagement', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/RouteManagement/index.vue', meta: { title: '线路管理' },
        // 按钮权限
        children: []
      },
      
      {
        path: '/VehicleScheduling', name: 'VehicleScheduling', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/VehicleScheduling/index.vue', meta: { title: '车辆排班' },
        // 按钮权限
        children: []
      },

      {
        path: '/vehiclefaultList', name: 'vehiclefaultList', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/vehiclefaultList/index.vue', meta: { title: '故障报修' },
        // 按钮权限
        children: []
      },

      {
        path: '/DeviceManagement', name: 'DeviceManagement', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/DeviceManagement/index.vue', meta: { title: '设备管理' },
        // 按钮权限
        children: []
      },

      {
        path: '/DepartureInspectionRecords', name: 'DepartureInspectionRecords', pCode: 'VehicleManagement', isLink: false, menuType: 2,
        component: '/@/views/VehicleManagement/DepartureInspectionRecords/index.vue', meta: { title: '发车检查记录' },
        // 按钮权限
        children: []
      }
    ]
  },

  {
    path: '/PersonnelManagement', name: 'PersonnelManagement', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '人员管理', icon: 'user-settings-line' },
    children: [
      {
        path: '/DriverProfile', name: 'DriverProfile', pCode: 'PersonnelManagement', isLink: false, menuType: 2,
        component: '/@/views/PersonnelManagement/DriverProfile/index.vue', meta: { title: '司机档案' },
        // 按钮权限
        children: []
      },
      {
        path: '/PassengerProfile', name: 'PassengerProfile', pCode: 'PersonnelManagement', isLink: false, menuType: 2,
        component: '/@/views/PersonnelManagement/PassengerProfile/index.vue', meta: { title: '乘客档案' },
        // 按钮权限
        children: []
      },
      {
        path: '/ListOfAdministrators', name: 'ListOfAdministrators', pCode: 'PersonnelManagement', isLink: false, menuType: 2,
        component: '/@/views/PersonnelManagement/ListOfAdministrators/index.vue', meta: { title: '管理员列表' },
        // 按钮权限
        children: []
      }
    ]
  },

  {
    path: '/OrderManagement', name: 'OrderManagement', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '订单管理', icon: 'file-list-3-line', guard: ['Admin'] },
    children: [
      {
        path: '/MakeAQuickAppointment', name: 'MakeAQuickAppointment', pCode: 'OrderManagement', isLink: false, menuType: 2,
        component: '/@/views/OrderManagement/MakeAQuickAppointment/index.vue', meta: { title: '代申请' },
        // 按钮权限
        children: []
      },
      {
        path: '/AllOrder', name: 'AllOrder', pCode: 'OrderManagement', isLink: false, menuType: 2,
        component: '/@/views/OrderManagement/Orders/index.vue', meta: { title: '所有订单' },
        // 按钮权限
        children: []
      }
    ]
  },

  {
    path: '/EvaluationManagement', name: 'EvaluationManagement', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '评价管理', icon: 'heart-line' },
    children: [
      {
        path: '/OrderReviewHistory', name: 'OrderReviewHistory', pCode: 'EvaluationManagement', isLink: false, menuType: 2,
        component: '/@/views/EvaluationManagement/OrderReviewHistory/index.vue', meta: { title: '订单评价记录' },
        // 按钮权限
        children: []
      },
      {
        path: '/ReviewSettings', name: 'ReviewSettings', pCode: 'EvaluationManagement', isLink: false, menuType: 2,
        component: '/@/views/EvaluationManagement/ReviewSettings/index.vue', meta: { title: '评价设置' },
        // 按钮权限
        children: []
      }
    ]
  },

  {
    path: '/NoticesAndAnnouncements', name: 'NoticesAndAnnouncements', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '通知与公告', icon: 'chat-smile-2-line' },
    children: [
      {
        path: '/SystemAnnouncementManagement', name: 'SystemAnnouncementManagement', pCode: 'NoticesAndAnnouncements', isLink: false, menuType: 2,
        component: '/@/views/NoticesAndAnnouncements/SystemAnnouncementManagement/index.vue', meta: { title: '系统公告管理' },
        // 按钮权限
        children: []
      },
      {
        path: '/SystemNotificationManagement', name: 'SystemNotificationManagement', pCode: 'NoticesAndAnnouncements', isLink: false, menuType: 2,
        component: '/@/views/NoticesAndAnnouncements/SystemNotifications/index.vue', meta: { title: '系统通知管理' },
        // 按钮权限
        children: []
      }
    ]
  },

  {
    path: '/StatisticalAnalysis', name: 'StatisticalAnalysis', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '数据分析', icon: 'dashboard-line' },
    children: [
      {
        path: '/shuttleBusOccupancyAnalysis', name: 'shuttleBusOccupancyAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/shuttleBusOccupancyAnalysis/index.vue', meta: { title: '公寓乘坐率分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/rideTypeAnalysis', name: 'rideTypeAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/rideTypeAnalysis/index.vue', meta: { title: '乘坐类型分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/orderTypeAnalysis', name: 'orderTypeAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/orderTypeAnalysis/index.vue', meta: { title: '订单类型分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/abnormalOrderAnalysis', name: 'abnormalOrderAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/abnormalOrderAnalysis/index.vue', meta: { title: '异常订单分析(逾期/未预约)' },
        // 按钮权限
        children: []
      },
      {
        path: '/rideEfficiencyAnalysis', name: 'rideEfficiencyAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/rideEfficiencyAnalysis/index.vue', meta: { title: '乘车效率分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/dataAnalysisOfShuttleBusStops', name: 'dataAnalysisOfShuttleBusStops', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/dataAnalysisOfShuttleBusStops/index.vue', meta: { title: '公寓站点数据分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/vehicleUtilizationFailureRateAnalysis', name: 'vehicleUtilizationFailureRateAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/vehicleUtilizationFailureRateAnalysis/index.vue', meta: { title: '车辆使用率故障率分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/satisfactionAnalysis', name: 'satisfactionAnalysis', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/satisfactionAnalysis/index.vue', meta: { title: '满意度分析' },
        // 按钮权限
        children: []
      },
      {
        path: '/statisticalTableOfFullyLoadedTrains', name: 'statisticalTableOfFullyLoadedTrains', pCode: 'StatisticalAnalysis', isLink: false, menuType: 2,
        component: '/@/views/StatisticalAnalysis/statisticalTableOfFullyLoadedTrains/index.vue', meta: { title: '满载车次统计表' },
        // 按钮权限
        children: []
      },
    ]
  },

  {
    path: '/SystemConfiguration', name: 'SystemConfiguration', pCode: '', isLink: false, menuType: 1, visible: true, component: 'Layout', meta: { title: '系统配置', icon: 'dashboard-line' },
    children: [
      {
        path: '/SystemParametersArePagination', name: 'SystemParametersArePagination', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/SystemParametersArePagination/index.vue', meta: { title: '系统参数配置' },
        // 按钮权限
        children: []
      },
      {
        path: '/dataDictionary', name: 'dataDictionary', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/dataDictionary/index.vue', meta: { title: '数据字典' },
        // 按钮权限
        children: []
      },
      {
        path: '/MultiLanguageConfiguration', name: 'MultiLanguageConfiguration', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/MultiLanguageConfiguration/index.vue', meta: { title: '多语言配置' },
        // 按钮权限
        children: []
      },
      {
        path: '/CheckNodes', name: 'CheckNodes', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/CheckNodes/index.vue', meta: { title: '公寓检查项' },
        // 按钮权限
        children: [
          // { 
          //   name: 'cbyeqy', pCode: 'mealusers', isLink: false, menuType: 3, visible: true,
          //   meta: { title: '按钮权限', icon: '' }, component: 'null'
          // }
        ]
      },
      {
        path: '/RouteMenu', name: 'RouteMenu', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/routeMenu/index.vue', meta: { title: '路由管理' },
        // 按钮权限
        children: [
          { 
            name: 'cbyeqy', pCode: 'mealusers', isLink: false, menuType: 3, visible: true,
            meta: { title: '按钮权限', icon: '' }, component: 'null'
          }
        ]
      },
      {
        path: '/ShuttleBusExceptionLogs', name: 'ShuttleBusExceptionLogs', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/ShuttleBusExceptionLogs/index.vue', meta: { title: '公寓异常日志' },
        // 按钮权限
        children: []
      },
      {
        path: '/violations', name: 'violations', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/violations/index.vue', meta: { title: '乘客违规日志' },
        // 按钮权限
        children: []
      },
      {
        path: '/DriverLoginLog', name: 'DriverLoginLog', pCode: 'SystemConfiguration', isLink: false, menuType: 2,
        component: '/@/views/SystemConfiguration/DriverLoginLog/index.vue', meta: { title: '司机登出日志' },
        // 按钮权限
        children: []
      },
    ]
  }
]