dev_cs
杨树明 5 years ago
parent a069c86b26
commit 431db55297

@ -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 {
<div className="operationColumn">
<div className="left">
<div className="width20 columnbox">{item.course_supports.length}</div>
<div className="width20">{Math.round(item.weights_total*100)/100===0?" ":(Math.round(item.weights_total*100)/100)}</div>
<div className="width20">{Math.round(item.weights_total*100)/100===0?0:(Math.round(item.weights_total*100)/100)}</div>
</div>
<div className="left operationalter">
{data.is_manager===false?"":<a className="editSubentry" data-tip-down="编辑">

Loading…
Cancel
Save