/*
*   工作流我的事务 流程管理 路由表
* */
import layout from '@/components/layout/layout'
import Work from './work'// 工作流-import

export default [
  // 我的事务
  {
    path: '/work',
    component: layout,
    children: [
      // 待办事务
      {
        path: 'todo',
        meta: { path: 'todo' },
        component: () => import('@/views/work/todo-list')
      },
      // 办结事务
      {
        path: 'done',
        meta: { path: 'done' },
        component: () => import('@/views/work/done-list')
      },
      {
        path: '*',
        meta: { path: 'todo' },
        component: () => import('@/views/work/process/handle'),
        children: [
          ...Work // 工作流-import
        ]
      }
    ]
  },
  // 流程管理
  {
    path: '/flow',
    component: layout,
    children: [
      // 模型管理
      {
        path: 'model',
        meta: { path: 'model' },
        component: () => import('@/views/work/flowModel')
      }
    ]
  }
]
