|
|
@@ -68,6 +68,8 @@ function onOpen(props: FormProps.Base<SysUserPersonnel.SysUserPerInfo>) { |
|
|
|
if (props.record.personId) { |
|
|
|
//如果传了id,就去请求api获取record |
|
|
|
userManagePersonnelApi.detail({ id: props.record.personId }).then((res: any) => { |
|
|
|
if (!res.data.majorId) res.data.majorId = ""; |
|
|
|
if (!res.data.depId) res.data.depId = ""; |
|
|
|
sysUserProps.record = res.data; |
|
|
|
}); |
|
|
|
} |
|
|
|