fix: 暴露CaseRun硬件页稳定状态

This commit is contained in:
root
2026-07-26 10:50:32 +02:00
parent 09dfecc91b
commit a985b5e181
2 changed files with 2 additions and 2 deletions
@@ -159,7 +159,7 @@ function toolDetail(row: CaseRunReviewTraceRow) {
<template>
<section class="review-pane" aria-label="CaseRun 审查工作区">
<header class="review-tabs" role="tablist" aria-label="运行审查标签">
<button v-for="tab in tabs" :key="tab.id" type="button" role="tab" :aria-selected="activeTab === tab.id" @click="activeTab = tab.id">
<button v-for="tab in tabs" :key="tab.id" :data-tab="tab.id" type="button" role="tab" :aria-selected="activeTab === tab.id" @click="activeTab = tab.id">
<component :is="tab.icon" :size="15" aria-hidden="true" />
<span class="review-tab-label">{{ tab.label }}</span>
<span v-if="tab.id === 'trace'" class="review-tab-count">{{ trace?.returnedRowCount ?? 0 }}</span>
@@ -212,7 +212,7 @@ function artifactSize(bytes?: number): string { return Number.isFinite(bytes) ?
</div>
<template v-if="sidebarTab === 'runs'">
<form class="run-lookup" aria-label=" runId 加载运行" @submit.prevent="openRun()"><Search :size="14" aria-hidden="true" /><input v-model="runLookup" type="search" autocomplete="off" placeholder="输入 runId" aria-label="输入 runId"><button type="submit" :disabled="!runLookup.trim()">加载</button></form>
<div class="run-list">
<div class="run-list" :data-loading="caserun.runsLoading ? 'true' : 'false'">
<LoadingState v-if="caserun.runsLoading && !caserun.runs.length" class="region-loading" label="正在加载最近运行" compact />
<button v-for="item in caserun.runs" :key="item.runId" class="run-row" :data-selected="item.runId === runId" type="button" @click="openRun(item.runId)">
<span><strong>{{ item.caseId }}</strong><i :class="historyStatusClass(item)">{{ statusLabel(item.status) }}</i></span>