/* Layout */
import Layout from '@/layout'

export default {
  path: '/system',
  component: Layout,
  redirect: '/orgManage',
  name: 'SystemManage',
  meta: {
    title: '系统管理',
    icon: 'system'
  },
  children: [
    {
      path: '/orgManage',
      name: 'OrgManage',
      component: () => import('@/views/systemManage/orgManage/index'),
      meta: { title: '组织机构管理' },
      hidden: false
    },
    {
      path: '/logManage',
      name: 'LogManage',
      component: () => import('@/views/systemManage/logManage/index'),
      meta: { title: '登录日志' },
      hidden: false,
      children: [
        {
          path: '/logDetail',
          name: 'LogDetail',
          component: () => import('@/views/systemManage/logManage/detail'),
          hidden: true,
          meta: { title: '日志详情', activeMenu: '/logManage' }
        }
      ]
    },
    {
      path: '/processManage/index',
      name: 'ProcessManageIndex',
      component: () => import('@/views/systemManage/processManage/index'),
      meta: { title: '流程管理' },
      hidden: false,
      children: [
        {
          path: '/processManage/processDefinitionIndex/:id',
          name: 'ProcessManageProcessDefinitionIndex',
          component: () => import('@/views/systemManage/processManage/processDefinitionIndex'),
          hidden: true,
          meta: { title: '流程定义', activeMenu: '/processManage/index' }
        }
        // {
        //   path: '/salesContractManagement/prequalification/:id',
        //   name: 'SalesContractManagementPrequalification',
        //   component: () => import('@/views/salesContractManagement/prequalification'),
        //   hidden: true,
        //   meta: { title: '模板审核' }
        // }
      ]
    }
    // {
    //   path: '/smbLogManage',
    //   name: 'ProcessManageIndex', // SmbLogManage
    //   component: () => import('@/views/systemManage/smbLogManage/index'),
    //   meta: { title: '银行交易日志' },
    //   hidden: false
    // }
  ]
}
