8
0
Dieser Commit ist enthalten in:
lb 2023-12-15 09:58:40 +08:00
Ursprung c3511e1bfe
Commit bb541962dd
11 geänderte Dateien mit 54 neuen und 33 gelöschten Zeilen

Datei anzeigen

@ -9,7 +9,7 @@ function EnergyCost(props) {
if (energyInfo) {
}
return (
<Container title="能耗" icon="charger" className={cls.energyCost}>
<Container title="能耗" icon="charger" className={cls.energyCost} pending={true}>
<div className={`flex flex-col`}>
<div className={`${cls.cost__info} flex`}>
<div

Datei anzeigen

@ -7,7 +7,7 @@ export default function CenterMenu({ active, onChangeActive }) {
['窑炉内部', '/kilnInner'],
['退火监测', '/stopFire'],
['质检统计', '/quailtyCheck'],
['能耗分析', '/energyCost'],
// ['', '/energyCost'],
];
return (
<div className={`${cls.centerMenu} flex`}>

Datei anzeigen

@ -1,7 +1,8 @@
.centerMenu {
position: fixed;
top: 120px;
left: 1340px;
// left: 1340px;
left: 1460px;
color: white;
z-index: 10000;
}

Datei anzeigen

@ -5,7 +5,7 @@ import SmokeTrendChart from './SmokeTrendChart';
function SmokeHandle(props) {
return (
<Container title="烟气处理" icon="smoke" className={cls.smokeHandle}>
<Container title="烟气处理" icon="smoke" className={cls.smokeHandle} pending={true}>
<div className={`${cls.smokeHandle__content} flex flex-col`}>
<div className={cls.info__item_groups}>
<div className={cls.info__item}> : 72%</div>

Datei anzeigen

@ -19,11 +19,11 @@ const TodayTableData = (props) => {
headerHeight: 40,
hoverPause: false,
data: [
["产线1", "37%", "62%", "97%", "7%"],
["产线2", "95%", "10%", "99%", "3%"],
["产线3", "68%", "1%", "92%", "4%"],
["产线4", "94%", "21%", "97%", "2%"],
["产线5", "99%", "30%", "95%", "5%"],
["Y61", "37%", "62%", "97%", "7%"],
["Y62", "95%", "10%", "99%", "3%"],
["Y63", "68%", "1%", "92%", "4%"],
["Y64", "94%", "21%", "97%", "2%"],
["Y65", "99%", "30%", "95%", "5%"],
],
});
return (

Datei anzeigen

@ -1,23 +1,41 @@
import { useEffect, useRef } from 'react';
import useIcon from '../hooks/useIcon';
import cls from './container.module.scss';
import { useEffect, useRef } from "react";
import useIcon from "../hooks/useIcon";
import cls from "./container.module.scss";
const Container = (props) => {
let icon = useIcon(props.icon);
let icon = useIcon(props.icon);
return (
<div className={`${cls.container} ${props.className}`} style={props.style}>
<div className={cls.container__head}>
<img
src={icon}
alt="#"
className={props.icon == 'kiln' ? cls.bigger : ''}
/>
<h2>{props.title}</h2>
</div>
<div className={cls.container__content}>{props.children}</div>
</div>
);
return (
<div
className={`${cls.container} ${props.className}`}
style={props.pending ? { filter: "grayscale(100%)" } : props.style}
>
<div className={cls.container__head}>
<img
src={icon}
alt="#"
className={props.icon == "kiln" ? cls.bigger : ""}
/>
<h2>{props.title}</h2>
</div>
<div className={cls.container__content}>{props.children}</div>
{props.pending && (
<div
className={`${cls.container__content} pending-modal`}
style={{
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%",
borderRadius: "20px",
userSelect: "none",
cursor: "not-allowed",
}}
></div>
)}
</div>
);
};
export default Container;

Datei anzeigen

@ -11,9 +11,9 @@ export default function index() {
<div className={cls.leftGrid}>
<Item1 />
</div>
<div className={cls.rightTable}>
{/* <div className={cls.rightTable}>
<Item2 />
</div>
</div> */}
</div>
</>
);

Datei anzeigen

@ -44,7 +44,7 @@ function KilnCenter() {
}
onClick={() => onFloorUpdate(1)}
>
一层
碹顶
</div>
<div
className={
@ -52,7 +52,7 @@ function KilnCenter() {
}
onClick={() => onFloorUpdate(2)}
>
二层
池底
</div>
</div>

Datei anzeigen

@ -4,6 +4,7 @@
flex-direction: column;
background-size: 100% 100%;
background-repeat: no-repeat;
position: relative;
.container__head {
display: flex;

Datei anzeigen

@ -14,6 +14,7 @@ html,
body {
margin: 0;
padding: 0;
overflow-y: hidden;
}
#FullScreen {

Datei anzeigen

@ -10,11 +10,11 @@ import FireCheckLeft from "../../components/Modules/FireCheck/LeftSide";
import QualityCheckLeft from "../../components/Modules/QualityCheck/LeftSide";
import FireCheckRight from "../../components/Modules/FireCheck/RightSide";
import QualityCheckRight from "../../components/Modules/QualityCheck/RightSide";
import { useSelector } from "react-redux";
export default function Home({ active }) {
const ctx = null;
const fireDir = ctx?.runState?.fireDirection || null;
const ctx = useSelector((state) => state.fireInfo);
const fireDir = ctx.fireDirection || null;
return (
<div className="Main">