From 006ebbf9a1f75b0a2b5ff1214904fccae9623f36 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 16 Dec 2021 17:04:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8E=AA=E6=96=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA444?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/measure/service.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/modules/visual/measure/service.vue b/src/views/modules/visual/measure/service.vue index e0caf574..c2be622e 100644 --- a/src/views/modules/visual/measure/service.vue +++ b/src/views/modules/visual/measure/service.vue @@ -278,7 +278,19 @@ export default { type: 'category', axisLabel: { color: '#fff', - interval: 0 + interval: 0, + formatter: function(params) { + // const index = params.indexOf('#') + // const newParams = params.slice(0, index) + let newParamsName = params.length > 6 ? params.substring(0, 6) + '...' : params + return newParamsName + } + }, + splitLine: { + show: false + }, + splitArea: { + show: false }, axisTick: { interval: 0 @@ -330,7 +342,7 @@ export default { show: false }, emphasis: { - focus: 'series' + focus: 'none' }, data: categoryList.map(n => { return n.detail[index].serviceDemandTotal