fix: 测试计划进度统计有误

This commit is contained in:
chenjianxing 2021-05-13 11:31:11 +08:00 committed by jianxing
parent 4f937f9d11
commit 06720a4283
2 changed files with 5 additions and 7 deletions

View File

@ -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());

View File

@ -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)
},