fix(测试跟踪): 测试计划接口Case请求响应体内容展示问题

--bug=1028193 --user=宋昌昌 【测试跟踪】github#25930,测试计划报告详情,打开某一个接口用例,查看接口请求内容,请求内容很长的时候,展示不全。 https://www.tapd.cn/55049933/s/1404778
This commit is contained in:
song-cc-rock 2023-08-17 10:57:57 +08:00 committed by 刘瑞斌
parent d9530350f6
commit d0e50060d1
2 changed files with 137 additions and 141 deletions

View File

@ -100,7 +100,7 @@
</el-tab-pane>
<el-tab-pane
v-if="activeName == 'body'"
v-if="activeName === 'body'"
:disabled="true"
name="mode"
class="pane cookie"
@ -247,7 +247,7 @@ export default {
isSqlType() {
return (
this.currentProtocol === "SQL" &&
this.response.responseResult.responseCode === "200" &&
this.response.responseResult['responseCode'] === "200" &&
this.mode === "table"
);
},
@ -280,7 +280,7 @@ export default {
.text-container .pane {
background-color: #f5f5f5;
padding: 1px 0;
height: 250px;
height: 400px;
overflow-y: auto;
}
@ -289,7 +289,7 @@ export default {
}
:deep(.el-tabs__nav-wrap::after) {
height: 0px;
height: 0;
}
.ms-div {

View File

@ -47,7 +47,7 @@
prop="lastResult"
>
<template v-slot:default="scope">
<ms-test-plan-api-status :status="scope.row.execResult" />
<ms-test-plan-api-status :status="scope.row['execResult']"/>
</template>
</ms-table-column>
</ms-table>
@ -150,20 +150,20 @@ export default {
getScenarioApiCase() {
if (this.isTemplate || this.isDb) {
if (this.isErrorReport) {
this.apiCases = this.report.errorReportCases
? this.report.errorReportCases
this.apiCases = this.report['errorReportCases']
? this.report['errorReportCases']
: [];
} else if (this.isUnExecute) {
this.apiCases = this.report.unExecuteCases
? this.report.unExecuteCases
this.apiCases = this.report['unExecuteCases']
? this.report['unExecuteCases']
: [];
} else if (this.isAll) {
this.apiCases = this.report.apiAllCases
? this.report.apiAllCases
this.apiCases = this.report['apiAllCases']
? this.report['apiAllCases']
: [];
} else {
this.apiCases = this.report.apiFailureCases
? this.report.apiFailureCases
this.apiCases = this.report['apiFailureCases']
? this.report['apiFailureCases']
: [];
}
} else if (this.isShare) {
@ -308,14 +308,10 @@ export default {
height: 550px;
}
:deep(.text-container .pane) {
height: 550px !important;
}
.ms-aside-container {
border: 0px;
border: 0;
height: 550px;
padding: 10px 0px 0px 10px;
padding: 10px 0 0 10px;
}
.ms-main-container {