From 04a15dc14c600df3fffa0a4e8c2b1bfebef64bad Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 1 Dec 2023 13:59:53 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=80=E5=B1=82=E6=B8=A9=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Common/BlueRect/index.jsx | 10 +++- .../Common/BlueRect/index.module.css | 51 ++++++++++++------- .../Common/TemperatureTop/index.jsx | 26 ++++++++-- .../Modules/KilnInner/Center/index.jsx | 2 +- .../Center/videoComponents/Floor2To1.jsx | 17 +++++-- 5 files changed, 76 insertions(+), 30 deletions(-) diff --git a/src/components/Common/BlueRect/index.jsx b/src/components/Common/BlueRect/index.jsx index 3b176dd..7da0c19 100644 --- a/src/components/Common/BlueRect/index.jsx +++ b/src/components/Common/BlueRect/index.jsx @@ -4,7 +4,12 @@ function BlueRect(props) { const title = props.title || "DEFAULT"; const value = props.value || "0℃"; return ( -
+
{title} - + {value}
diff --git a/src/components/Common/BlueRect/index.module.css b/src/components/Common/BlueRect/index.module.css index 8523b09..d218b74 100644 --- a/src/components/Common/BlueRect/index.module.css +++ b/src/components/Common/BlueRect/index.module.css @@ -136,80 +136,93 @@ } .TE232 { top: 620px; - left: 830px; + left: 836px; } .TE234 { top: 620px; - left: 950px; + left: 965px; } .TE236 { top: 620px; - left: 1070px; + left: 1090px; } .TE238 { top: 620px; - left: 1190px; + left: 1215px; } .TE240 { top: 620px; - left: 1310px; + left: 1340px; } .TE242 { top: 620px; - left: 1430px; + left: 1460px; } /** center middle **/ .TE201 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 450px; } .TE202 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 580px; } .TE203 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 710px; } .TE204 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 840px; } .TE205 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 970px; } .TE206 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1100px; } .TE207 { - top: 340px; + top: 335px; + transform: rotate(-1deg); left: 1260px; } .TE208 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1260px; } .TE209 { - top: 480px; + top: 485px; + transform: rotate(-1deg); left: 1260px; } .TE210 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1390px; } .TE211 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1530px; } .TE212 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1660px; } .TE213 { - top: 390px; + top: 410px; + transform: rotate(-1deg); left: 1790px; } diff --git a/src/components/Common/TemperatureTop/index.jsx b/src/components/Common/TemperatureTop/index.jsx index 7b76589..dbf4715 100644 --- a/src/components/Common/TemperatureTop/index.jsx +++ b/src/components/Common/TemperatureTop/index.jsx @@ -1,11 +1,25 @@ import BlueRect from "../BlueRect"; import { useSelector } from "react-redux"; +import { motion, AnimatePresence } from "framer-motion"; + +const blueTe = [ + "TE271", + "TE272", + "TE273", + "TE274", + "TE275", + "TE276", + "TE277", + "TE278", + "TE279", + "TE280", +]; function TemperatureTop(props) { const tempTop = useSelector((state) => state.temperature.top); return ( -
{Object.keys(tempTop).map((d) => ( - + ))} -
+ ); } diff --git a/src/components/Modules/KilnInner/Center/index.jsx b/src/components/Modules/KilnInner/Center/index.jsx index 731ccf6..9907ddc 100644 --- a/src/components/Modules/KilnInner/Center/index.jsx +++ b/src/components/Modules/KilnInner/Center/index.jsx @@ -58,7 +58,7 @@ function KilnCenter() {
{/* 覆盖层温度信息 */} - + {/* */} {/* video */} diff --git a/src/components/Modules/KilnInner/Center/videoComponents/Floor2To1.jsx b/src/components/Modules/KilnInner/Center/videoComponents/Floor2To1.jsx index 19bfb58..b6d8a2c 100644 --- a/src/components/Modules/KilnInner/Center/videoComponents/Floor2To1.jsx +++ b/src/components/Modules/KilnInner/Center/videoComponents/Floor2To1.jsx @@ -2,11 +2,10 @@ import { motion, AnimatePresence } from "framer-motion"; import { useRef, useEffect, useMemo, useState } from "react"; import cls from "../index.module.css"; // import SocketContext from '../../../../../store/socket-data-provider'; -import { useContext } from "react"; +// import { useContext } from "react"; +import TemperatureTop from "../../../../../components/Common/TemperatureTop"; function FloorTwoToOne(props) { - // const ctx = useContext(SocketContext); - const ctx = null; const fireDir = ctx?.runState?.fireDirection || null; @@ -75,7 +74,7 @@ function FloorTwoToOne(props) { > )} - + > */} + )}