fix(测试跟踪): 首页遗留缺陷统计中测试计划跳转问题
--bug=1010438 --user=lyh 【测试跟踪】-首页-点击遗留缺陷统计和过去7天测试计划失败用例TOP 10对应的记录-未进行跳转到对应页面 https://www.tapd.cn/55049933/s/1106672
This commit is contained in:
parent
a539622151
commit
3936c62ede
|
@ -13,4 +13,5 @@ public class TestPlanBugCount {
|
||||||
private int caseSize;
|
private int caseSize;
|
||||||
private int bugSize;
|
private int bugSize;
|
||||||
private String passRage;
|
private String passRage;
|
||||||
|
private String planId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,6 +131,7 @@ public class TrackService {
|
||||||
testPlanBug.setPlanName(plan.getName());
|
testPlanBug.setPlanName(plan.getName());
|
||||||
testPlanBug.setCreateTime(plan.getCreateTime());
|
testPlanBug.setCreateTime(plan.getCreateTime());
|
||||||
testPlanBug.setStatus(plan.getStatus());
|
testPlanBug.setStatus(plan.getStatus());
|
||||||
|
testPlanBug.setPlanId(plan.getId());
|
||||||
|
|
||||||
int planCaseSize = getPlanCaseSize(plan.getId());
|
int planCaseSize = getPlanCaseSize(plan.getId());
|
||||||
testPlanBug.setCaseSize(planCaseSize);
|
testPlanBug.setCaseSize(planCaseSize);
|
||||||
|
|
|
@ -22,7 +22,13 @@
|
||||||
<el-table-column prop="index" :label="$t('test_track.home.serial_number')"
|
<el-table-column prop="index" :label="$t('test_track.home.serial_number')"
|
||||||
width="60" show-overflow-tooltip/>
|
width="60" show-overflow-tooltip/>
|
||||||
<el-table-column prop="planName" :label="$t('test_track.home.test_plan_name')"
|
<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>
|
<el-table-column prop="createTime" :label="$t('commons.create_time')" width="160" show-overflow-tooltip>
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||||
|
@ -77,6 +83,12 @@ export default {
|
||||||
this.bugTotalSize = data.bugTotalSize;
|
this.bugTotalSize = data.bugTotalSize;
|
||||||
this.rage = data.rage;
|
this.rage = data.rage;
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
goPlan(id) {
|
||||||
|
if (!id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$router.push('/track/plan/view/' + id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
Loading…
Reference in New Issue