From 45ff9e133e4ab13b1ad8905149e80a16746feede Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 13 Jul 2021 17:59:20 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AF=A6=E6=83=85=E5=9B=BE=E8=A1=A8=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E8=8C=83=E5=9B=B4=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/report/components/TestDetails.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/performance/report/components/TestDetails.vue b/frontend/src/business/components/performance/report/components/TestDetails.vue index c8341aa6df..1e476a64f7 100644 --- a/frontend/src/business/components/performance/report/components/TestDetails.vue +++ b/frontend/src/business/components/performance/report/components/TestDetails.vue @@ -367,7 +367,7 @@ export default { legend: { y: 'top', }, - xAxis: {}, + xAxis: {boundaryGap: false}, yAxis: [], dataZoom: [ { @@ -526,25 +526,23 @@ export default { item.groupName = this.$t('load_test.report.' + reportKey) + ': ' + item.groupName; }); - let yAxisList = data.map(m => m.yAxis); - let yAxisListMax = this._getChartMax(yAxisList); if (this.baseOption.yAxis.length === 0) { this.baseOption.yAxis.push({ name: this.$t('load_test.report.' + reportKey), type: 'value', min: 0, - max: yAxisListMax, position: 'left', + boundaryGap: [0, '100%'] }); } else { this.baseOption.yAxis.push({ name: this.$t('load_test.report.' + reportKey), type: 'value', min: 0, - max: yAxisListMax, position: 'right', nameRotate: 20, offset: (this.baseOption.yAxis.length - 1) * 50, + boundaryGap: [0, '100%'] }); this.baseOption.grid.right = (this.baseOption.yAxis.length - 1) * 5 + '%'; }