|
|
|
@ -39,20 +39,25 @@ class EcStudentList extends Component {
|
|
|
|
|
let major_id=this.props.match.params.major_id;
|
|
|
|
|
let year_id=this.props.match.params.year_id;
|
|
|
|
|
|
|
|
|
|
const url ='/ec_major_schools/'+major_id+'/academic_years/'+year_id+'/student_lists_data';
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if(response.status===200){
|
|
|
|
|
this.setState({
|
|
|
|
|
majorschoollist:response.data,
|
|
|
|
|
ismanager:response.data.ismanager,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
// const url ='/ec_major_schools/'+major_id+'/academic_years/'+year_id+'/student_lists_data';
|
|
|
|
|
// axios.get(url, {
|
|
|
|
|
// withCredentials: true,
|
|
|
|
|
// }).then((response) => {
|
|
|
|
|
// if(response){
|
|
|
|
|
// if(response.status){
|
|
|
|
|
// if(response.status===200){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// majorschoollist:response.data,
|
|
|
|
|
// ismanager:response.data.ismanager,
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// })
|
|
|
|
|
// .catch(function (error) {
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// });
|
|
|
|
|
// let majorschoollist={
|
|
|
|
|
// ec_students: [{index: 1, student_name: "同意", student_id: "s20111458"},
|
|
|
|
|
// {index: 1, student_name: "同意", student_id: "s20111458"},
|
|
|
|
|