v4.0 权限组重构与导出/个人查询优化

1. 权限重构:自定义权限组(14项功能权限+允许加分/加分上限/允许扣分/扣分上限),管理员账号绑定权限组,预置六组且班主任组锁定;全站前后端改为权限驱动,权限变更60秒内自动生效
2. 新增班主任导出学生名单(导出前自选字段)
3. 加减分/考勤上限改为按权限组动态校验,弹窗实时提示并限制输入
4. 导出按学期隔离(默认当前学期,可选历史/全部),历史导出不再受1000条限制
5. 新增管理端个人查询:基础分/加分/扣分/月度分/月度理由汇总及明细导出
6. 版本升级至4.0(sql/upgrades/v4.0.sql)
This commit is contained in:
canglan committed 2026-09-17 20:06:54 +08:00
1 parent 3067542e53
commit 3588b4c28c
55 files changed
+2846 -801

No files matched your search

+11
View File
@@ -32,6 +32,17 @@ function initAttendanceButtons() {
if (attendanceDeductionMap.absent > 0) {
document.getElementById('customDeduction').value = attendanceDeductionMap.absent;
}
// 按权限组动态扣分上限限制自定义扣分输入
const limits = getScoreLimits();
const deductionInput = document.getElementById('customDeduction');
if (deductionInput) {
if (limits.max_subtract !== null && limits.max_subtract !== undefined) {
deductionInput.max = limits.max_subtract;
}
if (!limits.can_subtract) {
deductionInput.disabled = true;
}
}
}
function selectStatus(btn) {