From 1ebc1f15ae11b905b7a8601760db2da0ee7580da Mon Sep 17 00:00:00 2001 From: deartibers <947466799@qq.com> Date: Wed, 27 Apr 2022 17:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0nvr=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/nvrModal.jsx | 135 +++++++++++------- 1 file changed, 81 insertions(+), 54 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrModal.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrModal.jsx index e4a64fb..0105cdb 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrModal.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/nvrModal.jsx @@ -1,13 +1,27 @@ import React, { useState } from 'react' -import { Modal, Button,Form,Row,Col,Divider } from '@douyinfe/semi-ui'; - +import { Modal, Button,Form,Row,Col,Divider,Spin } from '@douyinfe/semi-ui'; +import { IconTickCircle } from '@douyinfe/semi-icons'; function nvrModal(props){ - const [visible, setVisible] = useState(false); + const [visible, setVisible] = useState(false);//是否显示弹框 + const [isloading,setloading] = useState(false);//是否显示loading + const [loadingTip,setloadingTip] = useState('获取中...请稍后...');//loading tip的值 + const [step,setstep] = useState(0) function showDialog() {//打开弹框 setVisible(true); } function handleOk() {//点击弹框确定 - setVisible(false); + // setVisible(false); + setloading(true); + setTimeout(() => { + setloadingTip('...接受成功') + setTimeout(()=>{ + setloadingTip('已完成') + setTimeout(() => { + setstep(1); + setloading(false); + }, 2000); + },2000) + }, 2000); } function handleAfterClose(){//在关闭之后 console.log('after'); @@ -20,6 +34,8 @@ function nvrModal(props){