dev_forum
hjm 5 years ago
parent d8670b2092
commit c87c6280bf

@ -35,12 +35,13 @@ class single extends Component{
}=this.props }=this.props
let isStudent =this.props.isStudent(); let isStudent =this.props.isStudent();
let isJudge = questionType.question_type == 2
return( return(
<div className="pl30 pr30 singleDisplay"> <div className="pl30 pr30 singleDisplay">
<Radio.Group disabled={ user_exercise_status == 1 ? true : false } defaultValue={questionType.user_answer[0]} onChange={this.changeItem}> <Radio.Group disabled={ user_exercise_status == 1 ? true : false } defaultValue={questionType.user_answer[0]} onChange={this.changeItem}>
{ {
questionType.question_choices && questionType.question_choices.map((item,key)=>{ questionType.question_choices && questionType.question_choices.map((item,key)=>{
let prefix = `${tagArray[key]}.` let prefix = isJudge ? '' : `${tagArray[key]}.`
return( return(
<p className={parseInt(questionType.question_type) == 0 ? "clearfix mb15 df" : "fl mr40"}> <p className={parseInt(questionType.question_type) == 0 ? "clearfix mb15 df" : "fl mr40"}>
<Radio className="fl lineh-20" value={item.choice_id}>{prefix}</Radio> <Radio className="fl lineh-20" value={item.choice_id}>{prefix}</Radio>

@ -663,14 +663,15 @@ class AccountBasic extends Component {
</AutoComplete> </AutoComplete>
)} )}
</Form.Item> </Form.Item>
<div style={{marginLeft: '100px',height:"20px",lineHeight:"20px"}}>
{!filterSchoolList || (filterSchoolList && filterSchoolList.length==0 )&& school && {!filterSchoolList || (filterSchoolList && filterSchoolList.length==0 )&& school &&
<div style={{marginLeft: '100px',height:"20px",lineHeight:"20px"}}>
<span> <span>
<span style={{color: '#CDCDCD'}}>未找到包含{school}的高校</span> <span style={{color: '#CDCDCD'}}>未找到包含{school}的高校</span>
<span style={{color: '#4CACFF', cursor: 'pointer'}} onClick={this.showApplyForAddOrgModal}>申请新增</span> <span style={{color: '#4CACFF', cursor: 'pointer'}} onClick={this.showApplyForAddOrgModal}>申请新增</span>
</span> </span>
}
</div> </div>
}
<Form.Item <Form.Item
label="院系/部门" label="院系/部门"
className="formItemInline mb0" className="formItemInline mb0"
@ -701,15 +702,17 @@ class AccountBasic extends Component {
</AutoComplete> </AutoComplete>
)} )}
</Form.Item> </Form.Item>
<div style={{marginLeft: '100px',height:"20px",lineHeight:"20px"}}>
{ {
!filterDepartments || (filterDepartments && filterDepartments.length==0 )&& departmentsName && !filterDepartments || (filterDepartments && filterDepartments.length==0 )&& departmentsName &&
<div style={{marginLeft: '100px',height:"20px",lineHeight:"20px"}}>
<span> <span>
<span style={{color: '#CDCDCD'}}>未找到包含{departmentsName}的院系/部门</span> <span style={{color: '#CDCDCD'}}>未找到包含{departmentsName}的院系/部门</span>
<span style={{color: '#4CACFF', cursor: 'pointer'}} onClick={this.showApplyForAddChildOrgModal}>申请新增</span> <span style={{color: '#4CACFF', cursor: 'pointer'}} onClick={this.showApplyForAddChildOrgModal}>申请新增</span>
</span> </span>
}
</div> </div>
}
{/* htmlType="submit" */} {/* htmlType="submit" */}
{/* <Form.Item> {/* <Form.Item>

@ -15,6 +15,7 @@ class AccountCertification extends Component {
} }
checkBasicInfo = (index) => { checkBasicInfo = (index) => {
if (index == 1) {
if ( this.props.basicInfo.base_info_completed == true) { if ( this.props.basicInfo.base_info_completed == true) {
this.showRealNameCertificationModal(index) this.showRealNameCertificationModal(index)
} else { } else {
@ -26,25 +27,34 @@ class AccountCertification extends Component {
} }
}) })
} }
} else if (index == 2) {
this.showRealNameCertificationModal(index)
}
} }
showRealNameCertificationModal = (index) => { showRealNameCertificationModal = (index) => {
this.setState({ this.setState({
certification:index, certification:index,
}, () => {
if (index == 1) {
this.realNameCertificationModal1.setVisible(true)
} else if (index == 2) {
this.realNameCertificationModal2.setVisible(true)
}
}) })
this.realNameCertificationModal.setVisible(true)
} }
render() { render() {
let {certification}=this.state let {certification}=this.state
let {basicInfo} = this.props; let {basicInfo} = this.props;
return ( return (
<div> <div>
{this.state.certification===1?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props} {this.state.certification===1?<RealNameCertificationModal {...this.props}
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification} wrappedComponentRef={(form) => this.realNameCertificationModal1 = form} certification={certification}
></RealNameCertificationModal>:""} ></RealNameCertificationModal>:""}
{this.state.certification===2?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props} {this.state.certification===2?<RealNameCertificationModal {...this.props}
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification} wrappedComponentRef={(form) => this.realNameCertificationModal2 = form} certification={certification}
></RealNameCertificationModal>:""} ></RealNameCertificationModal>:""}
<div className="basicForm"> <div className="basicForm">
<style>{` <style>{`

Loading…
Cancel
Save