feat(测试计划): 控制测试计划列表通过率阈值展示

This commit is contained in:
xinxin.wu 2024-07-12 14:25:26 +08:00 committed by 刘瑞斌
parent 981646dc4b
commit c6d3ddfe3d
3 changed files with 10 additions and 3 deletions

View File

@ -167,7 +167,7 @@
<template #passRate="{ record }">
<div class="mr-[8px] w-[100px]">
<StatusProgress :status-detail="defaultCountDetailMap[record.id]" height="5px" />
<StatusProgress :status-detail="defaultCountDetailMap[record.id]" height="5px" :type="record.type" />
</div>
<div class="text-[var(--color-text-1)]">
{{ `${defaultCountDetailMap[record.id]?.passRate ? defaultCountDetailMap[record.id].passRate : '-'}%` }}

View File

@ -2,7 +2,7 @@
<MsColorLine :color-data="colorData" :height="props.height" :radius="props.radius">
<template #popoverContent>
<table class="min-w-[144px]">
<tr>
<tr v-if="props.type === testPlanTypeEnum.TEST_PLAN">
<td class="popover-label-td">
<div>{{ t('testPlan.testPlanIndex.threshold') }}</div>
</td>
@ -73,10 +73,12 @@
import { useI18n } from '@/hooks/useI18n';
import type { PassRateCountDetail } from '@/models/testPlan/testPlan';
import { testPlanTypeEnum } from '@/enums/testPlanEnum';
const props = defineProps<{
statusDetail: PassRateCountDetail | undefined;
height: string;
type: testPlanTypeEnum;
radius?: string;
}>();
const { t } = useI18n();

View File

@ -86,7 +86,12 @@
</span>
</div>
</div>
<StatusProgress :status-detail="countDetail" height="8px" radius="var(--border-radius-mini)" />
<StatusProgress
:type="testPlanTypeEnum.TEST_PLAN"
:status-detail="countDetail"
height="8px"
radius="var(--border-radius-mini)"
/>
</div>
</template>
<MsTab