export default {
  path: '/platform',
  name: 'platform',
  meta: { title: '系统', icon: 'fa fa-wrench' },
  component: 'platform/index',
  children: [{
    path: '/platform/systemInfo',
    meta: { title: '系统信息', icon: 'fa fa-info-circle' },
    component: 'platform/systemInfo'
  },
  {
    path: '/platform/detector',
    meta: { title: '系统检测', icon: 'fa fa-dashboard' },
    component: 'platform/detector'
  },
  // {
  //   path: '/platform/nginxSync',
  //   meta: { title: 'nginx同步', icon: 'fa fa-refresh' },
  //   component: 'platform/nginxSync'
  // },
  {
    path: '/platform/branch',
    meta: { title: '组织机构', icon: 'fa fa-users' },
    component: 'platform/branch'
  },
  {
    path: '/platform/branch/:branchId',
    component: 'platform/branchForm',
    props: true
  },
  {
    path: '/platform/role',
    meta: { title: '角色管理', icon: 'fa fa-users' },
    component: 'platform/role'
  },
  {
    path: '/platform/role/:roleCode',
    component: 'platform/roleInfo',
    props: true
  },
  {
    path: '/platform/user',
    meta: { title: '用户管理', icon: 'fa fa-users' },
    component: 'platform/user'
  },
  {
    path: '/platform/user/:userId',
    component: 'platform/userForm',
    props: true
  },
  {
    path: '/platform/security',
    meta: { title: '账户安全', icon: 'fa fa-unlock-alt' },
    component: 'platform/security'
  },
  {
    path: '/platform/code',
    meta: { title: '代码管理', icon: 'fa fa-file-code-o' },
    component: 'platform/code'
  },
  {
    path: '/platform/code/:codeType',
    component: 'platform/codeForm',
    props: true
  },
  {
    path: '/platform/code/:codeType/items',
    component: 'platform/codeItem',
    props: true
  },
  {
    path: '/platform/code/:codeType/items/:ID',
    component: 'platform/codeItemForm',
    props: true
  },
  {
    path: '/platform/config',
    meta: { title: '配置项管理', icon: 'fa fa-toggle-on' },
    component: 'platform/config'
  },
  {
    path: '/platform/metadata',
    meta: { title: '元数据管理', icon: 'fa fa-database' },
    component: 'platform/metadata'
  },
  {
    path: '/platform/metadata/:modelId',
    component: 'platform/metaAddForm',
    props: true
  },
  {
    path: '/platform/metadata/:modelId/info',
    component: 'platform/metadataDetail',
    props: true,
    children: [{
      path: '/platform/metadata/:modelId/info',
      component: 'platform/metadataInfo',
      props: true
    },
    {
      path: '/platform/metadata/:modelId/field',
      component: 'platform/metaModelColumn',
      props: true
    },
    {
      path: '/platform/metadata/:modelId/data',
      component: 'platform/metaModelData',
      props: true
    },
    {
      path: '/platform/metadata/:modelId/template',
      component: 'platform/metaModelTemplate',
      props: true
    }
    ]
  },
  {
    path: '/platform/metadata/:modelID/field/:code',
    component: 'platform/metaColumnForm',
    props: true
  },
  {
    path: '/platform/metadata/:modelID/data/:pk',
    component: 'platform/metaModelDataForm',
    props: true
  },
  {
    path: '/platform/metadata/:modelID/:tabName/:code',
    component: 'platform/metaColumnGroupForm',
    props: true
  },
  {
    path: '/platform/schedule',
    meta: { title: '定时任务', icon: 'fa fa-clock-o' },
    component: 'platform/schedule'
  },
  {
    path: '/platform/schedule/:ID',
    component: 'platform/scheduleForm',
    props: true
  },
  {
    path: '/platform/menu',
    meta: { title: '菜单管理', icon: 'fa fa-list' },
    component: 'platform/menu'
  },
  // {
  //   path: '/platform/plugin',
  //   meta: { title: '插件管理', icon: 'fa fa-file-code-o' },
  //   component: 'platform/plugin'
  // },
  {
    path: '/platform/plugin/:ID',
    component: 'platform/pluginDetail',
    props: true
  },
  {
    path: '/platform/backup',
    meta: { title: '数据备份', icon: 'fa fa-database' },
    component: 'platform/backup'
  },
  {
    path: '/platform/log',
    meta: { title: '系统日志', icon: 'fa fa-heartbeat' },
    component: 'logs/log'
  },
  {
    path: '/platform/log/:type',
    component: 'logs/logDetail',
    props: true
  }
  // ,
  // {
  //   path: '/platform/api',
  //   meta: { title: '接口API', icon: 'fa fa-plug' },
  //   component: 'platform/api'
  // },
  // {
  //   path: '/platform/api/:ID',
  //   component: 'platform/apiDetail',
  //   props: true
  // }
  ]
}
