feat(测试计划): 控制测试计划列表通过率阈值展示
This commit is contained in:
parent
981646dc4b
commit
c6d3ddfe3d
|
@ -167,7 +167,7 @@
|
||||||
|
|
||||||
<template #passRate="{ record }">
|
<template #passRate="{ record }">
|
||||||
<div class="mr-[8px] w-[100px]">
|
<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>
|
||||||
<div class="text-[var(--color-text-1)]">
|
<div class="text-[var(--color-text-1)]">
|
||||||
{{ `${defaultCountDetailMap[record.id]?.passRate ? defaultCountDetailMap[record.id].passRate : '-'}%` }}
|
{{ `${defaultCountDetailMap[record.id]?.passRate ? defaultCountDetailMap[record.id].passRate : '-'}%` }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<MsColorLine :color-data="colorData" :height="props.height" :radius="props.radius">
|
<MsColorLine :color-data="colorData" :height="props.height" :radius="props.radius">
|
||||||
<template #popoverContent>
|
<template #popoverContent>
|
||||||
<table class="min-w-[144px]">
|
<table class="min-w-[144px]">
|
||||||
<tr>
|
<tr v-if="props.type === testPlanTypeEnum.TEST_PLAN">
|
||||||
<td class="popover-label-td">
|
<td class="popover-label-td">
|
||||||
<div>{{ t('testPlan.testPlanIndex.threshold') }}</div>
|
<div>{{ t('testPlan.testPlanIndex.threshold') }}</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -73,10 +73,12 @@
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
|
|
||||||
import type { PassRateCountDetail } from '@/models/testPlan/testPlan';
|
import type { PassRateCountDetail } from '@/models/testPlan/testPlan';
|
||||||
|
import { testPlanTypeEnum } from '@/enums/testPlanEnum';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
statusDetail: PassRateCountDetail | undefined;
|
statusDetail: PassRateCountDetail | undefined;
|
||||||
height: string;
|
height: string;
|
||||||
|
type: testPlanTypeEnum;
|
||||||
radius?: string;
|
radius?: string;
|
||||||
}>();
|
}>();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
|
@ -86,7 +86,12 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<MsTab
|
<MsTab
|
||||||
|
|
Loading…
Reference in New Issue