import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
export default new Router({
  routes: [{
      path: '/',
      name: 'login',
      component: () => import('./views/Login.vue'),
      show: 0,
    },
    {
      path: '/index/index',
      name: '首页',
      icon: 'el-icon-s-home',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/index/index',
        component: () => import('./views/Index.vue'),
        name: '首页'
      }, ]
    },
    {
      path: '/message/message',
      name: '内部消息',
      icon: 'iconfont iconxiaoxi',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/message/message',
        component: () => import('./views/message/Notice.vue'),
        name: '内部消息'
      }, {
        path: '/message/message/analyse',
        component: () => import('./views/message/MessageAnalyse.vue'),
        name: '问卷统计'
      }]
    },
    {
      path: '/message/innerSurvey',
      name: '内部问卷',
      icon: 'iconfont iconwenjuan',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/message/innerSurvey',
        component: () => import('./views/message/InnerSurvey.vue'),
        name: '内部问卷'
      }, {
        path: '/message/innerSurvey/analyse',
        component: () => import('./views/message/MessageAnalyse.vue'),
        name: '问卷统计'
      }]
    },
    {
      path: '/message/outSurvey',
      name: '外部问卷',
      icon: 'iconfont iconwenjuan1',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/message/outSurvey',
        component: () => import('./views/message/OutSurvey.vue'),
        name: '外部问卷'
      }, {
        path: '/message/outSurvey/analyse',
        component: () => import('./views/message/MessageAnalyse.vue'),
        name: '问卷统计'
      }]
    },
    {
      path: '/journal/journal',
      name: '中科院全刊',
      icon: 'iconfont iconkanwuguanli',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/journal/journal',
        component: () => import('./views/journalQun/Journal.vue'),
        name: '中科院全刊'
      },{
        path: '/journal/journal/add',
        component: () => import('./views/journalQun/AddJournal.vue'),
        name: '中科院全刊'
      }]
    },
    {
      path: '/journal/organizer',
      name: '主办单位',
      icon: 'iconfont icondanwei3',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/journal/organizer',
        component: () => import('./views/journalQun/Organizer.vue'),
        name: '主办单位'
      }, ]
    },
    {
      path: '/journal/subject',
      name: '学科',
      icon: 'iconfont iconshuben',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/journal/subject',
        component: () => import('./views/journalQun/Subject.vue'),
        name: '学科'
      }, ]
    },
    {
      path: '/learning/activity',
      name: '活动管理',
      icon: 'iconfont iconhuodong',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/learning/activity',
        component: () => import('./views/activity/Activity.vue'),
        name: '活动管理'
      },{
        path: '/learning/activity/add',
        component: () => import('./views/activity/AddActivity.vue'),
        name: '新增活动'
      },  ]
    },
    {
      path: '/article/article',
      name: '文章管理',
      icon: 'iconfont iconwenzhang',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/article/article',
        component: () => import('./views/article/Article.vue'),
        name: '文章管理'
      }, 
      {
        path: '/article/article/add',
        component: () => import('./views/article/AddArticle.vue'),
        name: '新增文章'
      }, 
    ]
    },
    {
      path: '/conference/conference',
      name: '会议管理',
      icon: 'iconfont iconhuiyizichan',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
          path: '/conference/conference',
          component: () => import('./views/conference/Manage.vue'),
          name: '会议管理'
        }, 
        {
          path: '/conference/conference/add',
          component: () => import('./views/conference/AddConference.vue'),
          name: '新增会议'
        }, 
      ]
    },
    {
      path: '/conference/signup',
      name: '报名管理',
      icon: 'iconfont iconbaoming-08',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/conference/signup',
        component: () => import('./views/conference/Apply.vue'),
        name: '报名管理'
      }, ]
    },
    {
      path: '/conference/checker',
      name: '核销员管理',
      icon: 'iconfont iconhexiao',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/conference/checker',
        component: () => import('./views/conference/Checker.vue'),
        name: '核销员管理'
      }, ]
    },
    {
      path: '/conference/hotel',
      name: '酒店管理',
      icon: 'iconfont icondanwei3',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/conference/hotel',
        component: () => import('./views/conference/Hotel.vue'),
        name: '酒店管理'
      }, ]
    },
    // {
    //   path: '/message/survey',
    //   name: '调查问卷',
    //   icon: 'el-icon-chat-dot-square',
    //   component: () => import('./views/Home.vue'),
    //   show: 0,
    //   isLeaf: 1,
    //   children: [{
    //     path: '/message/survey',
    //     component: () => import('./views/message/investigation.vue'),
    //     name: '调查问卷'
    //   }, ]
    // },
    {
      path: '/message/template',
      name: '问卷模板',
      icon: 'iconfont iconwenjuanmoban-',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/message/template',
        component: () => import('./views/message/templateList.vue'),
        name: '问卷模板'
      }, {
        path: '/message/template/add',
        component: () => import('./views/message/modelForm.vue'),
        name: '新增表单'
      }]
    },
    {
      path: '/system/account',
      name: '账号管理',
      icon: 'iconfont iconzhanghaoguanli1',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/system/account',
        component: () => import('./views/system/Account.vue'),
        name: '消息管理'
      }, ]
    },
    {
      path: '/system/role',
      name: '角色管理',
      icon: 'iconfont iconzhanghaoguanli',
      component: () => import('./views/Home.vue'),
      show: 0,
      isLeaf: 1,
      children: [{
        path: '/system/role',
        component: () => import('./views/system/Role.vue'),
        name: '角色管理'
      }, ]
    },
  ]
})