dev_ec
杨树林 5 years ago
parent 9bd98fb62d
commit 2e00d1413b

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 8.8 KiB

@ -59,6 +59,7 @@ class Curriculum extends Component {
// window.document.title = '课程达成评价结果';
}
componentDidMount(){
console.log("Curriculum");
console.log(this.props);
}
sync_course_data=()=>{

@ -54,9 +54,9 @@ class EcCompletionCalculation extends Component {
let ec_course_id =this.props.match.params.ec_course_id;
this.UpdateClassData(true);
const Url =`/ec_major_schools/get_navigation_data?ec_course_id=`+ec_course_id;
axios.get(Url, {
withCredentials: true,
})
axios.get(Url, {
withCredentials: true,
})
.then((response) => {
if(response.status===200){
// if(response.data.allow_visit===false){
@ -71,6 +71,7 @@ class EcCompletionCalculation extends Component {
.catch(function (error) {
console.log(error);
});
this.props.Ontitine("competition_calculation_info");
}
targetsget_navigation_data=(ec_year_id,ec_course_id)=>{

@ -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

@ -109,6 +109,7 @@ class EcCourseSupportSetting extends Component {
}
fetchCourseTargets = () => {
const ec_course_id = this.props.match.params.ec_course_id;
//这里给了一个默认的参数。。。。。。。。。。。。。
const course_id = 706
const url = `/ec_courses/${course_id}/course_targets.json`
// `/ec_courses/${ec_course_id}/ec_course_support_setting_data`
@ -179,11 +180,17 @@ class EcCourseSupportSetting extends Component {
});
}
componentDidMount = () => {
console.log('componentDidMount ' + this.props)
// console.log('componentDidMountEcCourseSupportSetting');
// console.log(this.props);
// console.log(this.props.match);
// console.log(this.props.match.params);
// console.log(this.props.match.params.ec_course_id);
this.fetchCourseTargets();
const ec_course_id = this.props.match.params.ec_course_id;
this.getNavigationData(ec_course_id)
this.getNavigationData(ec_course_id);
this.props.Ontitine("ec_course_support_setting");
}
setEditableMode = (mode) => {

Loading…
Cancel
Save