This commit is contained in:
lb
2024-01-24 15:58:16 +08:00
parent b7b2ad2ee5
commit 1ebda5cf6f
9 changed files with 109 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ import * as echarts from "echarts";
import { Switch } from "antd";
import { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import dayjs from "dayjs";
/** 助燃风流量 */
function GasI(props) {
@@ -22,10 +23,17 @@ function GasI(props) {
setShowChart(false);
}
}
const desc =
dayjs().subtract(7, "day").format("YYYY.MM.DD") +
" - " +
dayjs().subtract(1, "day").format("YYYY.MM.DD");
return (
<BottomBarItem
icon="pause"
title="助燃风流量"
desc={desc}
className={cls.gas}
style={props.style}
>
@@ -39,10 +47,7 @@ function GasI(props) {
<div className={cls.chart}>
{showChart && (
<ReactECharts
option={options}
style={{ height: "100%" }}
/>
<ReactECharts option={options} style={{ height: "100%" }} />
)}
{!showChart && (
<div className={cls.gridList}>