fix: align sentinel run row tags with check counts
This commit is contained in:
@@ -672,16 +672,18 @@ createApp({
|
||||
:key="run.id"
|
||||
class="run-row"
|
||||
:class="[severityClass(run), { selected: run.id === selectedRunId }]"
|
||||
:data-run-id="run.id"
|
||||
:data-run-error-count="runCheckErrorCount(run)"
|
||||
:data-run-warning-count="runCheckWarningCount(run)"
|
||||
:data-run-alert-count="runCheckAlertCount(run)"
|
||||
type="button"
|
||||
@click="selectRun(run)"
|
||||
>
|
||||
<span class="row-line">
|
||||
<span class="severity-line"><span class="severity-dot"></span><strong>{{ run.scenarioId || shortId(run.id) }}</strong></span>
|
||||
<span class="run-alert-tags">
|
||||
<span v-if="runCheckErrorCount(run) > 0" class="tag red" data-run-error-tag="true">错误 {{ runCheckErrorCount(run) }}</span>
|
||||
<span v-if="runCheckWarningCount(run) > 0" class="tag warning" data-run-warning-tag="true">告警 {{ runCheckWarningCount(run) }}</span>
|
||||
<span v-if="runCheckAlertCount(run) === 0" class="tag healthy">正常</span>
|
||||
</span>
|
||||
<span v-if="runCheckErrorCount(run) > 0" class="tag red" data-run-error-tag="true">错误 {{ runCheckErrorCount(run) }}</span>
|
||||
<span v-if="runCheckWarningCount(run) > 0" class="tag warning" data-run-warning-tag="true">告警 {{ runCheckWarningCount(run) }}</span>
|
||||
<span v-if="runCheckAlertCount(run) === 0" class="tag healthy">正常</span>
|
||||
</span>
|
||||
<span class="row-line muted">
|
||||
<span>{{ run.status || "-" }}</span>
|
||||
|
||||
Reference in New Issue
Block a user