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