调整选择学校问题

develop
杨树明 5 years ago
parent 078c37cbda
commit a003c241e0

@ -137,7 +137,7 @@ class AccountBasic extends Component {
handleSubmit = () => {
this.props.form.validateFieldsAndScroll({ force: true }, (err, values) => {
console.log(values);
let {basicInfo}=this.props;
if(!err ){
if (!this.state.school_id) {
@ -283,7 +283,7 @@ class AccountBasic extends Component {
getDepartments=(e,flag)=>{
let arr=this.state.schoolList.filter(function(item){
if(item.name.indexOf(e) > -1){
if(item.name===e){
return item.name;
}
});

@ -142,7 +142,7 @@ class AccountBasicEditItem extends Component {
<AutoComplete width={400} showSearch onSearch={this.props.filterList} onChange={this.props.changeList} disabled={professionalFlag}>
{
filterSchoolList && filterSchoolList.map((item,key)=>{
return(<Option value={item.name} key={item.id}>{item.name}</Option>)
return(<Option value={item.name} key={key} id={item.id}>{item.name}</Option>)
})
}
</AutoComplete>

Loading…
Cancel
Save