fix(web-admin): 补齐捐赠查看操作日志接线并保留审核动作语义

修复 DonationViewDialog 缺失的操作日志状态与加载调用,清理误插入的重置语句,并避免显式 audit 动作被状态映射覆盖。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-11-05 12:15:10 +08:00
1 parent 4a12d92631
commit ac9db561a4
4 files changed
+92 -7

No files matched your search

@@ -116,7 +116,9 @@ def test_record_cell_update_appends_before_after_and_maps_void_action():
def test_resolve_action_from_status_keeps_default_when_unchanged():
from app.crud.protocol_operation_log import (
ACTION_AUDIT,
ACTION_UPDATE,
ACTION_VOID,
resolve_action_from_status,
)
@@ -128,3 +130,19 @@ def test_resolve_action_from_status_keeps_default_when_unchanged():
)
== ACTION_UPDATE
)
assert (
resolve_action_from_status(
default_action=ACTION_UPDATE,
before_status="sxz",
after_status="yzf",
)
== ACTION_VOID
)
assert (
resolve_action_from_status(
default_action=ACTION_AUDIT,
before_status="dsx",
after_status="sxz",
)
== ACTION_AUDIT
)