权限组全自定义、月度分独立、绑定邮箱免密与样式统一
1. 权限组:去掉锁定/预置限制,所有组可编辑/删除/分配;管理员新增/编辑可选任意组;管理员列表不再显示锁定徽标 2. 个人查询:月度分独立计算(当月净得分,与基础分无关),总分=基础分+加分-减分 3. 绑定邮箱:发送验证码与确认绑定不再需要密码(解绑仍需密码) 4. 权限组编辑UI:权限项按 学生/操行分/教务/系统管理 分区,支持全选/清空,上限两行布局,弹窗加宽 5. 样式统一:颜色变量化(硬编码色值清零)、check-grid/check-item 统一复选框网格、cell-wrap、subject-status 全局化、success-msg 6. 旧库升级期兼容保留(登录/权限降级、待升级提示) 7. 文档同步更新
This commit is contained in:
1 parent
8cd2c83412
commit
ed3189096d
25 files changed
+237
-159
No files matched your search
@@ -151,14 +151,13 @@ async def reset_password_by_token(request: Request, req: ResetPasswordRequest):
|
||||
@router.post("/email/send-code")
|
||||
async def send_bind_email_code(request: Request, req: SendEmailCodeRequest):
|
||||
"""
|
||||
发送邮箱绑定验证码(需当前密码,验证码发送至待绑定邮箱)
|
||||
发送邮箱绑定验证码(验证码发送至待绑定邮箱)
|
||||
"""
|
||||
user = await get_current_user(request)
|
||||
if user["user_type"] != "admin":
|
||||
return error_response(message="仅管理员可绑定邮箱", code=403)
|
||||
result = await AuthService.send_bind_email_code(
|
||||
user_id=user["user_id"],
|
||||
password=req.password,
|
||||
email=req.email
|
||||
)
|
||||
if result["success"]:
|
||||
|
||||
@@ -64,8 +64,7 @@ async def debug_add_admin(request: Request, req: AddAdminDebugRequest):
|
||||
real_name=req.real_name,
|
||||
password=req.password,
|
||||
group_id=group["group_id"],
|
||||
operator_id=0,
|
||||
allow_locked=True
|
||||
operator_id=0
|
||||
)
|
||||
|
||||
if result["success"]:
|
||||
|
||||
Reference in new issue
Block a user