1
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user