瀏覽代碼

update

master
lb 8 月之前
父節點
當前提交
909bd92ee6
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. +4
    -1
      src/components/Common/GasFlow/index.jsx
  2. +2
    -2
      src/components/Common/NatGasFlow/gasChart/index.jsx

+ 4
- 1
src/components/Common/GasFlow/index.jsx 查看文件

@@ -39,7 +39,10 @@ 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}>


+ 2
- 2
src/components/Common/NatGasFlow/gasChart/index.jsx 查看文件

@@ -13,11 +13,11 @@ function GasChart(props) {
.sort()
.map((key, index) => hisState?.[dataName][key])
: Array(dataSource == "gas-i" ? 8 : 4).fill(Array(7).fill(0));
return (
<div className={cls.gasChart}>
<ReactECharts
key={Math.random()}
key={dataSource}
option={getOptions(
seriesData,
dataSource == "gas-i" ? "天然气I" : "天然气II"


Loading…
取消
儲存