From 4ac3e931675b5ea818a978f7c3140674515fc1b4 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Sat, 20 Jan 2024 17:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AlarnDayLine/index.vue | 19 +++++-------------- .../overview/components/UPFFlow/index.vue | 16 +++++----------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/src/views/dashboard/overview/components/AlarnDayLine/index.vue b/src/views/dashboard/overview/components/AlarnDayLine/index.vue index 7c786b35..2c1a8650 100644 --- a/src/views/dashboard/overview/components/AlarnDayLine/index.vue +++ b/src/views/dashboard/overview/components/AlarnDayLine/index.vue @@ -139,10 +139,11 @@ const optionData: EChartsOption = { { type: 'category', axisLine: { - lineStyle: { - color: '#32346c', - }, + show: true, + lineStyle: { + color: 'rgb(0,253,255,0.6)', }, + }, splitLine: { show: true, lineStyle: { @@ -158,11 +159,6 @@ const optionData: EChartsOption = { }, axisLabel: { inside: false, - textStyle: { - color: '#bac0c0', - fontWeight: 'normal', - fontSize: '12', - }, }, data: xData, }, @@ -175,7 +171,7 @@ const optionData: EChartsOption = { axisLine: { show: true, lineStyle: { - color: '#32346c', + color: 'rgb(0,253,255,0.6)', }, }, splitLine: { @@ -185,11 +181,6 @@ const optionData: EChartsOption = { }, }, axisLabel: { - textStyle: { - color: '#bac0c0', - fontWeight: 'normal', - fontSize: '12', - }, formatter: '{value}%', }, }, diff --git a/src/views/dashboard/overview/components/UPFFlow/index.vue b/src/views/dashboard/overview/components/UPFFlow/index.vue index 57b4a587..1da18321 100644 --- a/src/views/dashboard/overview/components/UPFFlow/index.vue +++ b/src/views/dashboard/overview/components/UPFFlow/index.vue @@ -163,22 +163,21 @@ const optionData: EChartsOption = { boundaryGap: false, data: charts.lineX, axisLabel: { - textStyle: { - color: 'rgb(0,253,255,0.6)', - }, formatter: function (params: any) { return params.split(' ')[0] + '\n' + params.split(' ')[1]; }, }, + axisLine: { + lineStyle: { + color: 'rgb(0,253,255,0.6)', + }, + }, }, yAxis: { name: charts.unit, type: 'value', axisLabel: { formatter: '{value}', - textStyle: { - color: 'rgb(0,253,255,0.6)', - }, }, splitLine: { lineStyle: { @@ -190,11 +189,6 @@ const optionData: EChartsOption = { color: 'rgb(0,253,255,0.6)', }, }, - label: { - normal: { - show: true, //折点显示数值, - }, - }, }, series: lineY, };