fix(测试跟踪): 修复测试跟踪7天失败用例未展示测试计划的缺陷

--bug=1015086 --user=宋天阳 【测试跟踪】测试跟踪首页-过去7天测试计划失败用例TOP10,所属测试计划没显示
https://www.tapd.cn/55049933/s/1205557
This commit is contained in:
song-tianyang 2022-07-20 16:21:08 +08:00 committed by 建国
parent 1abfd37ebe
commit 0d9caf1b65
3 changed files with 8 additions and 7 deletions

View File

@ -35,10 +35,9 @@
</el-table-column> </el-table-column>
<el-table-column prop="testPlan" :label="$t('api_test.home_page.failed_case_list.table_coloum.test_plan')"> <el-table-column prop="testPlan" :label="$t('api_test.home_page.failed_case_list.table_coloum.test_plan')">
<template v-slot:default="{row}"> <template v-slot:default="{row}">
<div v-for="(testPlan, index) in row.testPlanDTOList" :key="index"> <div>
<el-link type="info" @click="redirect('testPlanEdit',testPlan.id)" <el-link type="info" @click="redirect('testPlanEdit',row.testPlanId)">
v-if="testPlan.name === row.testPlan || row.caseType !== 'apiCase'"> {{ row.testPlan }}
{{ testPlan.name }};
</el-link> </el-link>
</div> </div>
</template> </template>

View File

@ -1,5 +1,6 @@
<template> <template>
<el-card class="table-card" v-loading="result.loading" body-style="padding:16px 5px 16px 5px;" style="height: 350px;margin-top: 5px"> <el-card class="table-card" v-loading="result.loading" body-style="padding:16px 5px 16px 5px;"
style="margin-top: 5px">
<div slot="header"> <div slot="header">
<span class="title"> <span class="title">
{{ $t('test_track.home.case_count') }} {{ $t('test_track.home.case_count') }}
@ -144,7 +145,7 @@ export default {
} }
.detail-container { .detail-container {
margin-top: 20px margin-top: 30px;
} }
.default-property { .default-property {

View File

@ -1,5 +1,6 @@
<template> <template>
<el-card class="table-card" v-loading="result.loading" body-style="padding:16px 5px 16px 5px;" style="height: 350px;margin-top: 5px"> <el-card class="table-card" v-loading="result.loading" body-style="padding:16px 5px 16px 5px;"
style="margin-top: 5px">
<div slot="header"> <div slot="header">
<span class="title"> <span class="title">
{{ $t('test_track.home.relevance_case') }} {{ $t('test_track.home.relevance_case') }}