diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index 0ae35f7f6..e3a4a2ac0 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -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 { {/*头部*/} this.handleVisibleChange(e)} setdifficulty={(e)=>this.setdifficulty(e)} showmodels={()=>this.showmodels()} showmodelysl={()=>this.showmodelysl()} diff --git a/public/react/src/modules/question/component/Contentpart.js b/public/react/src/modules/question/component/Contentpart.js index 80130c63f..21006ca01 100644 --- a/public/react/src/modules/question/component/Contentpart.js +++ b/public/react/src/modules/question/component/Contentpart.js @@ -21,6 +21,7 @@ class Contentpart extends Component { super(props); this.state = { page:1, + } } //初始化 @@ -138,7 +139,7 @@ class Contentpart extends Component { :"" } - + this.props.handleVisibleChange(true)}>