|
@@ -16,7 +16,7 @@ const HomePage = (props) => {
|
|
|
});
|
|
|
// useEffect(() => {
|
|
|
// localStorage.width = document.documentElement.getBoundingClientRect().width;
|
|
|
- // window.refreshRem();
|
|
|
+ // window.refreshpx();
|
|
|
// }, []);
|
|
|
return (
|
|
|
<div className={styles.content}>
|
|
@@ -63,6 +63,7 @@ const SmartWork = (props) => {
|
|
|
const { data } = props;
|
|
|
return (
|
|
|
<Box
|
|
|
+ small={true}
|
|
|
title="水厂工况"
|
|
|
onClick={() => UnityAction.sendMsg('menuItem', '工况管理')}
|
|
|
>
|
|
@@ -117,11 +118,11 @@ const WaterQuality = (props) => {
|
|
|
>
|
|
|
<ul>
|
|
|
<li>
|
|
|
- <div className={styles.value}>{data?.dsan}</div>
|
|
|
+ <div className={styles.value}>{data?.dsan || 0}</div>
|
|
|
<div className={styles.btn1}>出水余氯</div>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <div className={styles.value}>{data?.dtur}</div>
|
|
|
+ <div className={styles.value}>{data?.dtur || 0}</div>
|
|
|
<div className={styles.btn2}>出水浊度</div>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -164,6 +165,7 @@ const SelfInspection = connect(({ eqSelfInspection, loading }) => ({
|
|
|
|
|
|
return (
|
|
|
<Box
|
|
|
+ small={true}
|
|
|
title="系统自检"
|
|
|
onClick={() => UnityAction.sendMsg('menuItem', '系统自检')}
|
|
|
>
|
|
@@ -261,12 +263,9 @@ const Scada = () => {
|
|
|
title="工艺监控"
|
|
|
onClick={() => UnityAction.sendMsg('menuItem', '工艺监控')}
|
|
|
>
|
|
|
- <div
|
|
|
- className={styles.scada}
|
|
|
- style={{ width: '5.7rem', height: '2.8rem' }}
|
|
|
- >
|
|
|
+ <div className={styles.scada} style={{ width: '540px', height: '270px' }}>
|
|
|
{data?.map((url) => (
|
|
|
- <iframe style={{ width: '5.7rem', height: '2.8rem' }} src={url} />
|
|
|
+ <iframe style={{ width: '540px', height: '270px' }} src={url} />
|
|
|
))}
|
|
|
<div className={styles.mask}></div>
|
|
|
</div>
|
|
@@ -328,10 +327,10 @@ const Backlog = (props) => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-const Box = ({ title, children, onClick, big }) => {
|
|
|
+const Box = ({ title, children, onClick, small }) => {
|
|
|
return (
|
|
|
<div
|
|
|
- className={`${styles.box} ${big ? styles.boxBig : ''}`}
|
|
|
+ className={`${styles.box} ${small ? '' : styles.boxH}`}
|
|
|
onClick={onClick}
|
|
|
>
|
|
|
<div className={styles.titleContent}>
|