Add biz-state schedule UI; empty port map ignores iface and lists unchanged diffs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-17 18:39:33 +08:00
parent ea6e0041c1
commit 29b08f9807
6 changed files with 148 additions and 19 deletions

View file

@ -191,6 +191,11 @@ const en = {
paused: "Paused",
collecting: "Collecting",
detail: "Details",
interval: "Interval (sec)",
retention: "Keep batches",
saveSchedule: "Save schedule",
scheduleSaved: "Schedule saved",
colInterval: "Interval",
profiles: "Monitor items",
enable: "On",
command: "Command template",
@ -260,14 +265,16 @@ const en = {
presenceShort: "presence",
modeFields: "Mode: compare selected field values",
modePresence: "Mode: presence-only (entry set match)",
mapping: "Port mapping",
mapping: "Port mapping (optional)",
newMapping: "New mapping…",
mapName: "Mapping name",
saveMapping: "Save mapping",
validateMapping: "Validate",
validateNeed: "Select mapping and before/after batches first",
mapHint: "before_if,after_if one pair per line",
mapHint:
"Optional. Leave empty to ignore port renames (match on non-interface keys). Or one before_if,after_if pair per line",
mappingSaved: "Mapping saved",
mappingOptionalHint: "No port map: ignore local port changes; match on non-interface keys.",
createJob: "Create compare job",
defaultJobName: "Cutover compare",
jobName: "Name",

View file

@ -191,6 +191,11 @@ const zh = {
paused: "已暂停",
collecting: "采集中",
detail: "详情",
interval: "采集周期(秒)",
retention: "保留批次数",
saveSchedule: "保存周期",
scheduleSaved: "周期配置已保存",
colInterval: "周期",
profiles: "监控项",
enable: "启用",
command: "命令模板",
@ -260,14 +265,15 @@ const zh = {
presenceShort: "仅条目",
modeFields: "模式:按比对字段检查值",
modePresence: "模式:仅校验前后条目一致(不比具体值)",
mapping: "端口映射",
mapping: "端口映射(可选)",
newMapping: "新建映射…",
mapName: "映射名称",
saveMapping: "保存映射",
validateMapping: "校验映射",
validateNeed: "请先选择映射与前后批次",
mapHint: "before_if,after_if 每行一对",
mapHint: "可选。不填表示忽略端口变化(同设备比对按非接口 Key 对齐)。填写时每行 before_if,after_if",
mappingSaved: "映射已保存",
mappingOptionalHint: "未填端口映射:忽略本端端口变化,仅按邻居等非接口 Key 对齐。",
createJob: "建立比对任务",
defaultJobName: "割接比对",
jobName: "名称",