From ee97b2f77a1465cf87ffd9a0836b420fa6a44102 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 31 Mar 2022 14:21:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E9=A5=BC=E7=8A=B6=E5=9B=BE=E6=82=AC=E6=B5=AE=E7=AA=97=E4=B8=AD?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=8F=90=E7=A4=BA=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1011627 --user=宋天阳 【接口测试】接口报告,左上角百分比注释,显示优化 https://www.tapd.cn/55049933/s/1128121 --- .../api/automation/report/components/MetricChart.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/components/MetricChart.vue b/frontend/src/business/components/api/automation/report/components/MetricChart.vue index b2c8aea076..5daaf6a07b 100644 --- a/frontend/src/business/components/api/automation/report/components/MetricChart.vue +++ b/frontend/src/business/components/api/automation/report/components/MetricChart.vue @@ -242,6 +242,9 @@ export default { radius: ['80%', '90%'], avoidLabelOverlap: false, hoverAnimation: false, + label: { + show: false, + }, itemStyle: { borderColor: "#FFF", shadowColor: '#E1E1E1', @@ -251,10 +254,10 @@ export default { show: false }, data: [ - {value: this.content.success}, - {value: this.content.error}, - {value: this.content.errorCode}, - {value: this.content.unExecute}, + {value: this.content.success, name:this.$t('api_report.success')}, + {value: this.content.error, name:this.$t('api_report.fail')}, + {value: this.content.errorCode, name:this.$t('error_report_library.option.name')}, + {value: this.content.unExecute, name:this.$t('api_test.home_page.detail_card.unexecute')}, ] } ]