export default [
  { path: '/user', layout: false, routes: [{ path: '/user/login', component: './user/login' }] },
  { path: '/', icon: 'SmileOutlined', component: './welcome', name: '欢迎页', routes: []},
  {
    icon: 'SettingOutlined',
    path: '/system',
    name: '系统管理',
    routes: [
      { path: '/system/user', name: '人员管理', component: './system/user' },
      { path: '/system/role', name: '角色管理', component: './system/role' },
      { path: '/system/module', name: '模块管理', component: './system/module' },
      { path: '/system/dict', name: '码表管理', component: './dict/index' },
    ],
  },
  {
    path: '/deviceModal', icon: 'SettingOutlined', name: '设备模型管理',
    routes: [{
      name: '设备建模',
      path: '/deviceModal/deviceProduct',
      component: './deviceProductInfo/index',
    },
    { path: '/deviceModal/deviceinfo', name: '设备管理', component: './deviceInfo/index' },
    ]
  },
  {
    path: '/factory', icon: 'SettingOutlined', name: '工厂数据管理',
    routes: [
   
    { path: '/factory/process', name: '工序流程', component: './plantModel/process' },
    { path: '/factory/line', name: '产线管理', component: './productLine/line' },
    ]
  },
  {
    path: '/production', icon: 'SettingOutlined', name: '生产资料管理', hideInBreadcrumb:false,
    routes: [
      { path: '/production/materials', name: '物料管理', component: './materials/index' },
      { path: '/production/godown', name: '料仓管理', component: './stock/index' },
      { path: '/production/final', name: '成品管理', component: './final/index' },
    ]
  },
  { path: '/work',icon: 'SmileOutlined',  name: '生产计划管理', 
    routes: [
      { path: '/work/workPlan', name: '生产计划', component: './workInfo/plan',   },
      { path: '/work/workInfo', name: '工单管理', component: './workInfo/index',  },
    ]

  },
  // {
  //   path: '/data', icon: 'SettingOutlined', name: '数据服务',
  //   routes: [
  //     { path: '/data/userlog', name: '操作日志', component: './logs/userlog' },
  //     { path: '/data/runlog', name: '运行日志', component: './logs/runlog' },
  //     { path: '/data/alarmlog', name: '报警日志', component: './logs/alarmlog' },
  //     { path: '/data/programlog', name: '系统日志', component: './logs/programlog' }
  //   ]
  // },
  // {
  //   path: '/agv', icon: 'SettingOutlined', name: 'agv管理',
  //   routes: [
  //     { path: '/agv/agvbasic', name: 'agv基础数据', component: './agvbasic/index' },
  //     { path: '/agv/agvline', name: 'agv线路管理', component: './agvline/index' }
  //   ]
  // },
  // {
  //   path: '/report', icon: 'SettingOutlined', name: '统计报表',
  //   routes: [
  //     { path: '/report/product', name: '成品统计', component: './report/product' },
  //     { path: '/report/material', name: '原料统计', component: './report/material' },
  //   ]
  // },

  { path: '*', layout: false, component: './404' },

];
