按当前循环展示检测柜工步
实时方案仅展示设备当前循环工步,循环统计行显示当前循环号,计划总循环数保留在顶部。
| | |
| | | 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 [] |
| | |
| | | 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"/) |