|
|
|
@ -36,6 +36,7 @@ class Question extends Component {
|
|
|
|
|
Contentdata:[],
|
|
|
|
|
difficulty:null,
|
|
|
|
|
visiblemys:false,
|
|
|
|
|
item_type:null,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -170,6 +171,19 @@ class Question extends Component {
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
setitem_types=(item_type)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
item_type:item_type,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var data={
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
difficulty:this.state.difficulty,
|
|
|
|
|
item_type:item_type,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleVisibleChange=(boll)=>{
|
|
|
|
|
this.setState({
|
|
|
|
@ -190,6 +204,7 @@ class Question extends Component {
|
|
|
|
|
<Headplugselection ></Headplugselection>
|
|
|
|
|
{/*头部*/}
|
|
|
|
|
<Contentpart {...this.state} {...this.props}
|
|
|
|
|
setitem_types={(e)=>this.setitem_types(e)}
|
|
|
|
|
handleVisibleChange={(e)=>this.handleVisibleChange(e)}
|
|
|
|
|
setdifficulty={(e)=>this.setdifficulty(e)}
|
|
|
|
|
showmodels={()=>this.showmodels()}
|
|
|
|
|