update
This commit is contained in:
parent
b16ee86def
commit
909bd92ee6
@ -39,7 +39,10 @@ function GasI(props) {
|
|||||||
|
|
||||||
<div className={cls.chart}>
|
<div className={cls.chart}>
|
||||||
{showChart && (
|
{showChart && (
|
||||||
<ReactECharts option={options} style={{ height: "100%" }} />
|
<ReactECharts
|
||||||
|
option={options}
|
||||||
|
style={{ height: "100%" }}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
{!showChart && (
|
{!showChart && (
|
||||||
<div className={cls.gridList}>
|
<div className={cls.gridList}>
|
||||||
|
@ -17,7 +17,7 @@ function GasChart(props) {
|
|||||||
return (
|
return (
|
||||||
<div className={cls.gasChart}>
|
<div className={cls.gasChart}>
|
||||||
<ReactECharts
|
<ReactECharts
|
||||||
key={Math.random()}
|
key={dataSource}
|
||||||
option={getOptions(
|
option={getOptions(
|
||||||
seriesData,
|
seriesData,
|
||||||
dataSource == "gas-i" ? "天然气I" : "天然气II"
|
dataSource == "gas-i" ? "天然气I" : "天然气II"
|
||||||
|
Loading…
Reference in New Issue
Block a user