权限组全自定义、月度分独立、绑定邮箱免密与样式统一

1. 权限组:去掉锁定/预置限制,所有组可编辑/删除/分配;管理员新增/编辑可选任意组;管理员列表不再显示锁定徽标
2. 个人查询:月度分独立计算(当月净得分,与基础分无关),总分=基础分+加分-减分
3. 绑定邮箱:发送验证码与确认绑定不再需要密码(解绑仍需密码)
4. 权限组编辑UI:权限项按 学生/操行分/教务/系统管理 分区,支持全选/清空,上限两行布局,弹窗加宽
5. 样式统一:颜色变量化(硬编码色值清零)、check-grid/check-item 统一复选框网格、cell-wrap、subject-status 全局化、success-msg
6. 旧库升级期兼容保留(登录/权限降级、待升级提示)
7. 文档同步更新
This commit is contained in:
canglan committed 2026-09-18 09:56:39 +08:00
1 parent 8cd2c83412
commit ed3189096d
25 files changed
+237 -159

No files matched your search

+9 -12
View File
@@ -59,11 +59,6 @@ include __DIR__ . '/../includes/header.php';
<label>新邮箱</label>
<input type="email" id="bindEmail" maxlength="100" placeholder="请输入要绑定的邮箱">
</div>
<div class="form-group">
<label>当前密码 <span style="color:red;">*</span></label>
<input type="password" id="emailPassword">
<small>安全验证:发送验证码需要输入当前登录密码</small>
</div>
<div style="display:flex; gap:8px; flex-wrap:wrap;">
<button type="button" class="btn btn-secondary" onclick="sendBindEmailCode()">发送验证码</button>
</div>
@@ -73,7 +68,15 @@ include __DIR__ . '/../includes/header.php';
</div>
<div style="display:flex; gap:8px; flex-wrap:wrap;">
<button type="button" class="btn btn-primary" onclick="confirmBindEmail()">确认绑定</button>
<button type="button" class="btn btn-outline-danger" onclick="unbindEmail()">解除绑定</button>
</div>
<hr style="border:none; border-top:1px solid var(--color-border-light); margin:18px 0;">
<div class="form-group">
<label>当前密码</label>
<input type="password" id="emailPassword" placeholder="解除绑定邮箱需验证当前密码">
</div>
<div>
<button type="button" class="btn btn-sm btn-outline-danger" onclick="unbindEmail()">解除绑定</button>
</div>
</div>
</div>
@@ -111,17 +114,11 @@ document.getElementById('passwordForm').addEventListener('submit', async (e) =>
async function sendBindEmailCode() {
const email = document.getElementById('bindEmail').value.trim();
const password = document.getElementById('emailPassword').value;
if (!email) {
showToast('请输入要绑定的邮箱', 'warning');
return;
}
if (!password) {
showToast('请输入当前密码', 'warning');
return;
}
const res = await apiPost('/api/auth/email/send-code', {
password: password,
email: email
});
if (res && res.success) {