master
hjm 5 years ago
parent 0e8ce52fa5
commit af40f08f04

@ -719,7 +719,7 @@ class AccountBasic extends Component {
</Form.Item> </Form.Item>
{ {
(!filterDepartments || (filterDepartments && filterDepartments.length==0 ) filterDepartments != undefined && ( (filterDepartments && filterDepartments.length==0 )
|| (departmentsName == '' && !this.state.department_id || (departmentsName == '' && !this.state.department_id
&& (!departments || departments.length == 0) )) && && (!departments || departments.length == 0) )) &&
<div style={{marginLeft: '113px',height:"20px",lineHeight:"20px"}}> <div style={{marginLeft: '113px',height:"20px",lineHeight:"20px"}}>

@ -16,7 +16,7 @@ class ApplyForAddChildOrgModal extends Component{
} }
componentDidUpdate=(prevState)=>{ componentDidUpdate=(prevState)=>{
if(this.props.departmentName && prevState.departmentName != this.props.departmentName){ if(prevState.departmentName != this.props.departmentName){
this.setValue(this.props.departmentName) this.setValue(this.props.departmentName)
} }
} }

Loading…
Cancel
Save