import Layout from '@/layout/index.vue'
/**
 *
 * systemUser                   用户管理
 * systemRole                   角色管理
 * systemJurisdiction           权限管理
 * systemDataDictionary         数据字典
 * systemLog                    日志信息
 */

export const systemUser = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemUser',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/user',
      component: () => import('@/views/system/user/index.vue'),
      meta: {
        title: '用户管理'
      },
      sort: 1
    }
  ]
}

export const systemDept = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemDept',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/dept',
      component: () => import('@/views/system/dept/index.vue'),
      meta: {
        title: '部门管理'
      },
      sort: 2
    }
  ]
}

export const systemLog = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemLog',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/systemLog',
      component: () => import('@/views/system/systemLog/index.vue'),
      meta: {
        title: '日志信息'
      },
      sort: 3
    }
  ]
}

export const systemDataDictionary = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemDataDictionary',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/systemDataDictionary',
      component: () => import('@/views/system/systemDataDictionary/index.vue'),
      meta: {
        title: '数据字典'
      },
      sort: 4
    },
    {
      path: '/system/systemDataDictionary/:dictId',
      component: () => import('@/views/system/systemDataDictionary/data.vue'),
      meta: {
        title: '字典数据',
        hide: true
      }
    }
  ]
}

export const systemRole = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemRole',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/role',
      component: () => import('@/views/system/role/index.vue'),
      meta: {
        title: '角色管理'
      },
      sort: 5
    }
  ]
}

export const systemBackup = {
  path: '/system',
  redirect: '/system/program',
  component: Layout,
  name: 'SystemBackup',
  meta: {
    title: '系统管理',
    icon: 'el-icon-s-platform'
  },
  sort: 11,
  children: [
    {
      path: '/system/systemBackup',
      component: () => import('@/views/system/systemBackup/index.vue'),
      meta: {
        title: '系统备份'
      },
      sort: 6
    }
  ]
}
