提交参数

dev_ec
杨树林 6 years ago
parent a923e232a3
commit a24078f8ef

@ -45,7 +45,8 @@ export function initAxiosInterceptors(props) {
proxy="http://192.168.2.63:3001"; proxy="http://192.168.2.63:3001";
// wy // wy
proxy="http://192.168.2.63:3001" proxy="http://192.168.2.63:3001";
proxy="https://test-newweb.educoder.net";
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求 // 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制 // 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制

@ -39,20 +39,25 @@ 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){
this.setState({ // if(response.status){
majorschoollist:response.data, // if(response.status===200){
ismanager:response.data.ismanager, // this.setState({
}) // majorschoollist:response.data,
} // ismanager:response.data.ismanager,
}) // })
.catch(function (error) { // }
console.log(error); // }
}); // }
//
// })
// .catch(function (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