Commit b0b09f46 authored by Data Governance Dev's avatar Data Governance Dev

feat(web3): RuleModal 新建规则时「跳过空值」默认勾选

- src/components/RuleModal.vue:248 addRule() 把 skip_null 默认值 false→true
- 编辑/复制老规则不走 addRule(),skip_null 仍按 r.skip_null 实际值显示
- 保存链路 onSave 仍透传 !!rule.skip_null,不强制覆盖存量数据

业务上「空值不计入不合规」更符合直觉,省得用户每加一条新规则手动勾。
parent 8d71b57f
...@@ -245,7 +245,7 @@ function addRule() { ...@@ -245,7 +245,7 @@ function addRule() {
rule_type: DEFAULT_RULE_TYPE, rule_type: DEFAULT_RULE_TYPE,
regex: '', regex: '',
code: '', code: '',
skip_null: false, // 2026-08-21:跳过空值开关,默认关 skip_null: true, // 2026-08-24:跳过空值开关,默认勾选
testVal: '', testVal: '',
testResult: null, testResult: null,
}) })
......
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