Browse Source

部门修改问题修复

release_0.0.4
‘lijianhao’ 2 years ago
parent
commit
cac56cfeb3
  1. 4
      web/client/src/sections/organization/components/depModal.js
  2. 3
      web/client/src/sections/organization/containers/user.js

4
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 {

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

Loading…
Cancel
Save