From bcee1fa9f6b63fc4b1d0cd0de032d0ddae06b16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=9A=E6=96=87?= <1179111926@qq.com> Date: Tue, 27 Sep 2022 12:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Simulation/index.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/pages/Simulation/index.tsx b/src/pages/Simulation/index.tsx index 8c23ea2..b510283 100644 --- a/src/pages/Simulation/index.tsx +++ b/src/pages/Simulation/index.tsx @@ -106,7 +106,10 @@ const Progress = ({ item, onFinish, start, setVisible }: any) => {
{data.deviceId}
{data.name}
-
+
{data.type !== 3 ? ( setVisible(data)} @@ -143,7 +146,10 @@ const Progress = ({ item, onFinish, start, setVisible }: any) => {
{data.bProgress}%
-
+
{data.type === 1 ? ( setVisible(data)} @@ -168,7 +174,10 @@ const Progress = ({ item, onFinish, start, setVisible }: any) => {
{data.cProgress}%
-
+
{data.type === 2 ? ( setVisible(data)} @@ -356,7 +365,11 @@ const Page = () => { if (newData.every((e: any) => e.state === 'done')) { setDisabled(true); setLoading(false); - setStart(false); + // setStart(false); + message.success('初装成功,正在重置页面'); + setTimeout(() => { + window.location.reload(); + }, 500); } setData(newData); dataSave.current = newData;