|
|
|
@ -8,10 +8,10 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
let {
|
|
|
|
|
professionalFlag ,
|
|
|
|
|
let {
|
|
|
|
|
professionalFlag ,
|
|
|
|
|
getFieldDecorator ,
|
|
|
|
|
identity ,
|
|
|
|
|
filterSchoolList ,
|
|
|
|
@ -32,7 +32,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
{getFieldDecorator('job', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"teacher",
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择职业',
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
@ -45,7 +45,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
{
|
|
|
|
|
identity && identity=="student" &&
|
|
|
|
|
identity && identity=="student" &&
|
|
|
|
|
<Form.Item
|
|
|
|
|
label=""
|
|
|
|
|
className="formItemInline fl"
|
|
|
|
@ -55,7 +55,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('student_No', {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先输入学号',
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
@ -65,7 +65,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
</Form.Item>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
identity && identity=="teacher" &&
|
|
|
|
|
identity && identity=="teacher" &&
|
|
|
|
|
<Form.Item
|
|
|
|
|
label=""
|
|
|
|
|
className="formItemInline fl"
|
|
|
|
@ -75,7 +75,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
{getFieldDecorator('job1', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"教授",
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择职称',
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
@ -90,7 +90,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
</Form.Item>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
identity && identity=="professional" &&
|
|
|
|
|
identity && identity=="professional" &&
|
|
|
|
|
<Form.Item
|
|
|
|
|
label=""
|
|
|
|
|
className="formItemInline fl mb0"
|
|
|
|
@ -100,7 +100,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
{getFieldDecorator('job2', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"企业管理者",
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择职称',
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
@ -125,7 +125,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
rules: [{
|
|
|
|
|
// initialValue: this.state.cityDefaultValue,
|
|
|
|
|
// type: 'array',
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择学校/单位',
|
|
|
|
|
|
|
|
|
|
// 做不了,输入时和submit时都会执行这里
|
|
|
|
@ -136,20 +136,20 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
// }
|
|
|
|
|
// callback('请先选择学校/单位');
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<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>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{!filterSchoolList || (filterSchoolList && filterSchoolList.length==0 )&& school &&
|
|
|
|
|
<div style={{marginLeft: '113px',height:"20px",lineHeight:"20px"}}>
|
|
|
|
|
<span>
|
|
|
|
@ -158,7 +158,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="院系/部门"
|
|
|
|
|
className="formItemInline mb0"
|
|
|
|
@ -169,7 +169,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
rules: [{
|
|
|
|
|
// initialValue: this.state.cityDefaultValue,
|
|
|
|
|
// type: 'array',
|
|
|
|
|
required: true,
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择院系/部门',
|
|
|
|
|
// validator: (rule, value, callback) => {
|
|
|
|
|
// if (this.this_department_id) {
|
|
|
|
@ -188,14 +188,14 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
{
|
|
|
|
|
filterDepartments != undefined && ( (filterDepartments && filterDepartments.length==0 )
|
|
|
|
|
|| (departmentsName == '' && ! department_id
|
|
|
|
|
&& (!departments || departments.length == 0) )) &&
|
|
|
|
|
filterDepartments != undefined && ( (filterDepartments && filterDepartments.length==0 )
|
|
|
|
|
|| (departmentsName == '' && ! department_id
|
|
|
|
|
&& (!departments || departments.length == 0) )) &&
|
|
|
|
|
<div style={{marginLeft: '113px',height:"20px",lineHeight:"20px"}}>
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{color: '#CDCDCD'}}>{departmentsName ? `未找到包含“${departmentsName}”的院系/部门` : '未找到院系'},</span>
|
|
|
|
|