fix(接口测试): 修复用例和接口调试页面的响应模块中不展示误报码的问题

--bug=1017901 --user=宋天阳 【接口测试】开启误报-执行接口case和场景后误报设置不生效
https://www.tapd.cn/55049933/s/1259945
This commit is contained in:
song-tianyang 2022-10-12 18:39:19 +08:00 committed by 建国
parent ddb58810bd
commit 1788057854
2 changed files with 11 additions and 11 deletions

View File

@ -39,9 +39,9 @@
</el-col>
<!-- 请求响应时间 -->
<el-col :span="3">
<div :style="{color: statusColor(totalStatus ? totalStatus : request.status)}">
{{ request.responseResult.responseTime }}
</div>
<div :style="{color: statusColor(totalStatus ? totalStatus : request.status)}">
{{ request.responseResult.responseTime }}
</div>
</el-col>
<el-col :span="2">
<el-tag v-if="request.testing" class="ms-test-running" size="mini">
@ -153,9 +153,9 @@ export default {
handler(n) {
if (this.request.errorCode) {
this.baseErrorCode = this.request.errorCode;
} else if (this.request.attachInfoMap && this.request.attachInfoMap.errorReportResult) {
if (this.request.attachInfoMap.errorReportResult !== "") {
this.baseErrorCode = this.request.attachInfoMap.errorReportResult;
} else if (this.request.attachInfoMap && this.request.attachInfoMap.FAKE_ERROR) {
if (this.request.attachInfoMap.FAKE_ERROR !== "") {
this.baseErrorCode = this.request.attachInfoMap.FAKE_ERROR;
}
}
},

View File

@ -9,7 +9,7 @@
placement="top">
<div
v-if="response.attachInfoMap && response.attachInfoMap.errorReportResult
v-if="response.attachInfoMap && response.attachInfoMap.FAKE_ERROR
&& response.attachInfoMap.status === 'FAKE_ERROR'" class="node-title" :class="'ms-req-error-report-result'">
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
</div>
@ -20,17 +20,17 @@
<div v-else class="node-title" :class="response && response.success ?'ms-req-success':'ms-req-error'">
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
</div>
<div v-if="response && response.attachInfoMap && response.attachInfoMap.errorReportResult">
<div v-if="response && response.attachInfoMap && response.attachInfoMap.FAKE_ERROR">
<div class="node-title ms-req-error-report-result"
v-if="response.attachInfoMap.status === 'FAKE_ERROR'" style="margin-left: 0px;padding-left: 0px">
{{ response.attachInfoMap.errorReportResult }}
{{ response.attachInfoMap.FAKE_ERROR }}
</div>
<div class="node-title ms-req-success" v-else-if="response.success"
style="margin-left: 0px;padding-left: 0px">
{{ response.attachInfoMap.errorReportResult }}
{{ response.attachInfoMap.FAKE_ERROR }}
</div>
<div class="node-title ms-req-error" v-else style="margin-left: 0px;padding-left: 0px">
{{ response.attachInfoMap.errorReportResult }}
{{ response.attachInfoMap.FAKE_ERROR }}
</div>
</div>
</el-col>