lb 8 місяці тому
джерело
коміт
3f44cb9e9a
3 змінених файлів з 12 додано та 12 видалено
  1. +1
    -1
      src/components/Common/FanInfo/index.jsx
  2. +10
    -10
      src/components/Common/TodayFaultTotal/index.jsx
  3. +1
    -1
      src/hooks/slider.css

+ 1
- 1
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),


+ 10
- 10
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);
});
});


+ 1
- 1
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%);


Завантаження…
Відмінити
Зберегти