diff --git a/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js b/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js index 60c573445..e5d413601 100644 --- a/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js +++ b/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js @@ -52,24 +52,6 @@ class CourseSupports extends Component { this.setState({ ec_year_id:ec_year_id }) - // const jol =`/ec_major_schools/get_navigation_data?ec_year_id=`+ec_year_id; - // axios.get(jol, { - // withCredentials: true, - // }) - // .then((response) => { - // if(response.status===200){ - // // if(response.data.allow_visit===false){ - // // window.location.href="/403" - // // } - // this.setState({ - // schooldata:response.data - // }) - // } - // }) - // .catch(function (error) { - // console.log(error); - // }); - const url = `/ec_years/${ec_year_id}/graduation_course_supports.json`; axios.get(url) @@ -90,32 +72,6 @@ class CourseSupports extends Component { console.log(error); }); - // this.setState({ - // data:{course_count: 14, - // course_support_data: [ - // {course_data: [{ - // name: "军事课堂", - // top_relation: true, - // weigths: 0.1 - // }, { - // name: "大学生心理健康教育", - // top_relation: true, - // weigths: 0.2 - // }], - // ec_graduation_subitem_id: 2, - // num_total: 2, - // sequence_num: "1-1", - // weights_total: 0.30000000000000004, - // }, - // ], - // course_url: "/ec_major_schools/1/academic_years/1/ec_course_setting", - // ec_year_id: 1, - // max_support_count: 12, - // subitems_count: 7, - // subitems_url: "/ec_major_schools/1/academic_years/1/graduation_requirement" - // } - // }) - } componentDidMount(){ this.setState({ @@ -525,7 +481,7 @@ class CourseSupports extends Component {