Commit 46b4d2c2 by zhangleyuan

feat:处理学员搜索

parent 7ba16ff2
...@@ -71,13 +71,13 @@ function LeftStructureTree(props) { ...@@ -71,13 +71,13 @@ function LeftStructureTree(props) {
: :
<div><WWOpenDataCom type="departmentName" openid={record.name}/></div> <div><WWOpenDataCom type="departmentName" openid={record.name}/></div>
} }
{type === 'user' && {type === 'group' &&
record.postDepNamesList.map((item,index)=>{ record.postDepNamesList.map((item,index)=>{
return <span><WWOpenDataCom type="departmentName" openid={item}/></span> return <span><WWOpenDataCom type="departmentName" openid={item}/></span>
}) })
} }
{type === 'post' && {type === 'post' &&
<span>{record.parentName}</span> <span type='post'>{record.parentName}</span>
} }
</div> </div>
), ),
......
...@@ -243,7 +243,7 @@ class NewChooseMembersModal extends React.Component { ...@@ -243,7 +243,7 @@ class NewChooseMembersModal extends React.Component {
params.nowDepType = this.props.addDepType; params.nowDepType = this.props.addDepType;
} }
if(this.props.selectDep){ if(this.props.selectDep){
params.nowDepType = this.props.selectDep.id; params.departmentId = this.props.selectDep.id;
} }
StoreService.getDepartmentUser(params).then((res) => { StoreService.getDepartmentUser(params).then((res) => {
const { result = {}} = res; const { result = {}} = res;
......
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