|
|
|
@ -17,6 +17,7 @@ import NoneDatas from '../component/NoneDatas';
|
|
|
|
|
import Contentquestionbank from "./Contentquestionbank";
|
|
|
|
|
import LoadingSpin from '../../../common/LoadingSpin';
|
|
|
|
|
import Listjihe from "./Listjihe";
|
|
|
|
|
import Certifiedprofessional from "../../modals/Certifiedprofessional";
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
class Contentpart extends Component {
|
|
|
|
@ -25,6 +26,8 @@ class Contentpart extends Component {
|
|
|
|
|
this.state = {
|
|
|
|
|
page:1,
|
|
|
|
|
defaultActiveKeyss:"0",
|
|
|
|
|
mydisplay:false,
|
|
|
|
|
occupation:2,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -86,9 +89,31 @@ class Contentpart extends Component {
|
|
|
|
|
this.props.callback(defaultActiveKeys,false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
HideAddcoursestypess=(i)=>{
|
|
|
|
|
console.log("调用了");
|
|
|
|
|
this.setState({
|
|
|
|
|
mydisplay:true,
|
|
|
|
|
occupation:i,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mydisplayHidedel=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
mydisplay:false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
xinzenw=(url)=>{
|
|
|
|
|
//只限制了教师
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.props.history.push(url);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {page,defaultActiveKeyss}=this.state;
|
|
|
|
|
let {page,defaultActiveKeyss,mydisplay}=this.state;
|
|
|
|
|
let {defaultActiveKey,defaultActiveKeybool}=this.props;
|
|
|
|
|
let defaultActiveKeys=defaultActiveKey+'';
|
|
|
|
|
|
|
|
|
@ -125,6 +150,27 @@ class Contentpart extends Component {
|
|
|
|
|
return (
|
|
|
|
|
<div className=" clearfix mt25">
|
|
|
|
|
<div className="educontent mt10 pb20 w1200s">
|
|
|
|
|
{
|
|
|
|
|
mydisplay===true?
|
|
|
|
|
<Certifiedprofessional {...this.props} {...this.state} ModalCancelsy={this.mydisplayHidedel} />
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
mydisplay===true?
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
body{
|
|
|
|
|
overflow:hidden!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<div className="w1200ms contentparttit" style={{
|
|
|
|
|
position: "relative",
|
|
|
|
|
}}>
|
|
|
|
@ -203,13 +249,13 @@ class Contentpart extends Component {
|
|
|
|
|
width:"50%"
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
|
|
<a href={'/Integeneration'}>
|
|
|
|
|
<a onClick={()=>this.xinzenw('/Integeneration')}>
|
|
|
|
|
<div className="newbutoonss">
|
|
|
|
|
<p className="newbutoontess" >智能组卷</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href={'/question'} >
|
|
|
|
|
<a onClick={()=>this.xinzenw('/question')}>
|
|
|
|
|
<div className="newbutoons mr39">
|
|
|
|
|
<p className="newbutoontess" >人工组卷</p>
|
|
|
|
|
</div>
|
|
|
|
|