|
|
@ -748,11 +748,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setComputeTime=()=>{
|
|
|
|
setComputeTime=()=>{
|
|
|
|
|
|
|
|
let {teacherdata}=this.state;
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
computeTimetype:false
|
|
|
|
computeTimetype:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let homeworkid = this.props.match.params.homeworkid;
|
|
|
|
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) => {
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
@ -925,13 +926,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
<div className="fr">
|
|
|
|
<div className="fr">
|
|
|
|
|
|
|
|
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
<span>
|
|
|
|
{teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":<span>
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
计算成绩
|
|
|
|
计算成绩
|
|
|
|
</div>:<div className={"computeTimes font-13"} onClick={this.setComputeTime}>
|
|
|
|
</div>:<div className={"computeTimes font-13"} onClick={this.setComputeTime}>
|
|
|
|
计算成绩
|
|
|
|
计算成绩
|
|
|
|
</div>}
|
|
|
|
</div>}
|
|
|
|
</span>
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -1079,22 +1080,61 @@ class Listofworksstudentone extends Component {
|
|
|
|
<span className="ml20"
|
|
|
|
<span className="ml20"
|
|
|
|
style={{"color": '#FF6800'}}>{teacherdata.left_time.time}</span>}
|
|
|
|
style={{"color": '#FF6800'}}>{teacherdata.left_time.time}</span>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
{`
|
|
|
|
|
|
|
|
.startbox{
|
|
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
|
|
background: rgba(255,104,0,0.1);
|
|
|
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.startfont{
|
|
|
|
|
|
|
|
font-size:14px;
|
|
|
|
|
|
|
|
font-family:MicrosoftYaHei;
|
|
|
|
|
|
|
|
font-weight:400;
|
|
|
|
|
|
|
|
color:rgba(255,104,0,1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.computeTime{
|
|
|
|
|
|
|
|
width: 73px;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
line-height: 13px;
|
|
|
|
|
|
|
|
color: #4CACFF;
|
|
|
|
|
|
|
|
border: 1px solid #4CACFF;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.computeTimes{
|
|
|
|
|
|
|
|
width: 73px;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
line-height: 13px;
|
|
|
|
|
|
|
|
color: #C5C5C5;
|
|
|
|
|
|
|
|
border: 1px solid #EDEDED;
|
|
|
|
|
|
|
|
background:#EDEDED;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<div className="fr">
|
|
|
|
<div className="fr">
|
|
|
|
|
|
|
|
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
<span>
|
|
|
|
{teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":<span>
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
计算成绩
|
|
|
|
计算成绩
|
|
|
|
</div>:<div className={"computeTimes font-13"} onClick={this.setComputeTime}>
|
|
|
|
</div>:<div className={"computeTimes font-13"} onClick={this.setComputeTime}>
|
|
|
|
计算成绩
|
|
|
|
计算成绩
|
|
|
|
</div>}
|
|
|
|
</div>}
|
|
|
|
</span>
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*因为计算按钮占了和这个位置,和设计沟通学生视角取消这个按钮*/}
|
|
|
|
{/*因为计算按钮占了和这个位置,和设计沟通学生视角取消这个按钮*/}
|
|
|
|
{/*<div className="fr edu-menu-panel">*/}
|
|
|
|
{/*<div className="fr edu-menu-panel">*/}
|
|
|
|
{/*<ul>*/}
|
|
|
|
{/*<ul>*/}
|
|
|
|