From 3f44cb9e9ae9e3d193316e61e4069b168e7983e2 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 29 Dec 2023 09:31:33 +0800 Subject: [PATCH] update --- src/components/Common/FanInfo/index.jsx | 2 +- .../Common/TodayFaultTotal/index.jsx | 20 +++++++++---------- src/hooks/slider.css | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Common/FanInfo/index.jsx b/src/components/Common/FanInfo/index.jsx index e16b663..970fc6f 100644 --- a/src/components/Common/FanInfo/index.jsx +++ b/src/components/Common/FanInfo/index.jsx @@ -43,7 +43,7 @@ function FanInfo(props) { ], oddRowBGC: "#042444", evenRowBGC: "#042c4c", - columnWidth: [50, 144], + columnWidth: [50, 136], rowNum, hoverPause: false, data: attachStyle(data), diff --git a/src/components/Common/TodayFaultTotal/index.jsx b/src/components/Common/TodayFaultTotal/index.jsx index 987a331..92da1aa 100644 --- a/src/components/Common/TodayFaultTotal/index.jsx +++ b/src/components/Common/TodayFaultTotal/index.jsx @@ -64,7 +64,6 @@ function FaultTotal(props) { export default FaultTotal; function preHandleStatisticData(data, legend) { - console.table(data); const obj = {}; data.forEach((item) => { obj[item.name] = {}; @@ -86,17 +85,18 @@ function preHandleStatisticData(data, legend) { data: [], })); + const seriesData = []; legend.forEach((item, index) => { series[index].name = item; - data.forEach((d, index) => { - if (index == 0) { - series[index].label = { - show: true, - position: "top", - distance: 10, - color: "#fffc", - }; - } + data.forEach((d, idx) => { + // if (index == 0) { + // series[index].label = { + // show: true, + // position: "top", + // distance: 10, + // color: "#fffc", + // }; + // } series[index].data.push(obj[d.name][item] || 0); }); }); diff --git a/src/hooks/slider.css b/src/hooks/slider.css index 3c515a6..f2cc66d 100644 --- a/src/hooks/slider.css +++ b/src/hooks/slider.css @@ -8,7 +8,7 @@ place-items: center; background: #fff; position: fixed; - bottom: 0; + bottom: -5vh; opacity: 0; left: 50%; transform: translateX(-50%);