|  |  |  | @ -110,11 +110,7 @@ class AccountBasic extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |     this.props.form.validateFieldsAndScroll((err, values) => { | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(values); | 
			
		
	
		
			
				
					|  |  |  |  |       let {basicInfo}=this.props; | 
			
		
	
		
			
				
					|  |  |  |  |       // TODO 为什么modal里的form影响到这里的了
 | 
			
		
	
		
			
				
					|  |  |  |  |       if (err) { | 
			
		
	
		
			
				
					|  |  |  |  |         delete err.depart | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(!err || Object.keys(err).length == 0){ | 
			
		
	
		
			
				
					|  |  |  |  |       if(!err ){ | 
			
		
	
		
			
				
					|  |  |  |  |         let url=`/users/accounts/${basicInfo.id}.json` | 
			
		
	
		
			
				
					|  |  |  |  |         axios.put((url),{ | 
			
		
	
		
			
				
					|  |  |  |  |           nickname:values.nickname, | 
			
		
	
	
		
			
				
					|  |  |  | @ -202,16 +198,18 @@ class AccountBasic extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   //搜索部门
 | 
			
		
	
		
			
				
					|  |  |  |  |   searchDepartment=(e)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     this.props.form.setFieldsValue({ | 
			
		
	
		
			
				
					|  |  |  |  |       org2:e | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  |     let arr = this.state.departments.filter(function(item){ | 
			
		
	
		
			
				
					|  |  |  |  |       return item.name.indexOf(e) > -1 | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  |     this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |       filterDepartments:arr, | 
			
		
	
		
			
				
					|  |  |  |  |       departmentsName:e | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  |     if (e) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.props.form.setFieldsValue({ | 
			
		
	
		
			
				
					|  |  |  |  |         org2:e | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |       let arr = this.state.departments.filter(function(item){ | 
			
		
	
		
			
				
					|  |  |  |  |         return item.name.indexOf(e) > -1 | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |       this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |         filterDepartments:arr, | 
			
		
	
		
			
				
					|  |  |  |  |         departmentsName:e | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   // 选择部门、学院
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -306,12 +304,15 @@ class AccountBasic extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |     const { getFieldDecorator } = this.props.form; | 
			
		
	
		
			
				
					|  |  |  |  |     let{basicInfo}=this.props | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     // form合并了
 | 
			
		
	
		
			
				
					|  |  |  |  |     const propsWithoutForm = Object.assign({}, this.props) | 
			
		
	
		
			
				
					|  |  |  |  |     delete propsWithoutForm.form | 
			
		
	
		
			
				
					|  |  |  |  |     return ( | 
			
		
	
		
			
				
					|  |  |  |  |       <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <ApplyForAddOrgModal ref="applyForAddOrgModal" wrappedComponentRef={(form) => this.applyForAddOrgForm = form}  schoolName={school} | 
			
		
	
		
			
				
					|  |  |  |  |         {...this.props}></ApplyForAddOrgModal> | 
			
		
	
		
			
				
					|  |  |  |  |         {...propsWithoutForm}></ApplyForAddOrgModal> | 
			
		
	
		
			
				
					|  |  |  |  |         <ApplyForAddChildOrgModal ref="applyForAddChildOrgModal" schoolName={school} schoolId={school_id} departmentName={departmentsName} | 
			
		
	
		
			
				
					|  |  |  |  |         {...this.props} wrappedComponentRef={(form) => this.applyForAddChildOrgForm = form} ></ApplyForAddChildOrgModal> | 
			
		
	
		
			
				
					|  |  |  |  |         {...propsWithoutForm} wrappedComponentRef={(form) => this.applyForAddChildOrgForm = form} ></ApplyForAddChildOrgModal> | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         <div className="basicForm"> | 
			
		
	
		
			
				
					|  |  |  |  |           <style>{` | 
			
		
	
	
		
			
				
					|  |  |  | 
 |