This commit is contained in:
lb
2023-12-28 16:59:43 +08:00
parent 049a0804ac
commit 2722ca6122
11 changed files with 43 additions and 37 deletions

View File

@@ -73,8 +73,6 @@ const EnergyCostChart = (props) => {
export default EnergyCostChart;
function getOptions(period, source, trend) {
console.log("trend ==> ", trend);
return {
color: ["#FFD160", "#12FFF5", "#2760FF"],
grid: { top: 32, right: 12, bottom: 56, left: 48 },

View File

@@ -19,20 +19,28 @@ function EnergyCost(props) {
</div>
<div className={cls.info__item_groups}>
<div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal" }}>水耗量</i> :{" "}
{energyInfo?.waterQty || 0}Km³
<i style={{ fontSize: "18px", fontStyle: "normal" }}>水耗量</i>:
<span style={{ fontSize: "12px" }}>
{energyInfo?.waterQty || 0}Km³
</span>
</div>
<div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal" }}>天然气I</i> :{" "}
{energyInfo?.ngQty1 || 0}
<i style={{ fontSize: "18px", fontStyle: "normal" }}>天然气I</i>:
<span style={{ fontSize: "12px" }}>
{energyInfo?.ngQty1 || 0}
</span>
</div>
<div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal" }}>电耗量</i> :{" "}
{energyInfo?.elecQty2 || 0}kWh
<i style={{ fontSize: "18px", fontStyle: "normal" }}>电耗量</i>:
<span style={{ fontSize: "12px" }}>
{energyInfo?.elecQty2 || 0}kWh
</span>
</div>
<div className={cls.info__item}>
<i style={{ fontSize: "18px", fontStyle: "normal" }}>天然气II</i>{" "}
: {energyInfo?.ngQty2 || 0}
<i style={{ fontSize: "18px", fontStyle: "normal" }}>天然气II</i>:
<span style={{ fontSize: "12px" }}>
{energyInfo?.ngQty2 || 0}
</span>
</div>
</div>
</div>