From a826da059a3cd825d77ed5495c8a15e7d938e360 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 7 Dec 2022 11:21:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E4=BD=93=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=A0=BC=E5=BC=8F=E5=8C=96=E8=A7=A3=E6=9E=90=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020653 --user=宋天阳 【接口测试】接口高级设置问题汇总 {#_orginal_url#} --- .../document/components/ApiResponseInfo.vue | 42 +++++++++---------- .../home/components/chart/CountChart.vue | 1 + 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/document/components/ApiResponseInfo.vue b/api-test/frontend/src/business/definition/components/document/components/ApiResponseInfo.vue index bcccadec5d..4c50322bb2 100644 --- a/api-test/frontend/src/business/definition/components/document/components/ApiResponseInfo.vue +++ b/api-test/frontend/src/business/definition/components/document/components/ApiResponseInfo.vue @@ -7,6 +7,7 @@ @@ -69,40 +70,17 @@ export default { apiInfo: Object, }, activated() { - this.formatTableData(); this.initTableColumn(); }, created: function () { - this.formatTableData(); this.initTableColumn(); }, mounted() { - this.formatTableData(); this.initTableColumn(); }, computed: {}, watch: {}, methods: { - formatTableData() { - if (this.tableData) { - this.tableData.forEach((item) => { - if (item.urlEncode !== null && item.urlEncode !== undefined) { - if (item.urlEncode === true) { - item.urlEncode = this.$t('commons.yes'); - } else { - item.urlEncode = this.$t('commons.no'); - } - } - if (item.enable !== null && item.enable !== undefined) { - if (item.enable === true) { - item.enable = this.$t('commons.yes'); - } else { - item.enable = this.$t('commons.no'); - } - } - }); - } - }, refreshApiParamsField() { this.initTableColumn(); this.reloadedApiVariable = false; @@ -176,6 +154,24 @@ export default { returnJsonArr.push(item); } } + + returnJsonArr.forEach((item) => { + if (item.urlEncode !== null && item.urlEncode !== undefined) { + if (item.urlEncode === true) { + item.urlEncode = this.$t('commons.yes'); + } else { + item.urlEncode = this.$t('commons.no'); + } + } + if (item.enable !== null && item.enable !== undefined) { + if (item.enable === true) { + item.enable = this.$t('commons.yes'); + } else { + item.enable = this.$t('commons.no'); + } + } + }); + return returnJsonArr; }, formatBoolean(row, column, cellValue) { diff --git a/api-test/frontend/src/business/home/components/chart/CountChart.vue b/api-test/frontend/src/business/home/components/chart/CountChart.vue index 4e8e527c1f..f9b40f702b 100644 --- a/api-test/frontend/src/business/home/components/chart/CountChart.vue +++ b/api-test/frontend/src/business/home/components/chart/CountChart.vue @@ -109,6 +109,7 @@ export default { legend: { orient: 'vertical', icon: 'rect', + inactiveBorderWidth: 0.1, selectedMode: dataIsNotEmpty, itemGap: 16, left: '50%',