From 7eab5786e3ff14ccb29c622e42fe30ab7b97bd4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sun, 29 Sep 2019 11:35:38 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/elearning/YslDetailCards.js | 6 ++++
.../modules/paths/PathDetail/DetailCards.js | 31 ++++++++++---------
.../PathDetail/DetailCardsEditAndEdit.js | 15 ++++++---
3 files changed, 33 insertions(+), 19 deletions(-)
diff --git a/public/react/src/modules/courses/elearning/YslDetailCards.js b/public/react/src/modules/courses/elearning/YslDetailCards.js
index 4b295f118..d65c95390 100644
--- a/public/react/src/modules/courses/elearning/YslDetailCards.js
+++ b/public/react/src/modules/courses/elearning/YslDetailCards.js
@@ -116,6 +116,11 @@ class YslDetailCards extends Component{
}
+ Pathlisteditundefined=()=>{
+ this.setState({
+ pathlistedit:undefined
+ })
+ };
hidestartshixunsreplace=(url)=>{
this.setState({
isSpin:true,
@@ -521,6 +526,7 @@ class YslDetailCards extends Component{
ysldetailcards={"ysldetailcards"}
pathid={subject_id}
coursesId={pathid}
+ Pathlisteditundefined={this.Pathlisteditundefined}
>
:""
}
diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js
index d459694ef..2c4020d9a 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCards.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCards.js
@@ -309,7 +309,13 @@ class DetailCards extends Component{
this.setState({
startshixunCombattype:false
})
- }
+ };
+
+ Pathlisteditundefined=()=>{
+ this.setState({
+ pathlistedit:undefined
+ })
+ };
render(){
@@ -502,19 +508,16 @@ class DetailCards extends Component{
}
-
-
-
-
-
+
)
})
diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
index 9fa97f853..0016db4dc 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
@@ -93,22 +93,27 @@ class DetailCardsEditAndEdit extends Component{
})
}
+ componentDidMount(){
+ }
componentWillReceiveProps(nextProps, nextState) {
if(nextProps.pathlisteditlist!=undefined){
let list=[]
for(var i=0; i{
-
+ //输入数据绑定
this.setState({
stage_description:e.target.value
})