From 585f7529f9ee79da02a8053b24b83dacd5b8ac32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 25 Dec 2019 11:46:44 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A2=98=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/question/Question.js | 11 +++++++++++
.../src/modules/question/component/Contentpart.js | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
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)}>