fix(admin): 前端功能与安全修复(角色勾选/月视图新建/附件预览/考勤 late 等)

由 OCR(open-codereview.ai,deepseek-v4-flash)审查驱动修复:
- Roles 多组勾选、Schedules 月视图新建、useDirtyGuard 稳定引用
- JinshujuMatchModal success:false、Attendance store 订阅、EditableCell Enter、DynamicChart 空数据、渲染期 ref
- AttachmentsTab 附件预览不再 window.open(防存储型 XSS)+ 请求乱序防护
- 考勤 late 计入出勤率与主状态

Reviewed-by: OCR (open-codereview.ai)
This commit is contained in:
2026-08-09 21:29:54 +08:00
parent f50301148d
commit a32c0a0731
11 changed files with 134 additions and 49 deletions

View File

@@ -146,6 +146,10 @@ const JinshujuMatchModal: React.FC<MatchModalProps> = ({ open, onClose, onApplie
message.success(res.log.message || `处理 ${res.log.recordsCount} 条记录`);
onApplied();
reset();
} else {
// 接口返回 success:false 时也要结束「处理中」并给出错误提示
message.error(res.log?.message || '处理失败,请检查后重试');
setStep('match');
}
} catch (e: unknown) {
const err = e as { message?: string };