调整ec 分支

dev_newshixunModel
杨树林 6 years ago
parent 7bcd2e2c1c
commit 7c239e1622

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

Loading…
Cancel
Save