Commit 851499b8 by zhangleyuan

feat:处理搜索

parent e93b04f8
...@@ -28,6 +28,7 @@ function SearchUser(props) { ...@@ -28,6 +28,7 @@ function SearchUser(props) {
} }
function selectDep(e,item){ function selectDep(e,item){
if(e.target.checked){ if(e.target.checked){
console.log('item',item);
props.onSelect(item,'department'); props.onSelect(item,'department');
} }
} }
......
...@@ -250,7 +250,10 @@ class NewChooseMembersModal extends React.Component { ...@@ -250,7 +250,10 @@ class NewChooseMembersModal extends React.Component {
if(record.departmentUserVOList){ if(record.departmentUserVOList){
_list = record.departmentUserVOList; _list = record.departmentUserVOList;
} }
this.setState({selectUserList:[...selectUserList,_list]}); console.log('_list',_list);
this.setState({selectUserList:[...selectUserList,..._list]},()=>{
console.log('selectUserList',this.state.selectUserList);
});
} }
// }else{ // }else{
// const params = { // const params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment