This commit is contained in:
lb 2023-11-06 10:12:44 +08:00
parent a93c6b37bc
commit 3d80530ad6
9 changed files with 24 additions and 4 deletions

BIN
src/assets/TH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
src/assets/ZL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
src/assets/middle-long.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -22,6 +22,8 @@ function choseBg(size) {
? 'middle-short'
: width === 'middle' && height === 'long'
? 'middle-long'
: width === 'middle' && height === 'full'
? 'middle-full'
: 'middle-middle';
}

View File

@ -22,6 +22,12 @@
background-position: 0 0;
}
.middle-full {
background: url('../../../assets/middle-long.png') no-repeat;
background-size: 100% 100%;
background-position: 0 0;
}
.middle-middle {
background: url('../../../assets/middle-middle-2.png') no-repeat;
background-size: 100% 100%;

View File

@ -69,7 +69,11 @@ function FanInfo(props) {
};
return (
<GraphBase icon="kiln" title="风机信息" size={['middle', 'short']}>
<GraphBase
icon="kiln"
title="风机信息"
size={props.longBg ? ['middle', 'full'] : ['middle', 'short']}
>
<div
className="flex"
style={{

View File

@ -18,7 +18,7 @@ export default function index() {
transition={{ type: 'tween' }}
>
<div style={{ flex: 1 }}>
<FanInfo rows={24} />
<FanInfo longBg={true} rows={24} />
</div>
</motion.div>
);

View File

@ -80,6 +80,7 @@
background-size: 100%;
}
.bgQuality,
.bgFire {
position: absolute;
top: 16%;
@ -87,7 +88,14 @@
width: 100%;
height: 100%;
/* background: #f003; */
background: url('../assets/moxing.png') no-repeat;
background-position: 50% 50%;
background-size: 170% 200%;
}
.bgFire {
background: url(../assets/TH.png) no-repeat;
}
.bgQuality {
background: url('../assets/ZL.png') no-repeat;
}

View File

@ -78,7 +78,7 @@ export default function Home({ active }) {
{active == '退火监测' && <div className="bgFire"></div>}
{active == '质检统计' && <div className="bgFire"></div>}
{active == '质检统计' && <div className="bgQuality"></div>}
</div>
{active == '窑炉总览' && <RightBar key="right-bar" />}