From 599c6e8b76de3929acdcd56e182bad25dfa31919 Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 27 Oct 2022 09:57:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dkey=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E5=B7=B2=E4=BD=9C=E5=BA=9F=E4=B8=8D=E8=83=BD=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/UseKeyAddEdit.jsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/pages/plan/key/UseKeyAddEdit.jsx b/src/pages/plan/key/UseKeyAddEdit.jsx index 6024f218..869caaa9 100644 --- a/src/pages/plan/key/UseKeyAddEdit.jsx +++ b/src/pages/plan/key/UseKeyAddEdit.jsx @@ -100,7 +100,6 @@ const UseKeyAddEdit = () => { error_count: 0, exceldata: [], myfile: {}, - isCancel: false, audit_visible: false, key_status: -1, keyType: Number(sessionStorage.getItem("keyType")), @@ -427,10 +426,6 @@ const UseKeyAddEdit = () => { handelResponse( res, (req, msg) => { - if (Number(req.status) === 7) { - setState({ isCancel: true }); - } - setState({ key_status: req.status, id: req.id, keyCodeId: req.id }); editFun(req); }, @@ -1102,12 +1097,9 @@ const UseKeyAddEdit = () => {
- {state.isCancel ? null : ( - - )} - +