This commit is contained in:
lb 2023-11-09 15:46:04 +08:00
parent b4eb30d76f
commit 572e9e0d5e
5 changed files with 38 additions and 30 deletions

View File

@ -167,7 +167,7 @@ function WindFrequence(props) {
return ( return (
<GraphBase <GraphBase
icon="kiln" icon="kiln"
title="FanRunFrequence" title="风机运行频率"
size={["middle", "long"]} size={["middle", "long"]}
switchOptions={true} switchOptions={true}
switchPosition={[null, 200]} // [top, left] switchPosition={[null, 200]} // [top, left]

View File

@ -1,3 +1,7 @@
.chart {
height: 100%;
}
.gridList { .gridList {
margin-top: 12px; margin-top: 12px;
display: grid; display: grid;

View File

@ -16,7 +16,6 @@ const Chart2 = () => {
useEffect(() => { useEffect(() => {
const restTime = ctx?.runState?.lastFireChangeTime; const restTime = ctx?.runState?.lastFireChangeTime;
if (restTime == null) return; if (restTime == null) return;
console.log("restTime is:", restTime);
let timer = null; let timer = null;
if (/分/.test(restTime) && /秒/.test(restTime)) { if (/分/.test(restTime) && /秒/.test(restTime)) {
let [min, sec] = restTime.replace(/分/, ":").replace(/秒/, "").split(":"); let [min, sec] = restTime.replace(/分/, ":").replace(/秒/, "").split(":");

View File

@ -1,33 +1,30 @@
.leftbox { .leftbox {
// width: 440px; .box {
// background: rgb(127, 202, 42); margin-right: 16px;
width: 200px;
padding: 12px;
background: url(../../../assets/CenterChart2ItemBg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
align-items: flex-start;
user-select: none;
.box { .box__inner {
margin-right: 16px; padding-top: 12px;
width: 200px;
padding: 8px;
background: url(../../../assets/CenterChart2ItemBg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
align-items: flex-start;
user-select: none;
.box__inner { .box__label {
padding-top: 12px; color: #fffa;
font-size: 18px;
line-height: 1;
}
.box__label { .box__value {
color: #fffa; color: #fff;
font-size: 18px; font-weight: 400;
line-height: 14px; font-size: 30px;
} line-height: 56px;
}
.box__value { }
color: #fff; }
font-weight: 400;
font-size: 30px;
line-height: 34px;
}
}
}
} }

View File

@ -2,6 +2,14 @@
box-sizing: border-box; box-sizing: border-box;
} }
h1,
h2,
h3,
h4,
h5 {
margin: 0;
}
html, html,
body { body {
margin: 0; margin: 0;