From 24f1f9e86e86062644586495ad912124522371b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 3 Jul 2019 18:30:03 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=88=90=E7=BB=A9?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/courses/Resource/Fileslistitem.js | 2 +-
.../courses/exercise/Exercisesetting.js | 6 +-
.../courses/shixunHomework/Listofworks.js | 2 +-
.../shixunHomework/Listofworksstudentone.js | 64 +-
.../shixunHomework/Trainingjobsetting.js | 2 +-
.../shixunHomework/Workquestionandanswer.js | 2 +-
.../paths/PathDetail/PathDetailIndex.js | 1026 ++++++++---------
public/react/src/modules/paths/PathNew.js | 546 ++++-----
8 files changed, 844 insertions(+), 806 deletions(-)
diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js
index e69cdb4d5..382283fee 100644
--- a/public/react/src/modules/courses/Resource/Fileslistitem.js
+++ b/public/react/src/modules/courses/Resource/Fileslistitem.js
@@ -300,7 +300,7 @@ class Fileslistitem extends Component{
:""}
- {this.props.current_user.login===discussMessage.author.login?
+ {this.props.isStudent===true&&this.props.current_user.login===discussMessage.author.login?
diff --git a/public/react/src/modules/courses/exercise/Exercisesetting.js b/public/react/src/modules/courses/exercise/Exercisesetting.js
index d07258ab3..1e151b654 100644
--- a/public/react/src/modules/courses/exercise/Exercisesetting.js
+++ b/public/react/src/modules/courses/exercise/Exercisesetting.js
@@ -131,9 +131,9 @@ class Exercisesetting extends Component{
// end_timetype:false
// })
// }else{
- this.setState({
- end_timetype:true
- })
+ // this.setState({
+ // end_timetype:true
+ // })
// }
}
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 30a0af582..94dab0b63 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1440,7 +1440,7 @@ class Listofworks extends Component {
作业问答
{this.props.isAdmin() ?
- this.state.code_review === true ? "" :
代码查重 : ""}
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 2974bf6ac..148b4b2e3 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -748,11 +748,12 @@ class Listofworksstudentone extends Component {
}
setComputeTime=()=>{
+ let {teacherdata}=this.state;
this.setState({
computeTimetype:false
})
let homeworkid = this.props.match.params.homeworkid;
- let url = "/homework_commons/"+homeworkid+"/update_student_score.json";
+ let url = "/homework_commons/"+homeworkid+"/update_student_score.json?shixun_id="+teacherdata.shixun_id;
axios.get(url).then((response) => {
this.props.showNotification(`${response.data.message}`);
@@ -925,13 +926,13 @@ class Listofworksstudentone extends Component {
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
-
+ {teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":
{computeTimetype===true?
计算成绩
:
计算成绩
}
-
+ }
@@ -1079,22 +1080,61 @@ class Listofworksstudentone extends Component {
{teacherdata.left_time.time}}
+
+
+
-
-
-
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
-
+ 计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
+ {teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":
{computeTimetype===true?
计算成绩
:
计算成绩
}
-
-
-
-
-
+ }
+
{/*因为计算按钮占了和这个位置,和设计沟通学生视角取消这个按钮*/}
{/*