fix(测试跟踪): 修复测试跟踪列表的通过率展示没有百分号的问题

https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001025764
This commit is contained in:
song-tianyang 2023-04-24 18:33:14 +08:00 committed by 建国
parent ab34898cdc
commit dffd2c266f
1 changed files with 4 additions and 4 deletions

View File

@ -766,9 +766,9 @@ export default {
});
if (metricData) {
this.$set(item, "isMetricLoadOver", true);
this.$set(item, "passRate", metricData.passRate);
this.$set(item, "passRate", metricData.passRate + "%");
this.$set(item, "testRate", metricData.testRate);
this.$set(item, "passed", metricData.passed + "%");
this.$set(item, "passed", metricData.passed);
this.$set(item, "tested", metricData.tested);
this.$set(item, "total", metricData.total);
this.$set(
@ -837,9 +837,9 @@ export default {
this.$set(item, "principals", []);
this.$set(item, "follows", []);
this.$set(item, "showFollow", false);
this.$set(item, "passRate", 0);
this.$set(item, "passRate", 0 + "%");
this.$set(item, "testRate", 0);
this.$set(item, "passed", 0 + "%");
this.$set(item, "passed", 0);
this.$set(item, "tested", 0);
this.$set(item, "total", 0);
this.$set(item, "testPlanTestCaseCount", 0);