调整题库

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

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

@ -21,6 +21,7 @@ class Contentpart extends Component {
super(props); super(props);
this.state = { this.state = {
page:1, page:1,
} }
} }
//初始化 //初始化
@ -138,7 +139,7 @@ class Contentpart extends Component {
</a> </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=" sortinxdirection mr10">
<div className="subjecttit"> <div className="subjecttit">

Loading…
Cancel
Save