|
|
|
@ -6,6 +6,7 @@ import "../css/Courses.css";
|
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import Modals from '../../modals/Modals';
|
|
|
|
|
import AuthenModel from '../coursmodel/AuthenModel'
|
|
|
|
|
import {WordsBtn, ActionBtn} from 'educoder';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +50,9 @@ class CoursesNew extends Component {
|
|
|
|
|
addonAfteronelentwo:0,
|
|
|
|
|
bordebool:false,
|
|
|
|
|
smallspinning:false,
|
|
|
|
|
bottonloading:false
|
|
|
|
|
bottonloading:false,
|
|
|
|
|
authenmodels:false,
|
|
|
|
|
authenmodelsinde:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
@ -388,15 +391,35 @@ class CoursesNew extends Component {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
onchanges =(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
Realnamecertification:e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
//实名认证
|
|
|
|
|
|
|
|
|
|
if(e.target.checked===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
authenmodels:true,
|
|
|
|
|
authenmodelsinde:1
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
Realnamecertification:e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(e.target.checked);
|
|
|
|
|
}
|
|
|
|
|
onchangess=(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
Professionalcertification:e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
//职业认证
|
|
|
|
|
if(e.target.checked===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
authenmodels:true,
|
|
|
|
|
authenmodelsinde:2
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
Professionalcertification:e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// console.log(e.target.checked);
|
|
|
|
|
}
|
|
|
|
|
Searchvalue=(value)=>{
|
|
|
|
@ -552,6 +575,27 @@ class CoursesNew extends Component {
|
|
|
|
|
showApplyForAddOrgModal = () => {
|
|
|
|
|
this.applyForAddOrgForm.setVisible(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setmodalsTypedel=(bool,i)=>{
|
|
|
|
|
if(i===1){
|
|
|
|
|
if(bool===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
Realnamecertification:true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else if(i===2){
|
|
|
|
|
if(bool===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
Professionalcertification:true,
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
authenmodels:false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {datatime,school,searchlistscholl,bordebool,dataname} = this.state;
|
|
|
|
|
const {getFieldDecorator} = this.props.form;
|
|
|
|
@ -604,6 +648,26 @@ class CoursesNew extends Component {
|
|
|
|
|
</style>
|
|
|
|
|
<ApplyForAddOrgModal ref="applyForAddOrgModal" wrappedComponentRef={(form) => this.applyForAddOrgForm = form} schoolName={school}
|
|
|
|
|
{...propsWithoutForm}></ApplyForAddOrgModal>
|
|
|
|
|
{
|
|
|
|
|
this.state.authenmodels&&this.state.authenmodels===true?
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
body{
|
|
|
|
|
|
|
|
|
|
overflow:hidden !important ;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.state.authenmodels&&this.state.authenmodels===true?
|
|
|
|
|
<AuthenModel {...this.state} {...this.props} authenmodelsinde={this.state.authenmodelsinde} setmodalsTypedel={(bool,i)=>this.setmodalsTypedel(bool,i)}></AuthenModel>
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{/*提示*/}
|
|
|
|
|
<Modals
|
|
|
|
|
modalsType={this.state.Modalstype}
|
|
|
|
|