// 中台用户路由


// 视图组件
const view = {
    tabs: () => import('@/layouts/tabs'),
    blank: () => import('@/layouts/BlankView'),
    page: () => import('@/layouts/PageView')
  }
  
// 路由组件注册
const AdminUserRouterMap = {
    AdminUser:{
        name: '用户管理',
        icon: 'idcard',
        component: view.page,
        meta: {
          invisible:true, // 不在菜单中显示
        },
        authority: {
          permission:['AdminUser-All'],
        }
      },
    AdminUserList:{
        name: '用户列表',
        icon: 'idcard',
        path: '/AdminUser/AdminUserList',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserList'),
        authority: {
          permission:['AdminUser-All','AdminUser-List'],
        }
    },
    AdminUserAdd:{
        name: '添加用户',
        icon: 'idcard',
        path: '/AdminUser/AdminUserAdd',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserAdd'),
        meta: {
          invisible:true, // 不在菜单中显示
        },
        authority: {
          permission:['AdminUser-All','AdminUser-Add'],
        },
    },
    AdminUserDetail:{
        name: '用户详情',
        icon: 'idcard',
        path: '/AdminUser/AdminUserDetail',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserDetail'),
        meta: {
          invisible:true, // 不在菜单中显示
        },
        authority: {
          permission:['AdminUser-All','AdminUser-List'],
        },
    },
    AdminUserUpdate:{
        name: '修改用户',
        icon: 'idcard',
        path: '/AdminUser/AdminUserUpdate',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserUpdate'),
        meta: {
          invisible:true, // 不在菜单中显示
        },
        authority: {
          permission:['AdminUser-All','AdminUser-Update'],
        },
    },
    AdminUserSettings:{
        name: '用户设置',
        icon: 'idcard',
        path: '/AdminUser/AdminUserSettings',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserSettings'),
        meta: {
          //invisible:true, // 不在菜单中显示
        },
        authority: {
          permission:['AdminUser-All','AdminUser-Settings'],
        },
    },
    AdminUserLog:{
        name: '用户日志',
        icon: 'idcard',
        path: '/AdminUser/AdminUserLog',
        component: () => import('@/pages/Middle/Admin/AdminUser/UserLog'),
        authority: {
          permission:['AdminUser-All','AdminUser-Log'],
        },
    },
}

export default AdminUserRouterMap