From 7c41bc48f2b599a45eae005a1c2c419644f95ab1 Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Tue, 19 Jul 2022 15:07:48 +0800 Subject: [PATCH] =?UTF-8?q?7.19=20=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=A7=A3=E5=AF=86=E6=88=AA=E8=87=B3=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Opening/ProjectManager/Room/index.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pages/Opening/ProjectManager/Room/index.tsx b/src/pages/Opening/ProjectManager/Room/index.tsx index 925dd00..62dbc7e 100644 --- a/src/pages/Opening/ProjectManager/Room/index.tsx +++ b/src/pages/Opening/ProjectManager/Room/index.tsx @@ -699,9 +699,12 @@ const Room: React.FC<{}> = () => { //解密时限 function onOkJmsx(value: any) { - endTimeSet(value.format('yyyy-MM-DD HH:mm:ss')); + // endTimeSet(value.format('yyyy-MM-DD HH:mm:ss')); + setTime.current = value.format('yyyy-MM-DD HH:mm:ss'); } const [sxLoading, sxLoadingSet] = useState(false); + //设置解密时限存储 + const setTime = useRef('') const jmTime = () => { return ( = () => { onCancel={() => { jmTimeVisSet(false); }} onOk={async () => { sxLoadingSet(true); - if (endTime != '') { - await endTimeConfig({ id: tdocId, decryptEndDate: endTime }); + if (setTime.current != '') { + await endTimeConfig({ id: tdocId, decryptEndDate: setTime.current }); jmTimeVisSet(false); + countSet(count + 1); } else { message.error('您未设置解密截止时间') } sxLoadingSet(false); - countSet(count + 1); }} > @@ -733,7 +736,7 @@ const Room: React.FC<{}> = () => { showTime={{ defaultValue: moment('00:00:00', 'HH:mm:ss') }} // disabled={disabled} showNow={false} - onOk={onOkJmsx} + onChange={onOkJmsx} />