From 928f7bcf7cf0aa7ccd3c046f5b5176917fe156f3 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 11 Dec 2020 14:36:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E5=90=8E=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/common/head/SearchList.vue | 10 ++++++---- frontend/src/common/js/utils.js | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/common/head/SearchList.vue b/frontend/src/business/components/common/head/SearchList.vue index 9981df1e84..b6f3c3ba2c 100644 --- a/frontend/src/business/components/common/head/SearchList.vue +++ b/frontend/src/business/components/common/head/SearchList.vue @@ -16,7 +16,7 @@ @@ -26,7 +26,7 @@ @@ -222,7 +230,7 @@ } .ms-query { - background: #7F7F7F; + background: #783887; color: white; height: 18px; border-radius: 42%; @@ -234,4 +242,9 @@ height: 18px; border-radius: 42%; } + + .request-tabs { + margin: 20px; + min-height: 200px; + } diff --git a/frontend/src/business/components/common/components/MsCodeEdit.vue b/frontend/src/business/components/common/components/MsCodeEdit.vue index 2f443ee120..03b0e50371 100644 --- a/frontend/src/business/components/common/components/MsCodeEdit.vue +++ b/frontend/src/business/components/common/components/MsCodeEdit.vue @@ -54,6 +54,9 @@ } }, mounted() { + if (!this.data) { + this.formatData = ""; + } this.format(); }, watch: { @@ -81,20 +84,20 @@ }, format() { if (this.enableFormat) { - switch (this.mode) { - case 'json': - this.formatData = formatJson(this.data); - break; - case 'html': - this.formatData = toDiffableHtml(this.data); - break; - case 'xml': - this.formatData = formatXml(this.data); - break; - default: - if (this.data) { + if (this.data) { + switch (this.mode) { + case 'json': + this.formatData = formatJson(this.data); + break; + case 'html': + this.formatData = toDiffableHtml(this.data); + break; + case 'xml': + this.formatData = formatXml(this.data); + break; + default: this.formatData = this.data; - } + } } } else { this.formatData = this.data; From 934db9d33cd0209fd75b9e002a6db3ec1cb5e020 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 11 Dec 2020 15:18:49 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix():=20=E6=8C=89=E9=92=AE=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E9=A2=9C=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/http/ApiHttpRequestForm.vue | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue index d91e138733..9794ab2617 100644 --- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue @@ -75,13 +75,13 @@ - +{{$t('api_test.definition.request.pre_script')}} + +{{$t('api_test.definition.request.pre_script')}}
- +{{$t('api_test.definition.request.post_script')}} + +{{$t('api_test.definition.request.post_script')}}
- +{{$t('api_test.definition.request.assertions_rule')}} + +{{$t('api_test.definition.request.assertions_rule')}}
- +{{$t('api_test.definition.request.extract_param')}} + +{{$t('api_test.definition.request.extract_param')}}
@@ -247,4 +247,29 @@ margin: 20px; min-height: 200px; } + + .ms-left-cell .el-button:nth-of-type(1) { + color: #B8741A; + background-color: #F9F1EA; + border: #F9F1EA; + } + + .ms-left-cell .el-button:nth-of-type(2) { + color: #783887; + background-color: #F2ECF3; + border: #F2ECF3; + } + + .ms-left-cell .el-button:nth-of-type(3) { + color: #A30014; + background-color: #F7E6E9; + border: #F7E6E9; + } + + .ms-left-cell .el-button:nth-of-type(4) { + color: #015478; + background-color: #E6EEF2; + border: #E6EEF2; + } +