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} />