fix(测试跟踪): 首页遗留缺陷统计中测试计划跳转问题

--bug=1010438 --user=lyh
【测试跟踪】-首页-点击遗留缺陷统计和过去7天测试计划失败用例TOP
10对应的记录-未进行跳转到对应页面
https://www.tapd.cn/55049933/s/1106672
This commit is contained in:
shiziyuan9527 2022-02-21 15:59:19 +08:00 committed by shiziyuan9527
parent a539622151
commit 3936c62ede
3 changed files with 15 additions and 1 deletions

View File

@ -13,4 +13,5 @@ public class TestPlanBugCount {
private int caseSize;
private int bugSize;
private String passRage;
private String planId;
}

View File

@ -131,6 +131,7 @@ public class TrackService {
testPlanBug.setPlanName(plan.getName());
testPlanBug.setCreateTime(plan.getCreateTime());
testPlanBug.setStatus(plan.getStatus());
testPlanBug.setPlanId(plan.getId());
int planCaseSize = getPlanCaseSize(plan.getId());
testPlanBug.setCaseSize(planCaseSize);

View File

@ -22,7 +22,13 @@
<el-table-column prop="index" :label="$t('test_track.home.serial_number')"
width="60" show-overflow-tooltip/>
<el-table-column prop="planName" :label="$t('test_track.home.test_plan_name')"
width="130" show-overflow-tooltip/>
width="130" show-overflow-tooltip>
<template v-slot:default="scope">
<el-link type="info" @click="goPlan(scope.row.planId)">
{{ scope.row.planName }}
</el-link>
</template>
</el-table-column>
<el-table-column prop="createTime" :label="$t('commons.create_time')" width="160" show-overflow-tooltip>
<template v-slot:default="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
@ -77,6 +83,12 @@ export default {
this.bugTotalSize = data.bugTotalSize;
this.rage = data.rage;
})
},
goPlan(id) {
if (!id) {
return;
}
this.$router.push('/track/plan/view/' + id);
}
},
created() {