update
This commit is contained in:
parent
a93c6b37bc
commit
3d80530ad6
BIN
src/assets/TH.png
Normal file
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
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
BIN
src/assets/middle-long.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
@ -22,6 +22,8 @@ function choseBg(size) {
|
|||||||
? 'middle-short'
|
? 'middle-short'
|
||||||
: width === 'middle' && height === 'long'
|
: width === 'middle' && height === 'long'
|
||||||
? 'middle-long'
|
? 'middle-long'
|
||||||
|
: width === 'middle' && height === 'full'
|
||||||
|
? 'middle-full'
|
||||||
: 'middle-middle';
|
: 'middle-middle';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@
|
|||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.middle-full {
|
||||||
|
background: url('../../../assets/middle-long.png') no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
.middle-middle {
|
.middle-middle {
|
||||||
background: url('../../../assets/middle-middle-2.png') no-repeat;
|
background: url('../../../assets/middle-middle-2.png') no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
@ -69,7 +69,11 @@ function FanInfo(props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GraphBase icon="kiln" title="风机信息" size={['middle', 'short']}>
|
<GraphBase
|
||||||
|
icon="kiln"
|
||||||
|
title="风机信息"
|
||||||
|
size={props.longBg ? ['middle', 'full'] : ['middle', 'short']}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className="flex"
|
className="flex"
|
||||||
style={{
|
style={{
|
||||||
|
@ -18,7 +18,7 @@ export default function index() {
|
|||||||
transition={{ type: 'tween' }}
|
transition={{ type: 'tween' }}
|
||||||
>
|
>
|
||||||
<div style={{ flex: 1 }}>
|
<div style={{ flex: 1 }}>
|
||||||
<FanInfo rows={24} />
|
<FanInfo longBg={true} rows={24} />
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
);
|
);
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bgQuality,
|
||||||
.bgFire {
|
.bgFire {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 16%;
|
top: 16%;
|
||||||
@ -87,7 +88,14 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/* background: #f003; */
|
/* background: #f003; */
|
||||||
background: url('../assets/moxing.png') no-repeat;
|
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-size: 170% 200%;
|
background-size: 170% 200%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bgFire {
|
||||||
|
background: url(../assets/TH.png) no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgQuality {
|
||||||
|
background: url('../assets/ZL.png') no-repeat;
|
||||||
|
}
|
||||||
|
@ -78,7 +78,7 @@ export default function Home({ active }) {
|
|||||||
|
|
||||||
{active == '退火监测' && <div className="bgFire"></div>}
|
{active == '退火监测' && <div className="bgFire"></div>}
|
||||||
|
|
||||||
{active == '质检统计' && <div className="bgFire"></div>}
|
{active == '质检统计' && <div className="bgQuality"></div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{active == '窑炉总览' && <RightBar key="right-bar" />}
|
{active == '窑炉总览' && <RightBar key="right-bar" />}
|
||||||
|
Loading…
Reference in New Issue
Block a user