|
|
|
@ -56,6 +56,7 @@ class EcCourseEvaluationsbottom extends Component {
|
|
|
|
|
if(newec_course_idbottom!=undefined){
|
|
|
|
|
// const url ='ec_courses/:course_id/course_targets.json';
|
|
|
|
|
// const url = `/ec_course_achievement_methods?ec_course_id=`+newec_course_idbottom;
|
|
|
|
|
const url =`/ec_courses/${course_id}/course_targets/course_achievement_methods.json`;
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
})
|
|
|
|
@ -114,8 +115,10 @@ class EcCourseEvaluationsbottom extends Component {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
let ec_course_id=this.props.match.params.ec_course_id;
|
|
|
|
|
const url = `/ec_course_achievement_methods?ec_course_id=`+ec_course_id;
|
|
|
|
|
let ec_course_id=this.props.match.params.ec_course_id;
|
|
|
|
|
const course_id = 706
|
|
|
|
|
const url =`/ec_courses/${course_id}/course_targets/course_achievement_methods.json`;
|
|
|
|
|
// const url = `/ec_course_achievement_methods?ec_course_id=`+course_id;
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
})
|
|
|
|
@ -129,10 +132,11 @@ class EcCourseEvaluationsbottom extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.getNavigationData(ec_course_id);
|
|
|
|
|
// this.getNavigationData(ec_course_id);
|
|
|
|
|
this.setState({
|
|
|
|
|
newec_course_idbottom:ec_course_id
|
|
|
|
|
newec_course_idbottom:course_id
|
|
|
|
|
})
|
|
|
|
|
this.props.Ontitine("evaluation_methods");
|
|
|
|
|
}
|
|
|
|
|
editecCourseEvaluationslist=(e)=>{
|
|
|
|
|
let id =e.target.getAttribute("target_id");
|
|
|
|
@ -555,7 +559,9 @@ class EcCourseEvaluationsbottom extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Url = '/ec_course_achievement_methods/create_evaluation_methods';
|
|
|
|
|
// var Url = '/ec_course_achievement_methods/create_evaluation_methods';
|
|
|
|
|
var Url = '/ec_courses/:course_id/course_targets/:target_id/course_achievement_methods.json';
|
|
|
|
|
|
|
|
|
|
axios.post(Url, {
|
|
|
|
|
ec_course_target_id: newec_course_target_id,
|
|
|
|
|
achievement_methods:achievement_methods
|
|
|
|
|