update
This commit is contained in:
parent
e1e73b341d
commit
9d3c877628
@ -164,7 +164,7 @@ function getOptions(period, trend) {
|
||||
},
|
||||
},
|
||||
series: {
|
||||
data: trend[period].map(item => item.toFixed(2)),
|
||||
data: trend[period].map(item => item != null && (+item).toFixed(2)),
|
||||
type: "line",
|
||||
symbol: "circle",
|
||||
symbolSize: 6,
|
||||
|
@ -40,7 +40,7 @@ function Energy(props) {
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
<span style={{ lineHeight: 1.5 }}>天然气I/Nm³</span>
|
||||
<span style={{ lineHeight: 1.5 }}>
|
||||
{energyInfo?.ngQty1?.replace("Nm³", "") || "0"}
|
||||
{energyInfo?.ngQty1?.replace("Nm³", "") || "0Nm³"}
|
||||
</span>
|
||||
</span>
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
@ -52,7 +52,7 @@ function Energy(props) {
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
<span style={{ lineHeight: 1.5 }}>天然气II/Nm³</span>
|
||||
<span style={{ lineHeight: 1.5 }}>
|
||||
{energyInfo?.ngQty2?.replace("Nm³", "") || "0"}
|
||||
{energyInfo?.ngQty2?.replace("Nm³", "") || "0Nm³"}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -163,7 +163,7 @@ function getOptions(period, trend) {
|
||||
},
|
||||
},
|
||||
series: {
|
||||
data: trend[period].map(item => item.toFixed(3)),
|
||||
data: trend[period].map(item => item != null && (+item).toFixed(2)),
|
||||
type: "line",
|
||||
symbol: "circle",
|
||||
symbolSize: 6,
|
||||
|
@ -101,7 +101,7 @@ export function getOptions(period, source, trend, options = {}) {
|
||||
? null
|
||||
: (+item.qty).toFixed(2)
|
||||
)
|
||||
: trend[period],
|
||||
: trend[period].map(item => item != null && (+item).toFixed(2)),
|
||||
type: "line",
|
||||
symbol: "circle",
|
||||
symbolSize: 6,
|
||||
|
Loading…
Reference in New Issue
Block a user