yeg
2026-09-01 b295894a8a476fed126420656edfdcb717320739
按当前循环展示检测柜工步

实时方案仅展示设备当前循环工步,循环统计行显示当前循环号,计划总循环数保留在顶部。
2个文件已修改
4 ■■■■■ 已修改文件
src/views/TestConsole.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
tests/test-ticket23-console-step-regression.test.mjs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/TestConsole.vue
@@ -212,7 +212,7 @@
    no: row.stepNo,
    name: row.stepName,
    time: row.rowType === 'CYCLE' ? `起始工步 ${row.stepNo || '-'}` : row.rowType === 'END' ? '-' : formatDuration(row.durationSeconds),
    voltage: row.rowType === 'CYCLE' ? `循环次数 ${row.cycleCount || '-'}` : row.voltageV == null ? '-' : `${Number(row.voltageV).toFixed(4)} V`,
    voltage: row.rowType === 'CYCLE' ? `当前循环 ${row.cycleCount || '-'}` : row.voltageV == null ? '-' : `${Number(row.voltageV).toFixed(4)} V`,
    state: (row.executionStatus || '待执行') as PlanDisplayStep['state'],
  }))
  return []
tests/test-ticket23-console-step-regression.test.mjs
@@ -8,6 +8,8 @@
assert.match(view, /testPlan\?\.rows/)
assert.match(view, /row\.rowType === 'CYCLE'/)
assert.match(view, /当前循环/)
assert.match(view, /`当前循环 \$\{row\.cycleCount \|\| '-'\}`/)
assert.match(view, /计划 \{\{ plannedCycleCount \|\| '-' \}\}/)
assert.doesNotMatch(view, /<strong>工步数据<\/strong><span>STEP SUMMARY<\/span>/)
assert.doesNotMatch(view, /visibleStepRows/)
assert.match(view, /:logic-step-mappings="backendDetail\.logicStepMappings"/)