dev_cs
杨树林 6 years ago
parent bc8fef1a6c
commit f05e645f9b

@ -510,7 +510,8 @@ class YslDetailCards extends Component{
pathlisteditlist={pathlistedit} pathlisteditlist={pathlistedit}
stageid={item.stage_id} stageid={item.stage_id}
ysldetailcards={"ysldetailcards"} ysldetailcards={"ysldetailcards"}
pathid={pathid} pathid={subject_id}
coursesId={pathid}
></DetailCardsEditAndEdit> ></DetailCardsEditAndEdit>
:"" :""
} }
@ -525,7 +526,8 @@ class YslDetailCards extends Component{
<DetailCardsEditAndAdd <DetailCardsEditAndAdd
{...this.props} {...this.props}
sum={stages && stages.length+1} sum={stages && stages.length+1}
pathid={this.props.subject_id} pathid={subject_id}
coursesId={pathid}
detailInfoList={this.props.detailInfoList} detailInfoList={this.props.detailInfoList}
getPathCardsLists={this.updatapathCardsedit} getPathCardsLists={this.updatapathCardsedit}
editeditbuttomtypes={this.editeditbuttomtypecanle} editeditbuttomtypes={this.editeditbuttomtypecanle}
@ -539,4 +541,4 @@ class YslDetailCards extends Component{
} }
} }
export default YslDetailCards; export default YslDetailCards;
// detailInfoList以前实训课堂做权限判断的作用 // detailInfoList以前实训课堂做权限判断的作用 this.props.subject_id

@ -286,7 +286,7 @@ class DetailCardsEditAndAdd extends Component{
if(this.props.ysldetailcards===undefined){ if(this.props.ysldetailcards===undefined){
url='/stages.json?subject_id='+pathId; url='/stages.json?subject_id='+pathId;
}else{ }else{
url=`/courses/${pathId}/course_stages.json`; url=`/courses/${this.props.coursesId}/course_stages.json`;
} }
axios.post(url, { axios.post(url, {
name:stage_names, name:stage_names,

@ -240,7 +240,7 @@ class DetailCardsEditAndEdit extends Component{
if(this.props.ysldetailcards===undefined){ if(this.props.ysldetailcards===undefined){
url='/stages/'+stageid+'.json'; url='/stages/'+stageid+'.json';
}else{ }else{
url=`/course_stages/${stageid}.json`; url=`/course_stages/${this.props.coursesId}.json`;
} }
axios.put(url, { axios.put(url, {
name:stage_name, name:stage_name,

Loading…
Cancel
Save