Skip to content

Commit

Permalink
fix: 修复选人组件搜索自己时数据错误,同时限制只能选本组织人员 salt-ui#415
Browse files Browse the repository at this point in the history
  • Loading branch information
daiqiang.dai committed Dec 2, 2021
1 parent 6758457 commit bffea8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EmployeeField/EmployeeField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class EmployeeField extends React.Component {
return;
}
const i18n = locale[this.props.locale];
const showRootOrg = false;
const option = {
multiple,
max,
Expand All @@ -92,6 +93,7 @@ class EmployeeField extends React.Component {
users: value.map(v => v.key),
disabledUsers,
enableAutoJumpDepart,
showRootOrg,
};
const Ali = window.Ali || {};
if (window.Ali) {
Expand Down Expand Up @@ -125,7 +127,7 @@ class EmployeeField extends React.Component {
pickedUsers: option.users,
maxUsers: option.max,
startWithDepartmentId: 0,
showRootOrg: true,
showRootOrg,
corpId,
onSuccess(result) {
onChange(transToValue(result.users));
Expand Down

0 comments on commit bffea8f

Please sign in to comment.