|
|
|
@ -36,7 +36,9 @@ class Question extends Component {
|
|
|
|
|
Contentdata:[],
|
|
|
|
|
difficulty:null,
|
|
|
|
|
visiblemys:false,
|
|
|
|
|
visiblemyss:false,
|
|
|
|
|
item_type:null,
|
|
|
|
|
keyword:null,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -70,7 +72,9 @@ class Question extends Component {
|
|
|
|
|
defaultActiveKey:key,
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
public:key
|
|
|
|
|
public:key,
|
|
|
|
|
item_type:this.state.item_type,
|
|
|
|
|
difficulty:this.state.difficulty,
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
|
@ -165,7 +169,8 @@ class Question extends Component {
|
|
|
|
|
|
|
|
|
|
var data={
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
difficulty:difficulty
|
|
|
|
|
difficulty:difficulty,
|
|
|
|
|
item_type:this.state.item_type,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -174,6 +179,7 @@ class Question extends Component {
|
|
|
|
|
setitem_types=(item_type)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
item_type:item_type,
|
|
|
|
|
visiblemyss:false,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var data={
|
|
|
|
@ -190,6 +196,40 @@ class Question extends Component {
|
|
|
|
|
visiblemys:boll,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleVisibleChanges=(boll)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
visiblemyss:boll,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setdatafunsval=(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
keywords:e.target.value
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
difficulty:this.state.difficulty,
|
|
|
|
|
item_type:this.state.item_type,
|
|
|
|
|
keywords:e.target.value,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setdatafuns =(value)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
keywords:value,
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
difficulty:this.state.difficulty,
|
|
|
|
|
item_type:this.state.item_type,
|
|
|
|
|
keywords:value,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {page,limit,count,Headertop,visible,placement,modalsType}=this.state;
|
|
|
|
|
return (
|
|
|
|
@ -204,6 +244,9 @@ class Question extends Component {
|
|
|
|
|
<Headplugselection ></Headplugselection>
|
|
|
|
|
{/*头部*/}
|
|
|
|
|
<Contentpart {...this.state} {...this.props}
|
|
|
|
|
setdatafuns={(e)=>this.setdatafuns(e)}
|
|
|
|
|
setdatafunsval={(e)=>this.setdatafunsval(e)}
|
|
|
|
|
handleVisibleChanges={(e)=>this.handleVisibleChanges(e)}
|
|
|
|
|
setitem_types={(e)=>this.setitem_types(e)}
|
|
|
|
|
handleVisibleChange={(e)=>this.handleVisibleChange(e)}
|
|
|
|
|
setdifficulty={(e)=>this.setdifficulty(e)}
|
|
|
|
|