调整题库

yslnewtiku
杨树林 5 years ago
parent 7d13975eea
commit 585f7529f9

@ -35,6 +35,7 @@ class Question extends Component {
titbool:false,
Contentdata:[],
difficulty:null,
visiblemys:false,
}
}
@ -158,13 +159,22 @@ class Question extends Component {
setdifficulty=(difficulty)=>{
this.setState({
difficulty:difficulty,
visiblemys:false,
})
var data={
public:this.state.defaultActiveKey,
difficulty:difficulty
};
this.getdata(data);
}
handleVisibleChange=(boll)=>{
this.setState({
visiblemys:boll,
})
}
render() {
let {page,limit,count,Headertop,visible,placement,modalsType}=this.state;
@ -180,6 +190,7 @@ class Question extends Component {
<Headplugselection ></Headplugselection>
{/*头部*/}
<Contentpart {...this.state} {...this.props}
handleVisibleChange={(e)=>this.handleVisibleChange(e)}
setdifficulty={(e)=>this.setdifficulty(e)}
showmodels={()=>this.showmodels()}
showmodelysl={()=>this.showmodelysl()}

@ -21,6 +21,7 @@ class Contentpart extends Component {
super(props);
this.state = {
page:1,
}
}
//初始化
@ -138,7 +139,7 @@ class Contentpart extends Component {
</a>
:""
}
<Popover placement="bottom" content={contents} trigger="click">
<Popover placement="bottom" content={contents} trigger="click" visible={this.props.visiblemys} onVisibleChange={()=>this.props.handleVisibleChange(true)}>
<div className=" sortinxdirection mr10">
<div className="subjecttit">

Loading…
Cancel
Save