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

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'login',
      component: ()=>import('./views/login.vue'),
      meta:{title:'登录'}
    },
    {
      path: '/main',
      
      component: () => import('./views/main.vue'),
      children:[
        {
          path:'/yiban',
          name:'yiban',
          component:()=>import('./components/yiban.vue'),
          meta:{title:'已办流程'}
        },
        {
          path:'/zaiban',
          name:'zaiban',
          component:()=>import('./components/zaiban.vue'),
          meta:{title:'在办流程'}
        },
        {
          path:'/',
          name:'daiban',
          component:()=>import('./components/daiban.vue'),
          meta:{title:'待办流程'}
        },
       
      ],
    },
    {
      path:'/detauils',
      name:'detauils',
      component:()=>import('./components/detauils.vue'),
      meta:{title:'待办明细'}
    },
    {
      path:'/zaibandetauils',
      name:'zaibandetauils',
      component:()=>import('./components/zaibandetauils.vue'),
      meta:{title:'跳转'}
    },
    {
      path:'/send',
      name:'send',
      component:()=>import('./components/send.vue'),
      meta:{title:'发送'}
    },
    {
      path:'/continue',
      name:'continue',
      component:()=>import('./components/continue.vue'),
      meta:{title:'退回'}
    },
    {
      path:'/reception',
      name:'reception',
      component:()=>import('./components/reception.vue'),
      meta:{title:'完成'}
    },
    {
      path:'/finishVisible',
      name:'finishVisible',
      component:()=>import('./components/finishVisible.vue'),
      meta:{title:'结束'}
    },
    {
      path:'/taskFinishVisible',
      name:'taskFinishVisible',
      component:()=>import('./components/taskFinishVisible.vue'),
      meta:{title:'完成'}
    },
   
    {
      path:'/transmitfw',
      name:'transmitfw',
      //component:()=>import('./components/transmit.vue'),//致远OA发送
      component:()=>import('./components/transmitfw.vue'),//泛微OA发送
      meta:{title:'完成'}
    },
    {
      path:'/user',
      name:'user',
      component:()=>import('./views/user.vue'),
      meta:{title:'完成'}
    },
    {
      path:'/system',
      name:'system',
      component:()=>import('./components/system.vue'),
      meta:{title:'系统设置'}
    },
    {
      path:'/loginsystemoa',
      name:'loginsystemoa',
      component:()=>import('./views/loginsystemoa.vue'),
      meta:{title:'OA单点'}
    },
  ]
})
