|
|
|
@ -51,12 +51,13 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
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,
|
|
|
|
|
})
|
|
|
|
|
// 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;
|
|
|
|
|
const ec_course_id=706;
|
|
|
|
|
const url =`/ec_courses/${ec_course_id}/evaluation.json`;
|
|
|
|
|
axios.get(url)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if(response.status===200){
|
|
|
|
|
// if(response.data.allow_visit===false){
|
|
|
|
|