From 302e92d7b5999258a0646baba0acc03ae76a74bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 10 Jul 2019 10:26:03 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../shixunHomework/Listofworksstudentone.js | 12 +++--
.../shixunHomework/Trainingjobsetting.js | 44 +++++++++----------
2 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 99d2e3c0a..33b90083b 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -550,6 +550,8 @@ class Listofworksstudentone extends Component {
}
}
+ // console.log("554");
+ // console.log(columns2);
this.setState({
@@ -577,7 +579,7 @@ class Listofworksstudentone extends Component {
}
}
- else if(this.props.isNotMember()===true&&item.title==="学号") {
+ if(this.props.isNotMember()===true&&item.title==="学号") {
}else{
arr.push(item);
@@ -640,6 +642,8 @@ class Listofworksstudentone extends Component {
}
// console.log("datalistdatalist文件");
// console.log(datalist);
+ // console.log("645");
+ // console.log(columns2);
this.setState({
data: datalist,
teacherlist: teacherlist,
@@ -835,7 +839,9 @@ class Listofworksstudentone extends Component {
}
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);
+ // console.log("841");
+ // console.log(this.state.columns);
return (
teacherdata === undefined || teacherdata.student_works === undefined || teacherdata.student_works === null || JSON.stringify(teacherdata.student_works) === "[]" ?
// 学生不能查看别人的
@@ -1018,7 +1024,7 @@ class Listofworksstudentone extends Component {
}
`}
- {data === undefined ? "" :
{
- // console.log("640");
// console.log(this.state.end_time);
- if(e.target.value ==="允许补交"){
+ if(e.target.checked ===true){
if(this.state.end_time !== null && this.state.end_time!== undefined){
// console.log(this.state.end_time);
// var times = this.state.deadline.format('YYYY-MM-DD HH:mm');
@@ -665,16 +660,19 @@ class Trainingjobsetting extends Component {
this.setState({
- allowreplenishment: e.target.value,
+ allowreplenishment: e.target.checked,
latededuction:5,
whethertopay:true,
})
}else {
this.setState({
- allowreplenishment: e.target.value,
+ allowreplenishment: e.target.checked,
latededuction:0,
whethertopay:false,
+ hand__e_tip: "",
+ hand_flags: false,
+ handclass:"",
})
}
@@ -1239,7 +1237,7 @@ class Trainingjobsetting extends Component {
this.setState({
publish_time:moment(handleDateString(dateString))
})
- if(this.state.allowreplenishment === "允许补交") {
+ if(this.state.allowreplenishment === true) {
this.setState({
end_time:moment(handleDateString(dateString)).add(1, 'months'),
deadline:moment(handleDateString(dateString)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
@@ -1303,7 +1301,7 @@ class Trainingjobsetting extends Component {
end_time:moment(handleDateString(dateString))
})
// this.onChangedata('end_time', value, dateString);
- if(this.state.allowreplenishment === "允许补交"){
+ if(this.state.allowreplenishment === true){
this.setState({
deadline:moment(handleDateString(dateString)).format('YYYY-MM-DD HH:mm'),
late_time:moment(handleDateString(dateString)).add(2, 'months'),
@@ -1580,7 +1578,7 @@ class Trainingjobsetting extends Component {
if(moment(this.state.late_time,"YYYY-MM-DD HH:mm")<=moment()){
endtime=false;
}
- if(this.state.allowreplenishment === "禁止补交"){
+ if(this.state.allowreplenishment === false){
whethertopays=false;
}
this.setState({
@@ -1985,11 +1983,11 @@ class Trainingjobsetting extends Component {
-
-
- 允许补交 (选中,则允许学生延时提交作品)
+ {/*value={this.state.allowreplenishment}*/}
+
+
开启补交 (选中,则允许学生延时提交作品)
迟交扣分:
@@ -2049,8 +2047,8 @@ class Trainingjobsetting extends Component {
}
-
禁止补交
-
+ {/*
禁止补交*/}
+
{/*评分设置*/}