历史记录/操作日志与作业按次登记改进

1. 历史记录:批次合并视图新增"批量反撤销"(需反撤销权限);单条/批量撤销与反撤销提示更明确(说明记录去向,不会删除);操作列权限门控补充 restore_records
2. 操作日志:批量撤销/反撤销写入日志;单条撤销/反撤销/加减分日志详情补充学生姓名(学号)、分值变动、原因;新增"详情关键词"筛选(学生姓名/原因等)
3. 节假日接口:证书校验失败自动回退重试,提高服务器兼容性
4. 作业按次登记:默认列出全部学生、缺交次数默认0(0=已交),支持全员已交登记;后端允许空缺交名单
This commit is contained in:
canglan committed 2026-10-15 20:04:41 +08:00
1 parent dbf70f602e
commit d0cdb5b928
13 files changed
+192 -52

No files matched your search

+6 -3
View File
@@ -62,7 +62,8 @@ class LogService:
operation_type: str = None,
operator: str = None,
start_date: str = None,
end_date: str = None
end_date: str = None,
keyword: str = None
) -> dict:
"""查询操作日志(分页 + 筛选)"""
if operation_type == "":
@@ -73,12 +74,14 @@ class LogService:
start_date = None
if end_date == "":
end_date = None
if keyword == "":
keyword = None
offset = (page - 1) * page_size
total = await OperationLogModel.count_logs(
operation_type, operator, start_date, end_date
operation_type, operator, start_date, end_date, keyword
)
logs = await OperationLogModel.get_logs(
operation_type, operator, start_date, end_date, page_size, offset
operation_type, operator, start_date, end_date, keyword, page_size, offset
)
return {
"logs": logs,