From d09fb0fbfca0fa4f885817219ed5c0a11f6c7635 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 31 Jan 2024 11:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=99=90=E5=88=B6=E6=9C=80?= =?UTF-8?q?=E9=AB=98=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/perfManage/goldTarget.ts | 2 +- .../components/AlarnDayLine/index.vue | 216 ------------------ .../overview/components/UPFFlow/index.vue | 31 +-- 3 files changed, 13 insertions(+), 236 deletions(-) delete mode 100644 src/views/dashboard/overview/components/AlarnDayLine/index.vue diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index 550f1aeb..d099092d 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -125,7 +125,7 @@ export async function getGoldTitleByNE(neType: string) { export async function listUPFData(timeArr: any) { const initTime: Date = new Date(); const twentyFourHoursAgo: Date = new Date( - initTime.getTime() - 60 * 60 * 1000 + initTime.getTime() - 10* 60 * 1000 ); return await Promise.allSettled([ diff --git a/src/views/dashboard/overview/components/AlarnDayLine/index.vue b/src/views/dashboard/overview/components/AlarnDayLine/index.vue deleted file mode 100644 index 89c4f2f0..00000000 --- a/src/views/dashboard/overview/components/AlarnDayLine/index.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - diff --git a/src/views/dashboard/overview/components/UPFFlow/index.vue b/src/views/dashboard/overview/components/UPFFlow/index.vue index 22739868..185ae272 100644 --- a/src/views/dashboard/overview/components/UPFFlow/index.vue +++ b/src/views/dashboard/overview/components/UPFFlow/index.vue @@ -126,23 +126,16 @@ function initPicture() { color: color[x] + ')', smooth: true, areaStyle: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: color[x] + ', 0.5)', - }, - { - offset: 0.8, - color: color[x] + ', 0.5)', - }, - ], - false - ), + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: color[x] + ', .5)', + }, + { + offset: 1, + color: color[x] + ', 0)', + }, + ]), shadowColor: 'rgba(0, 0, 0, 0.1)', shadowBlur: 10, }, @@ -197,7 +190,7 @@ function initPicture() { data: charts.lineX, axisLabel: { formatter: function (params: any) { - return params.split(' ')[0] + '\n' + params.split(' ')[1]; + return params.split(' ')[1]; }, fontSize: 14, }, @@ -213,7 +206,7 @@ function initPicture() { type: 'value', // splitNumber: 4, min: 0, - max: 300, + //max: 300, axisLabel: { formatter: '{value}', },