import layout from '@/layout'

export default {
  path: "/systemConfig",
  component: layout,
  redirect: "/dict/index",
  name: 'systemConfig',
  meta: {
    title: "系统管理",
    icon: "personnel"
  },
  children: [
    {
      path: "/dict/index",
      name: "dictIndex",
      component: () => import("@/views/systemConfig/dict/index"),
      meta: {
        title: "字典列表",
        icon: "article-ranking"
      }
    },
    {
      path: "/dict/detail",
      name: "dictDetail",
      component: () => import("@/views/systemConfig/dict/detail"),
      meta: {
        title: "字典数据"
      }
    },
    {
      path: "/user/userList",
      name: "userList",
      component: () => import("@/views/systemConfig/user-list/index"),
      meta: {
        title: "用户管理",
        icon: "role"
      }
    },
    {
      path: "/user/job",
      name: "userJob",
      component: () => import("@/views/systemConfig/job-list/index"),
      meta: {
        title: "岗位列表",
        icon: "personnel-manage"
      }
    },
    {
      path: "/user/role",
      name: "userRole",
      component: () => import("@/views/systemConfig/role-list/index"),
      meta: {
        title: "角色列表",
        icon: "role"
      }
    },
    {
      path: "/user/menuList",
      name: "menuList",
      component: () => import("@/views/systemConfig/menu-list/index"),
      meta: {
        title: "菜单管理",
        icon: "personnel-manage"
      }
    },
    {
      path: "/user/systemConfig",
      name: "systemConfig",
      component: () => import("@/views/systemConfig/system-config-list/index"),
      meta: {
        title: "系统配置",
        icon: "personnel-manage"
      }
    },
    {
      path: "/user/department-ist",
      name: "departmentList",
      component: () => import("@/views/systemConfig/department-list/index"),
      meta: {
        title: "部门管理",
        icon: "personnel-manage"
      }
    },
   
    {
      path: "/user/systemVersion",
      name: "systemVersion",
      component: () => import("@/views/systemConfig/system-version-list/index"),
      meta: {
        title: "系统版本管理",
        icon: "personnel-manage"
      }
    },

    {
      path: "/user/log",
      name: "/user/log",
      redirect: "/user/operateLog",
      meta: {
        title: "日志",
        icon: "article"
      },
      children: [
        {
          path: "/user/operateLog",
          name: "/user/operateLog",
          component: () => import("@/views/systemConfig/log-manage/operateLog/index"),
          meta: {
            title: "操作日志",
            icon: "article-ranking"
          }
        },
        {
          path: "/user/loginLog",
          name: "/user/loginLog",
          component: () => import("@/views/systemConfig/log-manage/loginLog/index"),
          meta: {
            title: "登录日志",
            icon: "article-ranking"
          }
        }
      ]
    },
    {
      //如果三级 需要把路由注册出来
      path: "/user/operateLog",
      name: "/user/operateLog",
      component: () => import("@/views/systemConfig/log-manage/operateLog/index")
    },
    {
      path: "/user/loginLog",
      name: "/user/loginLog",
      component: () => import("@/views/systemConfig/log-manage/loginLog/index")
    }
  ]
}
