Fix cutover create-task form inputs and clarify steps.

Avoid nested labels so name and mapping controls work; separate name, collect tasks, and optional baseline/mapping.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-18 17:18:21 +08:00
parent 335c3fcbeb
commit f3a8f80822
3 changed files with 200 additions and 78 deletions

View file

@ -453,9 +453,23 @@ const en = {
hintPort:
"Metric focus: port status (interface_brief / admin·phy·prot). Baseline → pick ports → evaluate board.",
create: "Create task",
createHint: "Pick old/new business-monitor tasks; optional port mapping and baseline batches.",
createHint: "Name the task and bind old/new business-monitor collect tasks. Mapping and baselines can be set later.",
createProject: "Create task",
projectName: "Task name",
projectNamePh: "e.g. CN1/CN2 night-1 cutover",
sectionName: "1. Task name",
sectionTasks: "2. Bind collect tasks (required)",
sectionTasksHint: "Pick the old-device and new-device business-monitor tasks.",
sectionOptional: "3. Port mapping & baselines (optional)",
sectionOptionalHint: "Skip for now if needed; set later under Baseline. Batches load after a collect task is chosen.",
sectionPair: "Bound collect tasks",
sectionPairHint: "Collect tasks are fixed at create time; adjust mapping and baselines here.",
sectionBaseline: "Baseline batches",
sectionBaselineHint: "Old baseline feeds the expected-port picker; new baseline is optional.",
optionalNone: "None",
portMappingHint: "From Business compare port mappings; leave empty if none yet.",
baselineNeedTask: "Select the matching collect task first",
baselinePickHint: "Choose from that task’s collect batches",
oldTask: "Old-device collect task",
newTask: "New-device collect task",
portMapping: "Port mapping",

View file

@ -450,9 +450,23 @@ const zh = {
hint: "与业务对比独立:相对基线漂移 + 本批预期 + 老/新双端判定。复用采集任务与端口映射。",
hintPort: "当前监控项:端口状态(interface_brief / admin·phy·prot)。选基线 → 勾选本批端口 → 判定看板。",
create: "创建任务",
createHint: "选择老/新设备的业务监控任务,可选端口映射与基线批次。",
createHint: "先填任务名并绑定老/新业务监控采集任务;映射与基线可稍后在详情里补。",
createProject: "创建任务",
projectName: "任务名称",
projectNamePh: "例如:CN1/CN2 第1夜割接",
sectionName: "1. 任务名称",
sectionTasks: "2. 绑定采集任务(必填)",
sectionTasksHint: "分别选择老设备、新设备上的业务监控任务;两侧不能为空。",
sectionOptional: "3. 端口映射与基线(可选)",
sectionOptionalHint: "可先跳过,创建后再到「基线配置」里设置。选了采集任务后才会加载对应批次。",
sectionPair: "已绑定采集任务",
sectionPairHint: "采集任务在创建时绑定;此处只调整映射与基线。",
sectionBaseline: "基线批次",
sectionBaselineHint: "老侧基线用于列出本批预期端口;新侧基线可选。",
optionalNone: "不选",
portMappingHint: "来自「业务对比」中的端口映射;没有可先不选。",
baselineNeedTask: "请先选择对应采集任务",
baselinePickHint: "从该任务的历史采集批次中选择",
oldTask: "老设备采集任务",
newTask: "新设备采集任务",
portMapping: "端口映射",