fix: 测试计划进度统计有误
This commit is contained in:
parent
a8241727eb
commit
50094a6890
|
@ -841,8 +841,10 @@ public class TestPlanService {
|
|||
for (IssuesDao i : issue) {
|
||||
i.setModel(testCase.getNodePath());
|
||||
i.setProjectName(testCase.getProjectName());
|
||||
String des = i.getDescription().replaceAll("<p>", "").replaceAll("</p>", "");
|
||||
i.setDescription(des);
|
||||
if (StringUtils.isNotBlank(i.getDescription())) {
|
||||
String des = i.getDescription().replaceAll("<p>", "").replaceAll("</p>", "");
|
||||
i.setDescription(des);
|
||||
}
|
||||
if (i.getLastmodify() == null || i.getLastmodify() == "") {
|
||||
if (i.getReporter() != null || i.getReporter() != "") {
|
||||
i.setLastmodify(i.getReporter());
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
show-overflow-tooltip
|
||||
:key="index">
|
||||
<template v-slot:default="scope">
|
||||
<el-progress :percentage="calPassRate(scope)"></el-progress>
|
||||
<el-progress :percentage="scope.row.testRate"></el-progress>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -296,10 +296,6 @@ export default {
|
|||
inite() {
|
||||
this.initTableData()
|
||||
},
|
||||
calPassRate(scope) {
|
||||
let passRate = scope.row.passRate.substring(0, scope.row.passRate.length - 1);
|
||||
return Number.parseInt(passRate, 10);
|
||||
},
|
||||
customHeader() {
|
||||
this.$refs.headerCustom.open(this.tableLabel)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue