编辑基本信息

dev_cs
caicai8 5 years ago
parent 6adbf370b8
commit 2d0794fc23

@ -421,7 +421,11 @@ class AccountBasic extends Component {
identity
}=this.state;
const { getFieldDecorator } = this.props.form;
let{basicInfo}=this.props
let{ basicInfo }=this.props
// 已职业认证的账户不能修改职业,学校/单位,院系/部门产品还未确定先默认为false--可以更改
// basicInfo && basicInfo.professional_certification == "certified"
const professionalFlag = false;
// form合并了
const propsWithoutForm = Object.assign({}, this.props)
@ -607,7 +611,7 @@ class AccountBasic extends Component {
message: '请先选择职业',
}],
})(
<Select style={{width:"190px",marginRight:"20px"}} onChange={this.changeJob}>
<Select style={{width:"190px",marginRight:"20px"}} onChange={this.changeJob} disabled={professionalFlag}>
<Option value="teacher">教师</Option>
<Option value="student">学生</Option>
<Option value="professional">专业人士</Option>
@ -628,7 +632,7 @@ class AccountBasic extends Component {
message: '请先输入学号',
}],
})(
<Input type="text" placeholder="请输入学号" style={{width:"190px"}}></Input>
<Input type="text" placeholder="请输入学号" style={{width:"190px"}} disabled={professionalFlag}></Input>
)}
</Form.Item>
}
@ -646,7 +650,7 @@ class AccountBasic extends Component {
message: '请先选择职称',
}],
})(
<Select style={{width:"190px"}}>
<Select style={{width:"190px"}} disabled={professionalFlag}>
<Option value="教授">教授</Option>
<Option value="副教授">副教授</Option>
<Option value="讲师">讲师</Option>
@ -669,7 +673,7 @@ class AccountBasic extends Component {
message: '请先选择职称',
}],
})(
<Select style={{width:"190px"}}>
<Select style={{width:"190px"}} disabled={professionalFlag}>
<Option value="企业管理者">企业管理者</Option>
<Option value="部门管理者">部门管理者</Option>
<Option value="高级工程师">高级工程师</Option>
@ -703,7 +707,7 @@ class AccountBasic extends Component {
}],
})(
<AutoComplete width={400} showSearch onSearch={this.filterList} onChange={this.changeList}>
<AutoComplete width={400} showSearch onSearch={this.filterList} onChange={this.changeList} disabled={professionalFlag}>
{
filterSchoolList && filterSchoolList.map((item,key)=>{
return(<Option value={item.name} key={item.id}>{item.name}</Option>)
@ -741,7 +745,7 @@ class AccountBasic extends Component {
// }
}],
})(
<AutoComplete width={400} showSearch onSearch={this.searchDepartment} onChange={this.changeDepartment}>
<AutoComplete width={400} showSearch onSearch={this.searchDepartment} onChange={this.changeDepartment} disabled={professionalFlag}>
{
filterDepartments && filterDepartments.map((item,key)=>{
return(

Loading…
Cancel
Save