@@ -1754,4 +1733,32 @@ class Listofworks extends Component {
}
}
-export default Listofworks;
\ No newline at end of file
+export default Listofworks;
+
+{/*
*/}
+{/*
*/}
+{/* {jobsettingsdata === undefined ? "" : jobsettingsdata.data.course_name}*/}
+{/* >*/}
+{/* {jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_name}*/}
+{/* >*/}
+{/* 作业详情*/}
+{/*
*/}
+{/*
*/}
+{/*
*/}
+{/*
*/}
+{/*{teacherdata === undefined ? "" : teacherdata.homework_name}*/}
+{/*
*/}
+{/*
*/}
+{/*
返回*/}
+{/*
实训详情*/}
+
+
+{/*
*/}
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 7985293ae..73f94b23d 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -177,13 +177,13 @@ class Listofworksstudentone extends Component {
className:'font-14',
render: (text, record) => (
- {record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}
+ {record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}
),
@@ -316,7 +316,8 @@ class Listofworksstudentone extends Component {
}
componentDidMount() {
-
+ console.log("Listofworksstudentone");
+ console.log("componentDidMount");
var homeworkid = this.props.match.params.homeworkid;
this.Getalistofworks(homeworkid);
let query = this.props.location.pathname;
@@ -347,7 +348,9 @@ class Listofworksstudentone extends Component {
course_group: "",
}
axios.post(urll, data).then((result) => {
-
+ if(result === undefined){
+ return
+ }
if (result.status === 200) {
if(this.props.isNotMember()===false) {
this.setState({
@@ -364,7 +367,8 @@ class Listofworksstudentone extends Component {
challenges_count: result.data.challenges_count,
view_report: result.data.view_report,
})
- if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") {
+ this.props.Getdataback(result,result.data);
+ if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") {
this.seacthdata(result.data);
} else {
this.seacthdatas(result.data, result.data.student_works);
@@ -421,6 +425,7 @@ class Listofworksstudentone extends Component {
challenges_count:result.data.challenges_count,
view_report:result.data.view_report,
})
+ this.props.Getdataback(result,result.data);
if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") {
this.seacthdata(result.data);
} else {
@@ -785,7 +790,8 @@ class Listofworksstudentone extends Component {
challenges_count:result.data.challenges_count,
view_report:result.data.view_report,
})
- this.seacthdata(result.data);
+ this.props.Getdataback(result,result.data);
+ this.seacthdata(result.data);
}
}
}).catch((error) => {
@@ -837,6 +843,9 @@ class Listofworksstudentone extends Component {
});
}
+ ChangeTab=(e)=>{
+ this.props.ChangeTab(e);
+ }
render() {
let {visibles, game_list,columns, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
// console.log(this.state.data);
@@ -845,7 +854,7 @@ class Listofworksstudentone extends Component {
return (
teacherdata === undefined || teacherdata.student_works === undefined || teacherdata.student_works === null || JSON.stringify(teacherdata.student_works) === "[]" ?
// 学生不能查看别人的
-