diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue
index 03bc2b5c89..1d6e5b1bdb 100644
--- a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue
+++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue
@@ -2,122 +2,122 @@
@@ -179,12 +179,12 @@ export default {
},
setBodyType() {
if (
- this.response &&
- this.response.responseResult &&
- this.response.responseResult.headers &&
- this.response.responseResult.headers.indexOf(
- "Content-Type: application/json"
- ) > 0
+ this.response &&
+ this.response.responseResult &&
+ this.response.responseResult.headers &&
+ this.response.responseResult.headers.indexOf(
+ "Content-Type: application/json"
+ ) > 0
) {
this.mode = BODY_FORMAT.JSON;
this.$nextTick(() => {
@@ -222,20 +222,20 @@ export default {
this.response.responseResult.vars = "";
}
this.reqMessages =
- this.$t("api_test.request.address") +
- ":\n" +
- this.response.url +
- "\n" +
- this.$t("api_test.scenario.headers") +
- ":\n" +
- this.response.headers +
- "\n" +
- "Cookie:\n" +
- this.response.cookies +
- "\n" +
- "Body:" +
- "\n" +
- this.response.body;
+ this.$t("api_test.request.address") +
+ ":\n" +
+ this.response.url +
+ "\n" +
+ this.$t("api_test.scenario.headers") +
+ ":\n" +
+ this.response.headers +
+ "\n" +
+ "Cookie:\n" +
+ this.response.cookies +
+ "\n" +
+ "Body:" +
+ "\n" +
+ this.response.body;
}
},
},
@@ -246,15 +246,15 @@ export default {
computed: {
isSqlType() {
return (
- this.currentProtocol === "SQL" &&
- this.response.responseResult.responseCode === "200" &&
- this.mode === "table"
+ this.currentProtocol === "SQL" &&
+ this.response.responseResult['responseCode'] === "200" &&
+ this.mode === "table"
);
},
responseResult() {
return this.response && this.response.responseResult
- ? this.response.responseResult
- : {};
+ ? this.response.responseResult
+ : {};
},
},
};
@@ -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 {
diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue
index 8fe2f4738d..9713e5e152 100644
--- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue
+++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue
@@ -1,21 +1,21 @@
@@ -24,30 +24,30 @@
-
+
@@ -61,9 +61,9 @@
@@ -150,30 +150,30 @@ 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) {
if (this.isErrorReport) {
this.loading = true;
getSharePlanApiErrorReportCase(this.shareId, this.planId).then(
- (r) => {
- this.loading = false;
- this.apiCases = r.data;
- }
+ (r) => {
+ this.loading = false;
+ this.apiCases = r.data;
+ }
);
} else if (this.isUnExecute) {
this.loading = true;
@@ -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 {