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