From 5b6cdde9e9adfdb2c0cba88a0ee98ba1e73c9291 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 17 Mar 2023 16:42:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=209388=20=E6=A3=80=E6=9F=A5=E9=A1=B9?= =?UTF-8?q?=E8=AE=BE=E5=AE=9A-=E5=88=A0=E9=99=A4=E5=88=86=E7=BB=84?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=90=8E=E5=88=86=E7=BB=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/patrolManage/components/checkItemsModal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/patrolManage/components/checkItemsModal.js b/web/client/src/sections/patrolManage/components/checkItemsModal.js index 4eefa88..5ed6747 100644 --- a/web/client/src/sections/patrolManage/components/checkItemsModal.js +++ b/web/client/src/sections/patrolManage/components/checkItemsModal.js @@ -23,10 +23,10 @@ const CheckItemsModal = ({ visible, onOk, onCancel, curRecord, dispatch }) => { }); } - function delGroup(id) { + function delGroup(id, lastGroup) { dispatch(delCheckItemsGroup(id)).then(res => { if (res.success) { - form.setFieldValue('group', null) + form.setFieldValue('group', lastGroup === id ? null : lastGroup) getGroup(); } }); @@ -92,7 +92,7 @@ const CheckItemsModal = ({ visible, onOk, onCancel, curRecord, dispatch }) => { return })