From cac56cfeb343eab7cd7b35b7ebe2e8d5827cc363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98lijianhao=E2=80=99?= Date: Thu, 28 Jul 2022 11:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=BF=AE=E6=94=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/organization/components/depModal.js | 4 +++- web/client/src/sections/organization/containers/user.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/client/src/sections/organization/components/depModal.js b/web/client/src/sections/organization/components/depModal.js index 8f6d7471..1a8417df 100644 --- a/web/client/src/sections/organization/components/depModal.js +++ b/web/client/src/sections/organization/components/depModal.js @@ -7,11 +7,13 @@ const DepModal = (props) => { const { visible, onVisibleChange, onConfirm, depModalType, depData, data } = props; const formRef = useRef(); const onFinish = (values) => { + console.log('values:',values); if (onConfirm) { if (depModalType === 'edit') { let value = { name: values.name, - depId: data.id + depId: data.id, + dependence:values.dependence } onConfirm(value) } else { diff --git a/web/client/src/sections/organization/containers/user.js b/web/client/src/sections/organization/containers/user.js index f5ac9ac9..b32dffc2 100644 --- a/web/client/src/sections/organization/containers/user.js +++ b/web/client/src/sections/organization/containers/user.js @@ -168,7 +168,10 @@ const UserManage = (props) => { } //部门新增及编辑 const onDepConfirm = (data) => { + console.log('depModalType:',depModalType); + console.log('data:',data); if (depModalType == 'edit') { + dispatch(updateDep(data)).then(res => { if (res.success) { setDepModalVisible(false);