|
|
|
@ -28,6 +28,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
label="职业"
|
|
|
|
|
className="formItemInline fl"
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('job', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"teacher",
|
|
|
|
@ -41,6 +42,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
<Option value="professional">专业人士</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
{
|
|
|
|
|
identity && identity=="student" &&
|
|
|
|
@ -50,6 +52,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
style={{ 'margin-top': '3px'}}
|
|
|
|
|
// style={{display:identity && identity=="student" ? "block":"none"}}
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('student_No', {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
@ -58,6 +61,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
})(
|
|
|
|
|
<Input type="text" placeholder="请输入学号" style={{width:"190px"}} disabled={professionalFlag}></Input>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
@ -67,6 +71,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
className="formItemInline fl"
|
|
|
|
|
// style={{display:identity && identity=="teacher" ? "block":"none"}}
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('job1', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"教授",
|
|
|
|
@ -81,6 +86,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
<Option value="助教">助教</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
@ -90,6 +96,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
className="formItemInline fl mb0"
|
|
|
|
|
// style={{display:identity && identity=="professional" ? "block":"none"}}
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('job2', {
|
|
|
|
|
rules: [{
|
|
|
|
|
initialValue:"企业管理者",
|
|
|
|
@ -105,6 +112,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
<Option value="助理工程师">助理工程师</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
@ -112,6 +120,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
label="学校/单位"
|
|
|
|
|
className="formItemInline mb0"
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('org', {
|
|
|
|
|
rules: [{
|
|
|
|
|
// initialValue: this.state.cityDefaultValue,
|
|
|
|
@ -138,6 +147,7 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
}
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
{!filterSchoolList || (filterSchoolList && filterSchoolList.length==0 )&& school &&
|
|
|
|
@ -148,39 +158,40 @@ class AccountBasicEditItem extends Component {
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="院系/部门"
|
|
|
|
|
className="formItemInline mb0"
|
|
|
|
|
style={{ 'margin-top': '10px'}}
|
|
|
|
|
>
|
|
|
|
|
{getFieldDecorator('org2', {
|
|
|
|
|
rules: [{
|
|
|
|
|
// initialValue: this.state.cityDefaultValue,
|
|
|
|
|
// type: 'array',
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择院系/部门',
|
|
|
|
|
// validator: (rule, value, callback) => {
|
|
|
|
|
// if (this.this_department_id) {
|
|
|
|
|
// callback();
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// callback('请先选择院系/部门');
|
|
|
|
|
// }
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<AutoComplete width={400} showSearch onSearch={this.props.searchDepartment} onChange={this.props.changeDepartment} disabled={professionalFlag}>
|
|
|
|
|
{
|
|
|
|
|
filterDepartments && filterDepartments.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Option value={item.name} key={item.name}>{item.name}</Option>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="院系/部门"
|
|
|
|
|
className="formItemInline mb0"
|
|
|
|
|
style={{ 'margin-top': '10px'}}
|
|
|
|
|
>
|
|
|
|
|
<ConditionToolTip title={() => (<div><p>已提交职业认证</p><p>可在<a href="/account/certification" className="color-blue">认证信息</a>中通过“重新认证”进行修改</p></div>)} condition= { professionalFlag }>
|
|
|
|
|
{getFieldDecorator('org2', {
|
|
|
|
|
rules: [{
|
|
|
|
|
// initialValue: this.state.cityDefaultValue,
|
|
|
|
|
// type: 'array',
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择院系/部门',
|
|
|
|
|
// validator: (rule, value, callback) => {
|
|
|
|
|
// if (this.this_department_id) {
|
|
|
|
|
// callback();
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// callback('请先选择院系/部门');
|
|
|
|
|
// }
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<AutoComplete width={400} showSearch onSearch={this.props.searchDepartment} onChange={this.props.changeDepartment} disabled={professionalFlag}>
|
|
|
|
|
{
|
|
|
|
|
filterDepartments && filterDepartments.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Option value={item.name} key={item.name}>{item.name}</Option>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
{
|
|
|
|
|
filterDepartments != undefined && ( (filterDepartments && filterDepartments.length==0 )
|
|
|
|
|
|| (departmentsName == '' && ! department_id
|
|
|
|
|