Merge remote-tracking branch 'origin/master'

dev_forum
杨树明 6 years ago
commit 6c444d975f

@ -134,9 +134,9 @@ class Exercisesetting extends Component{
// end_timetype:false // end_timetype:false
// }) // })
// }else{ // }else{
// this.setState({ this.setState({
// end_timetype:true end_timetype:true
// }) })
// } // }
} }

@ -911,6 +911,8 @@ class Listofworksstudentone extends Component {
} }
} }
student=()=>{ student=()=>{
console.log("914");
debugger
this.props.triggerRef(this); this.props.triggerRef(this);
var homeworkid = this.props.match.params.homeworkid; var homeworkid = this.props.match.params.homeworkid;
this.Getalistofworks(homeworkid); this.Getalistofworks(homeworkid);
@ -930,7 +932,8 @@ class Listofworksstudentone extends Component {
// 获取作品列表 // 获取作品列表
Getalistofworks = (homeworkid) => { Getalistofworks = (homeworkid) => {
// console.log("获取作品列表"); // console.log("获取作品列表");
console.log("935");
debugger
let urll = `/homework_commons/${homeworkid}/works_list.json`; let urll = `/homework_commons/${homeworkid}/works_list.json`;
var data = { var data = {
search: "", search: "",
@ -945,9 +948,10 @@ class Listofworksstudentone extends Component {
if(result === undefined){ if(result === undefined){
return return
} }
console.log("951");
console.log(result);
debugger
if (result.status === 200) { if (result.status === 200) {
if(this.props.isNotMember()===false) {
this.setState({ this.setState({
teacherdata: result.data, teacherdata: result.data,
task_status: result.data.task_status, task_status: result.data.task_status,
@ -969,7 +973,6 @@ class Listofworksstudentone extends Component {
this.seacthdatas(result.data, result.data.student_works); this.seacthdatas(result.data, result.data.student_works);
} }
}
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
@ -1373,7 +1376,6 @@ class Listofworksstudentone extends Component {
if (result !== undefined) { if (result !== undefined) {
// console.log("学生公开的作品列表") // console.log("学生公开的作品列表")
// console.log(JSON.stringify(result)) // console.log(JSON.stringify(result))
if(this.props.isNotMember()===false) {
this.setState({ this.setState({
teacherdata: result.data, teacherdata: result.data,
task_status: result.data.task_status, task_status: result.data.task_status,
@ -1391,7 +1393,6 @@ class Listofworksstudentone extends Component {
this.props.Getdataback(result,result.data); this.props.Getdataback(result,result.data);
this.seacthdata(result.data); this.seacthdata(result.data);
} }
}
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({
@ -1487,7 +1488,6 @@ class Listofworksstudentone extends Component {
} }
axios.post(urll, data).then((result) => { axios.post(urll, data).then((result) => {
if(this.props.isNotMember()===false){
if (result !== undefined) { if (result !== undefined) {
// console.log(url) // console.log(url)
// console.log("作品列表6789077") // console.log("作品列表6789077")
@ -1507,7 +1507,7 @@ class Listofworksstudentone extends Component {
}) })
this.props.Getdataback(result,result.data); this.props.Getdataback(result,result.data);
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1); this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1);
} } }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({
@ -1550,7 +1550,6 @@ class Listofworksstudentone extends Component {
// console.log(url) // console.log(url)
// console.log("作品列表______________________") // console.log("作品列表______________________")
// console.log(JSON.stringify(result)) // console.log(JSON.stringify(result))
if(this.props.isNotMember()===false){
if (result !== undefined) { if (result !== undefined) {
this.setState({ this.setState({
teacherdata: result.data, teacherdata: result.data,
@ -1567,9 +1566,8 @@ class Listofworksstudentone extends Component {
}) })
this.props.Getdataback(result,result.data); this.props.Getdataback(result,result.data);
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,page); this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,page);
} // }
} }
// }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({

Loading…
Cancel
Save