|
|
|
@ -847,28 +847,28 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
}, {
|
|
|
|
|
}, {
|
|
|
|
|
title: '操作',
|
|
|
|
|
key: 'operation',
|
|
|
|
|
width:'100px',
|
|
|
|
|
dataIndex: 'operation',
|
|
|
|
|
className:'edu-txt-center',
|
|
|
|
|
render: operation => (
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{cursor: 'pointer'}}>
|
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{
|
|
|
|
|
tag.name &&
|
|
|
|
|
<Tooltip key={key} placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
{tag.name==="评阅"?<a style={{color:'#4CACFF',padding:"0px 5px"}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
<Tooltip key={key} placement="bottom" title={tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
{tag.name==="评阅"?<p style={{color:'#4CACFF',padding:"0px 5px"}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.name}
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF',padding:"0px 5px"}}
|
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}>
|
|
|
|
|
{tag.name}
|
|
|
|
|
</a>
|
|
|
|
|
<p style={{color:tag.name==="调分"?"#000":'#4CACFF',padding:"0px 5px"}}
|
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":()=>this.showAllocationModal(tag.id):""}>
|
|
|
|
|
{tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":tag.name:tag.name}
|
|
|
|
|
</p>
|
|
|
|
|
}
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|