This commit is contained in:
lb
2023-11-09 15:34:52 +08:00
parent b0431e4a33
commit b4eb30d76f
146 changed files with 2988 additions and 1328 deletions

View File

@@ -0,0 +1,41 @@
import React from "react";
import { useContext } from "react";
import Container from "../../Container";
// import SocketContext from '../../../store/socket-data-provider';
import cls from "./kiln.module.scss";
export default function Kiln() {
// const ctx = useContext(SocketContext);
const ctx = null;
const infos = [
{ label: "窑炉压力", value: ctx?.runState?.kilnPressure || "0Pa" },
{ label: "循环水温度", value: ctx?.runState?.waterTemp || "0℃" },
{ label: "循环水流量", value: ctx?.runState?.waterFlow || "0㎡/h" },
{ label: "循环水压力", value: ctx?.runState?.waterPressure || "0Pa" },
{
label: "助燃风压力",
value: ctx?.runState?.combustionAirPressure || "0℃",
},
{ label: "碹顶加权温度", value: ctx?.runState?.topTemp || "0℃" },
{
label: "压缩气压力",
value: ctx?.runState?.compressedAirPressure || "0Pa",
},
{ label: "融化加权温度", value: ctx?.runState?.meltTemp || "0℃" },
];
return (
<Container title="窑炉信息" icon="kiln" className={cls.leftBar__top}>
<div className={cls.leftBar__top__content}>
{infos.map((item) => (
<div key={item.label} className={cls.info__item}>
{item.label}: {item.value}
</div>
))}
</div>
</Container>
);
}

View File

@@ -0,0 +1,29 @@
.leftBar__top {
width: 625px;
// height: 305px;
height: 300px;
background: url('../../../assets/ItemBg.png') no-repeat;
background-size: 100% 100%;
.leftBar__top__content {
flex: 1;
height: 1px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding-top: 18px;
.info__item {
border-radius: 2px;
color: hsl(0, 0%, 100%, 0.9);
box-shadow: inset 0 0 17px 0px hsla(0, 0%, 100%, 0.15);
// width: 288px;
height: 43px;
font-size: 20px;
letter-spacing: 1.43px;
line-height: 40px;
text-align: center;
user-select: none;
}
}
}