dev_cs
杨树林 6 years ago
parent bc8fef1a6c
commit f05e645f9b

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

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

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

Loading…
Cancel
Save