|
|
|
@ -100,7 +100,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
grouping: result.data.have_grouping === true ? worklists[i].grouping_name : null,
|
|
|
|
|
submitstate: worklists[i].status === 0 ? "未提交" : worklists[i].status === 1 ? "按时提交" : worklists[i].status === 2 ? "延时提交" : "",
|
|
|
|
|
turnovertime:worklists[i].update_time,
|
|
|
|
|
associationitems: {name:worklists[i].project_info === undefined ?"--": worklists[i].project_info.name,id:worklists[i].project_info.id},
|
|
|
|
|
associationitems:result.data.have_grouping==false?"": {name:worklists[i].project_info === undefined ?"--": worklists[i].project_info.name,id:worklists[i].project_info.id},
|
|
|
|
|
teacherrating: worklists[i].teacher_comment_score,
|
|
|
|
|
crossrating: worklists[i].cross_comment_score,
|
|
|
|
|
finalscore: worklists[i].final_score.work_score === null ? "--" : worklists[i].final_score.work_score,
|
|
|
|
@ -309,9 +309,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
modalname:"立即截止",
|
|
|
|
|
visible:true,
|
|
|
|
|
Topval:"本操作只对“提交中”的对象生效",
|
|
|
|
|
Botvalleft:"暂不截止",
|
|
|
|
|
Botval:"则将根据已设置的截止时间,定时截止",
|
|
|
|
|
Topval:"学生将不能再提交作品",
|
|
|
|
|
// Botvalleft:"暂不截止",
|
|
|
|
|
Botval:`本操作只对"提交中"的分班有效`,
|
|
|
|
|
Cancelname:"暂不截止",
|
|
|
|
|
Savesname:"立即截止",
|
|
|
|
|
Cancel:this.cancelmodel,
|
|
|
|
@ -328,9 +328,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
modalname:"立即发布",
|
|
|
|
|
visible:true,
|
|
|
|
|
Topval:"发布设置均可修改",
|
|
|
|
|
Botvalleft:"点击修改",
|
|
|
|
|
Botval:"此设置将对所有分班生效",
|
|
|
|
|
Topval:"学生将立即收到毕设任务",
|
|
|
|
|
// Botvalleft:"点击修改",
|
|
|
|
|
Botval:`本操作只对"未发布"的分班有效`,
|
|
|
|
|
starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") ,
|
|
|
|
|
starttimes:this.props.getNowFormatDates(1),
|
|
|
|
|
typs:"start",
|
|
|
|
@ -742,8 +742,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF'}}
|
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}
|
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}>
|
|
|
|
|
{tag.status===0?"":tag.name}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
@ -874,10 +875,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<div key={key}>
|
|
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>
|
|
|
|
|
其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
|
|
|
|
|
{tag.name==="评阅"?tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.name}
|
|
|
|
|
</a>
|
|
|
|
@ -1045,7 +1044,6 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
|
}
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}):""}
|
|
|
|
@ -1192,7 +1190,6 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
|
}
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}):""}
|
|
|
|
@ -1223,13 +1220,44 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
let task_Id = this.props.match.params.task_Id;
|
|
|
|
|
|
|
|
|
|
if(taskslistdata&&taskslistdata.cross_comment===false){
|
|
|
|
|
|
|
|
|
|
columns.map((item,key)=>{
|
|
|
|
|
if(item.title==="交叉评分"){
|
|
|
|
|
columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if(taskslistdata&&taskslistdata.have_grouping===false){
|
|
|
|
|
columns.map((item,key)=>{
|
|
|
|
|
if(item.title==="关联项目"){
|
|
|
|
|
columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
columns.map((item,key)=>{
|
|
|
|
|
if(item.title==="分组"){
|
|
|
|
|
columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
if(taskslistdata&&taskslistdata.have_grouping===false){
|
|
|
|
|
columns.map((item,key)=>{
|
|
|
|
|
if(item.title==="关联项目"){
|
|
|
|
|
columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
columns.map((item,key)=>{
|
|
|
|
|
if(item.title==="分组"){
|
|
|
|
|
columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(columns)
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
|
|
|
|
|