dev_forum
杨树林 5 years ago
parent 2be7b4cd3d
commit 2ed0c3c61f

@ -997,10 +997,10 @@ class Listofworksstudentone extends Component {
if(result === undefined){ if(result === undefined){
return return
} }
if(result.data.message!==undefined){ // if(result.data.message!==undefined){
//
return; // return;
} // }
this.setState({ this.setState({
teacherdata: result.data, teacherdata: result.data,
@ -1059,9 +1059,6 @@ class Listofworksstudentone extends Component {
} }
axios.post(urll, data).then((result) => { axios.post(urll, data).then((result) => {
if (result) { if (result) {
if(result.data.message!==undefined){
return;
}
// console.log("学生未截至未公开的作品列表") // console.log("学生未截至未公开的作品列表")
// console.log(JSON.stringify(result)) // console.log(JSON.stringify(result))
this.setState({ this.setState({
@ -1491,11 +1488,14 @@ class Listofworksstudentone extends Component {
let url = "/homework_commons/"+homeworkid+"/update_student_score.json?shixun_id="+teacherdata.shixun_id; let url = "/homework_commons/"+homeworkid+"/update_student_score.json?shixun_id="+teacherdata.shixun_id;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response){
this.props.showNotification(`${response.data.message}`); if(response.data.status===0) {
// var homeworkid = this.props.match.params.homeworkid; this.props.showNotification(`${response.data.message}`);
this.Getalistofworks(homeworkid); // var homeworkid = this.props.match.params.homeworkid;
this.props.history.replace( matchurl ); this.Getalistofworks(homeworkid);
// this.props.history.replace(matchurl);
}
}
// this.Getalistofworkstwo("", "", "", "", 1, 20); // this.Getalistofworkstwo("", "", "", "", 1, 20);
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
@ -2160,15 +2160,17 @@ class Listofworksstudentone extends Component {
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response){ if(response){
if(response.data.message!==undefined){ if(response.data.status===0){
return; // if(response.data.message!==undefined){
} // return;
// }
this.setState({ this.setState({
loadingstate: true loadingstate: true
}) })
this.Startsortingt(this.state.orders, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit); this.Getalistofworks(homeworkid);
this.props.showNotification(`${response.data.message}`); this.props.showNotification(`${response.data.message}`);
this.props.history.replace( matchurl ); }
// this.props.history.replace( matchurl );
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
@ -2214,9 +2216,6 @@ class Listofworksstudentone extends Component {
if(response === undefined){ if(response === undefined){
return return
} }
if(response.data.message!==undefined){
return;
}
if(response.data.status&&response.data.status===-1){ if(response.data.status&&response.data.status===-1){
}else if(response.data.status&&response.data.status===-2){ }else if(response.data.status&&response.data.status===-2){

Loading…
Cancel
Save