|
@@ -130,7 +130,7 @@ const Newuser = Form.create()(React.createClass({
|
|
|
email:this.state.email,
|
|
|
superiorId:this.state.theTypes?this.state.theTypes:this.state.superiorId,
|
|
|
district:this.state.district,
|
|
|
- headPortraitUrl:theorgCodeUrl,
|
|
|
+ headPortraitUrl:theorgCodeUrl.length?theorgCodeUrl:'',
|
|
|
})
|
|
|
|
|
|
}
|
|
@@ -302,7 +302,6 @@ const Newuser = Form.create()(React.createClass({
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if(nextProps.userDetaile&&nextProps.datauser.id){
|
|
|
this.loaduser(nextProps.datauser)
|
|
|
- console.log(nextProps.role)
|
|
|
this.setState({
|
|
|
rolek:nextProps.role
|
|
|
})
|