feat: 增加DEFAULT_USER_PASSWORD,作为创建用户时的默认密码,添加p-limit库,添加DB_PARALLEL_LIMIT = 32环境变量作为“数据库批次操作默认并发数” 限制只有超级管理员才能创建超级管理员用户 删除用户时可以级联删除SelectionLog 添加zustand全局状态管理 一对多的院系管理功能 ,支持增删改查院系管理员信息、用户可以在header中切换管理的院系
This commit is contained in:
@@ -27,7 +27,9 @@ import {
|
||||
FileBarChart,
|
||||
Globe,
|
||||
Menu,
|
||||
LucideIcon
|
||||
LucideIcon,
|
||||
User,
|
||||
Building
|
||||
} from 'lucide-react'
|
||||
|
||||
/**
|
||||
@@ -62,6 +64,8 @@ export const menuIconMap: Record<string, LucideIcon> = {
|
||||
'ClipboardCheck': ClipboardCheck,
|
||||
'FileBarChart': FileBarChart,
|
||||
'Globe': Globe,
|
||||
'User': User,
|
||||
'Building': Building
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -220,6 +220,20 @@ export const menuItems: MenuItem[] = [
|
||||
href: '/users',
|
||||
icon: 'UserCog',
|
||||
permission: Permissions.USER_MANAGE,
|
||||
children: [
|
||||
{
|
||||
title: '用户与授权',
|
||||
href: '/users/user-info',
|
||||
icon: 'UserCog',
|
||||
permission: Permissions.USER_MANAGE,
|
||||
},
|
||||
{
|
||||
title: '院系管理员',
|
||||
href: '/users/dept-admin',
|
||||
icon: 'Building',
|
||||
permission: Permissions.USER_MANAGE,
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '系统设置',
|
||||
|
||||
Reference in New Issue
Block a user