import Layout from '@/page/index/'

export default [
  // 没有引用website里的firstPage
  {
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
      path: 'index',
      name: '首页',
      meta: {i18n: 'dashboard', code: "wel"},
      component: () =>
        // import(/* webpackChunkName: "views" */ '@/views/wel/index')
        import(/* webpackChunkName: "views" */ '@/views/workstation/workbench')
    }]
  },
  {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [{
      path: 'index',
      name: '测试页',
      meta: {i18n: 'test'},
      component: () =>
        import(/* webpackChunkName: "views" */ '@/views/util/test')
    }]
  },
  {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {i18n: 'dict'},
      component: () => import(
        /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
    }]
  },
  {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {i18n: 'dict'},
      component: () => import(
        /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
    }]
  },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {i18n: 'info'},
      component: () =>
        import(/* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  },
  {
    path: '/manage',
    component: Layout,
    children: [
      {
        path: 'mission/zpView/:missionNo',
        name: '招聘情况',
        props: true,
        meta: {
          i18n: 'mission',
          isTab: false,
        },
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/manage/mission/zpView')
      },
    ]
  },
  {
    path: '/tenant/news',
    component: Layout,
    redirect: '/tenant/news/index',
    children: [{
      path: 'index',
      name: '客户消息',
      meta: {i18n: 'news', code: 'news'},
      component: () =>
        import(/* webpackChunkName: "views" */ '@/views/tenant/news/index')
    }]
  },
  {
    path: '/tenant/account',
    component: Layout,
    redirect: 'tenant/account/index',
    children: [{
      path: 'index',
      name: '账户信息',
      meta: {i18n: 'accountsafe', code: 'accountsafe'},
      component: () =>
        import(/* webpackChunkName: "views" */ '@/views/tenant/account/index')
    }]
  },
  // {
  //   path: '/tenant/set',
  //   component: Layout,
  //   redirect: 'tenant/set/index',
  //   children: [{
  //     path: 'index',
  //     name: '设置',
  //     meta: { i18n: 'set' },
  //     component: () =>
  //       import(/* webpackChunkName: "views" */ '@/views/tenant/set/index')
  //   }]
  // },
  // {
  //   path: '/tenant/company',
  //   component: Layout,
  //   redirect: 'tenant/company/index',
  //   children: [{
  //     path: 'index',
  //     name: '公司主页',
  //     meta: { i18n: 'companyindex' },
  //     component: () =>
  //       import(/* webpackChunkName: "views" */
  //       '@/views/tenant/company/index')
  //   }]
  // },
  {
    path: '/news',
    name: '文章管理',
    component: Layout,
    meta: {
      i18n: 'index',
      isTab: false,
    },
    children: [
      {
        path: 'index/:type/:id',
        name: '添加/修改文章',
        meta: {
          i18n: 'index',
          isTab: false,
        },
        props: true,
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/manage/policies/news/addNews')
      }
    ]
  },
  {
    path: '/article',
    name: '文章管理',
    component: Layout,
    meta: {
      i18n: 'index',
      isTab: false,
    },
    children: [
      {
        path: 'index/:type/:id',
        name: '添加/修改文章article',
        meta: {
          i18n: 'index',
          isTab: false,
        },
        props: true,
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/manage/policies/article/allArticle/addNews')
      }
    ]
  },
  {
    path: '/log',
    name: '日志管理',
    component: Layout,
    meta: {
      i18n: 'index',
      isTab: false,
    },
    children: [
      {
        path: 'index/:type/:id',
        name: '添加/修改日志log',
        meta: {
          i18n: 'index',
          isTab: false,
        },
        props: true,
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/tenant/main/serveCopy/Dialog/addLog')
      }
    ]
  },
  {
    path: '/recommend',
    name: '推荐管理',
    component: Layout,
    meta: {
      i18n: 'index',
      isTab: false,
    },
    children: [
      {
        path: 'index/:type/:id',
        name: '管理内容',
        meta: {
          i18n: 'index',
          isTab: false,
        },
        props: true,
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/manage/recommend/manageContent/contentManage')
      }
    ]
  },
  {
    path: '/allContent',
    name: '全部内容',
    component: Layout,
    meta: {
      i18n: 'index',
      isTab: false,
    },
    children: [
      {
        path: 'index/:type/:id',
        name: '添加/修改内容',
        meta: {
          i18n: 'index',
          isTab: false,
        },
        props: true,
        component: () => import(
          /* webpackChunkName: "views" */ '@/views/manage/content/allContent/addContent')
      }
    ]
  },

]
