diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue index e6ed41d3dd..6225cf3cf7 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue @@ -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'); diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue index 71faeedd91..b2f90512a7 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue @@ -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); + } + } + }) } } }