fix(测试跟踪): 修复UI 用例统计分析-未执行和失败tab页未显示数据且点击执行结果未显示报告
--bug=1018848 --user=刘瑶 【测试跟踪】报告-UI 用例统计分析-未执行和失败tab页未显示数据且点击执行结果未显示报告 https://www.tapd.cn/55049933/s/1277418
This commit is contained in:
parent
b729000306
commit
640b47805a
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue