feat(biz-compare): preserve templates and refine industrial editor

This commit is contained in:
oliver 2026-10-11 06:06:20 +08:00
parent 90cf1907b4
commit 355bcfc4c0
19 changed files with 719 additions and 219 deletions

View file

@ -386,6 +386,17 @@ const en = {
templateExported: "Template exported",
templateImported: "Template imported",
templateImportInvalid: "Invalid file: need name and metrics",
templateValidationFailed: "Template validation failed; correct the indicated settings",
filterOperator: "Filter operator",
complexFiltersPreserved: "These nested filters are preserved in full. Export, edit the JSON and import it to update them.",
portPolicy: "Port change policy",
portPolicyHint: "Port mappings take priority. This policy controls whether interface identity fields participate in matching without a mapping.",
portPolicyAuto: "Automatic",
portPolicyStrict: "Interfaces must match",
portPolicyIgnore: "Allow port changes",
missingSheets: "Configured checks were removed or renamed; select the scope again",
enableCurrentSheets: "Enable all current checks",
templateUsage: "Used by {{n}} jobs",
templateImportHint: "Import/export JSON to share templates privately (no job/batch data)",
templateHint:
"Pick metrics, then set Key / interface / compare / display. Compare modes: exact, abs delta, or relative %. Display can include context-only columns. Empty compare = presence-only.",

View file

@ -386,6 +386,17 @@ const zh = {
templateExported: "模板已导出",
templateImported: "模板已导入",
templateImportInvalid: "导入文件无效:需要 name 与 metrics",
templateValidationFailed: "模板校验失败,请修正标明的配置项",
filterOperator: "过滤运算符",
complexFiltersPreserved: "该过滤规则包含复杂嵌套,已完整保留。可通过导出、修改 JSON 后重新导入来更新。",
portPolicy: "端口变化策略",
portPolicyHint: "存在端口映射时按映射匹配;此策略控制无映射时接口身份字段是否参与配对。",
portPolicyAuto: "自动判断",
portPolicyStrict: "接口必须匹配",
portPolicyIgnore: "允许端口变化",
missingSheets: "配置中的检查项已被移除或改名,请重新选择检查范围",
enableCurrentSheets: "启用当前全部检查项",
templateUsage: "已被 {{n}} 个任务引用",
templateImportHint: "导入/导出 JSON,便于私下传递模板(不含任务/批次数据)",
templateHint:
"先勾选监控项,再配置 Key / 接口 / 比对 / 展示。比对可设完全相等、绝对容差或相对偏差%;展示列可含不参与比对的上下文。不勾比对字段则只校验条目存在性。",