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?
计算成绩
:
计算成绩
}
-
-
-
-
-
+ }
+
{/*因为计算按钮占了和这个位置,和设计沟通学生视角取消这个按钮*/}
{/**/}
{/*
*/}
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index 11017259a..064b17d2f 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -1676,7 +1676,7 @@ class Trainingjobsetting extends Component {
}
作业问答
- {this.props.isAdmin()?this.state.code_review===true?"": 代码查重 : ""}