Commit 57c088a1 authored by Data Governance Dev's avatar Data Governance Dev

fix(backend): step9 SummarySpec template 改双花括号与前端 renderSummary 匹配

- 现象:「自定义规则命中明细」tab 顶部 alert 显示「执行 **{total}** 条规则...」花括号没替换
- 根因:step9 template 用单花括号 {total},前端 renderSummary 正则只匹配 {{ var }} 双花括号
- 修复:template 改 {{total}} 双花括号(与其他 step 风格一致:step4 / step5 / step6 / step7)
- 修后:执行 **1** 条规则,有效 **1** 条,命中 **0** 行(...)
parent 3c2ac416
...@@ -284,9 +284,9 @@ def _build_result( ...@@ -284,9 +284,9 @@ def _build_result(
summary=SummarySpec( summary=SummarySpec(
type="info", type="info",
template=( template=(
"执行 **{total}** 条规则," "执行 **{{total}}** 条规则,"
"有效 **{executed}** 条," "有效 **{{executed}}** 条,"
"命中 **{matched}** 行(每条 SQL 命中行 = 一条 entry,不做 distinct)。" "命中 **{{matched}}** 行(每条 SQL 命中行 = 一条 entry,不做 distinct)。"
), ),
vars={ vars={
"total": "this.summary.total_rules", "total": "this.summary.total_rules",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment