fix(测试跟踪): 修复UI 用例统计分析-未执行和失败tab页未显示数据且点击执行结果未显示报告

--bug=1018848 --user=刘瑶 【测试跟踪】报告-UI 用例统计分析-未执行和失败tab页未显示数据且点击执行结果未显示报告 https://www.tapd.cn/55049933/s/1277418
This commit is contained in:
nathan.liu 2022-10-26 00:41:17 +08:00 committed by nathanliu2022
parent b729000306
commit 640b47805a
2 changed files with 17 additions and 11 deletions

View File

@ -81,6 +81,9 @@ export default {
this.stepCharData = stepCharData;
},
getDataByStatus(status) {
if(status === "STOPPED"){
status = "ERROR";
}
let tmp = this.caseDataMap.get(status);
if (!tmp) {
tmp = this.caseDataMap.get('Prepare');

View File

@ -156,17 +156,20 @@ export default {
},
rowClick(row) {
this.showResponse = false;
if (this.isTemplate) {
if (row.response) {
this.showResponse = true;
this.response = row.response;
}
} else {
if (row.reportId && row.lastResult !== "Running" && row.lastResult !== "Waiting") {
this.showResponse = true;
this.reportId = row.reportId;
}
}
this.$nextTick(()=>{
if (this.isTemplate) {
if (row.response) {
this.showResponse = true;
this.response = row.response;
}
} else {
if (row.reportId && row.lastResult !== "Running" && row.lastResult !== "Waiting") {
this.showResponse = true;
this.reportId = row.reportId;
console.log(this.isTemplate);
}
}
})
}
}
}