|
|
@ -92,7 +92,6 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
if (worklists.length != 0) {
|
|
|
|
if (worklists.length != 0) {
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < worklists.length; i++) {
|
|
|
|
for (var i = 0; i < worklists.length; i++) {
|
|
|
|
|
|
|
|
|
|
|
|
datalist.push({
|
|
|
|
datalist.push({
|
|
|
|
name: worklists[i].name,
|
|
|
|
name: worklists[i].name,
|
|
|
|
number: (parseInt(page)-1)*parseInt(limit)+(i+1),
|
|
|
|
number: (parseInt(page)-1)*parseInt(limit)+(i+1),
|
|
|
@ -101,7 +100,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
grouping: result.data.have_grouping === true ? worklists[i].grouping_name : null,
|
|
|
|
grouping: result.data.have_grouping === true ? worklists[i].grouping_name : null,
|
|
|
|
submitstate: worklists[i].status === 0 ? "未提交" : worklists[i].status === 1 ? "按时提交" : worklists[i].status === 2 ? "延时提交" : "",
|
|
|
|
submitstate: worklists[i].status === 0 ? "未提交" : worklists[i].status === 1 ? "按时提交" : worklists[i].status === 2 ? "延时提交" : "",
|
|
|
|
turnovertime:worklists[i].update_time,
|
|
|
|
turnovertime:worklists[i].update_time,
|
|
|
|
associationitems: worklists[i].project_info === undefined ?"--": worklists[i].project_info.name ,
|
|
|
|
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,
|
|
|
|
teacherrating: worklists[i].teacher_comment_score,
|
|
|
|
crossrating: worklists[i].cross_comment_score,
|
|
|
|
crossrating: worklists[i].cross_comment_score,
|
|
|
|
finalscore: worklists[i].final_score.work_score === null ? "--" : worklists[i].final_score.work_score,
|
|
|
|
finalscore: worklists[i].final_score.work_score === null ? "--" : worklists[i].final_score.work_score,
|
|
|
@ -310,9 +309,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
modalname:"立即截止",
|
|
|
|
modalname:"立即截止",
|
|
|
|
visible:true,
|
|
|
|
visible:true,
|
|
|
|
Topval:"本操作只对“提交中”的对象生效",
|
|
|
|
Topval:"学生将不能再提交作品",
|
|
|
|
Botvalleft:"暂不截止",
|
|
|
|
// Botvalleft:"暂不截止",
|
|
|
|
Botval:"则将根据已设置的截止时间,定时截止",
|
|
|
|
Botval:`本操作只对"提交中"的分班有效`,
|
|
|
|
Cancelname:"暂不截止",
|
|
|
|
Cancelname:"暂不截止",
|
|
|
|
Savesname:"立即截止",
|
|
|
|
Savesname:"立即截止",
|
|
|
|
Cancel:this.cancelmodel,
|
|
|
|
Cancel:this.cancelmodel,
|
|
|
@ -329,9 +328,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
modalname:"立即发布",
|
|
|
|
modalname:"立即发布",
|
|
|
|
visible:true,
|
|
|
|
visible:true,
|
|
|
|
Topval:"发布设置均可修改",
|
|
|
|
Topval:"学生将立即收到毕设任务",
|
|
|
|
Botvalleft:"点击修改",
|
|
|
|
// Botvalleft:"点击修改",
|
|
|
|
Botval:"此设置将对所有分班生效",
|
|
|
|
Botval:`本操作只对"未发布"的分班有效`,
|
|
|
|
starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") ,
|
|
|
|
starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") ,
|
|
|
|
starttimes:this.props.getNowFormatDates(1),
|
|
|
|
starttimes:this.props.getNowFormatDates(1),
|
|
|
|
typs:"start",
|
|
|
|
typs:"start",
|
|
|
@ -662,9 +661,11 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
key: 'associationitems',
|
|
|
|
key: 'associationitems',
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<div>
|
|
|
|
<a style={{color:'#4CACFF'}}>{record.associationitems}</a>
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/projects/"+record.associationitems.id} target={"_blank"}>
|
|
|
|
</span>
|
|
|
|
<div className={"projectsdiv"} title={record.associationitems.name}>{record.associationitems.name}</div>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
title: '提交状态',
|
|
|
|
title: '提交状态',
|
|
|
@ -695,7 +696,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.teacherrating==="--"||record.crossrating==="未批阅"?0:record.teacherrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.teacherrating==="--"||record.teacherrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{record.teacherrating==="--"||record.teacherrating==="未批阅"?"--":parseInt(record.teacherrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -705,7 +708,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.crossrating==="--"||record.crossrating==="未批阅"?0:record.crossrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.crossrating==="--"||record.crossrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{record.crossrating==="--"||record.crossrating==="未批阅"?"--":parseInt(record.crossrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -715,7 +720,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{parseInt(record.finalscore==="--"?0:record.finalscore)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.finalscore==="--"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{record.finalscore==="--"?"--":parseInt(record.finalscore)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -735,8 +742,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF'}}
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF'}}
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}>
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
{tag.status===0?"":tag.name}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
@ -794,9 +802,11 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
key: 'associationitems',
|
|
|
|
key: 'associationitems',
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<div>
|
|
|
|
<a style={{color:'#4CACFF'}}>{record.associationitems}</a>
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/projects/"+record.associationitems.id} target={"_blank"}>
|
|
|
|
</span>
|
|
|
|
<div className={"projectsdiv"} title={record.associationitems.name}>{record.associationitems.name}</div>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
title: '提交状态',
|
|
|
|
title: '提交状态',
|
|
|
@ -827,17 +837,21 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.teacherrating==="--"||record.crossrating==="未批阅"?0:record.teacherrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.teacherrating==="--"||record.teacherrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{record.teacherrating==="--"||record.teacherrating==="未批阅"?"--":parseInt(record.teacherrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
title: '交叉评分',
|
|
|
|
title: '交叉评分',
|
|
|
|
key: 'crossrating',
|
|
|
|
key: 'crossrating',
|
|
|
|
dataIndex: 'crossrating',
|
|
|
|
dataIndex: 'crossrating',
|
|
|
|
|
|
|
|
className:'none',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.crossrating==="--"||record.crossrating==="未批阅"?0:record.crossrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.crossrating==="--"||record.crossrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{record.crossrating==="--"||record.crossrating==="未批阅"?"--":parseInt(record.crossrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -847,7 +861,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{parseInt(record.finalscore==="--"?0:record.finalscore)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.finalscore==="--"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{record.finalscore==="--"?"--":parseInt(record.finalscore)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -859,10 +875,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div key={key}>
|
|
|
|
<div key={key}>
|
|
|
|
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>
|
|
|
|
<Tooltip placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>
|
|
|
|
其它历史评分将全部失效</pre>:""}>
|
|
|
|
其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
|
|
|
|
|
|
|
{tag.name==="评阅"?tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
{tag.name==="评阅"?tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
{tag.name}
|
|
|
|
{tag.name}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -944,9 +958,12 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
key: 'associationitems',
|
|
|
|
key: 'associationitems',
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<div>
|
|
|
|
<a style={{color:'#4CACFF'}}>{record.associationitems}</a>
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/projects/"+record.associationitems.id} target={"_blank"}>
|
|
|
|
</span>
|
|
|
|
<div className={"projectsdiv"} title={record.associationitems.name}>{record.associationitems.name}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
title: '提交状态',
|
|
|
|
title: '提交状态',
|
|
|
@ -977,7 +994,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.teacherrating==="--"||record.crossrating==="未批阅"?0:record.teacherrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.teacherrating==="--"||record.teacherrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{record.teacherrating==="--"||record.teacherrating==="未批阅"?"--":parseInt(record.teacherrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -987,7 +1006,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.crossrating==="--"||record.crossrating==="未批阅"?0:record.crossrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.crossrating==="--"||record.crossrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{record.crossrating==="--"||record.crossrating==="未批阅"?"--":parseInt(record.crossrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -997,7 +1018,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{parseInt(record.finalscore==="--"?0:record.finalscore)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.finalscore==="--"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{record.finalscore==="--"?"--":parseInt(record.finalscore)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -1021,7 +1044,6 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}):""}
|
|
|
|
}):""}
|
|
|
@ -1078,9 +1100,13 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
key: 'associationitems',
|
|
|
|
key: 'associationitems',
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<div className={"projectsdiv"} >
|
|
|
|
<a style={{color:'#4CACFF'}}>{record.associationitems}</a>
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/projects/"+record.associationitems.id} target={"_blank"}>
|
|
|
|
</span>
|
|
|
|
<div title={record.associationitems.name}>
|
|
|
|
|
|
|
|
{record.associationitems.name}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
title: '提交状态',
|
|
|
|
title: '提交状态',
|
|
|
@ -1111,7 +1137,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.teacherrating==="--"||record.crossrating==="未批阅"?0:record.teacherrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.teacherrating==="--"||record.teacherrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}}>{record.teacherrating==="--"||record.teacherrating==="未批阅"?"--":parseInt(record.teacherrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -1121,7 +1149,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{parseInt(record.crossrating==="--"||record.crossrating==="未批阅"?0:record.crossrating)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.crossrating==="--"||record.crossrating==="未批阅"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.crossrating)>90?'#DD1717':parseInt(record.crossrating)>60&&parseInt(record.crossrating)<90?"#FF6800":'#747A7F'}}>{record.crossrating==="--"||record.crossrating==="未批阅"?"--":parseInt(record.crossrating)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -1131,7 +1161,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{parseInt(record.finalscore==="--"?0:record.finalscore)}</a>
|
|
|
|
<Tooltip placement="bottom" title={record.finalscore==="--"?"未评阅":""}>
|
|
|
|
|
|
|
|
<a style={{color:parseInt(record.finalscore)>90?'#DD1717':parseInt(record.finalscore)>60&&parseInt(record.finalscore)<90?"#FF6800":'#747A7F'}}>{record.finalscore==="--"?"--":parseInt(record.finalscore)}</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
@ -1141,6 +1173,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
render: operation => (
|
|
|
|
render: operation => (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
{this.props.isAdmin()?operation.map((tag,key) => {
|
|
|
|
|
|
|
|
console.log("1179");
|
|
|
|
|
|
|
|
console.log(key);
|
|
|
|
|
|
|
|
console.log(tag);
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div key={key}>
|
|
|
|
<div key={key}>
|
|
|
|
|
|
|
|
|
|
|
@ -1155,7 +1190,6 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
>{tag.status===0?"":tag.name}</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}):""}
|
|
|
|
}):""}
|
|
|
@ -1184,12 +1218,63 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
let position=this.props.match.params.position;
|
|
|
|
let position=this.props.match.params.position;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
let task_Id = this.props.match.params.task_Id;
|
|
|
|
let task_Id = this.props.match.params.task_Id;
|
|
|
|
// console.log("task_statustask_statustask_status");
|
|
|
|
|
|
|
|
// console.log(task_status);
|
|
|
|
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(
|
|
|
|
return(
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
.projectsdiv{
|
|
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
{/*提示*/}
|
|
|
|
{/*提示*/}
|
|
|
|
<Modals
|
|
|
|
<Modals
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsType={Modalstype}
|
|
|
@ -1453,11 +1538,12 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
<div id="graduation_work_list" style={{padding:'0px 40px 10px 40px'}}>
|
|
|
|
<div id="graduation_work_list" style={{padding:'0px 40px 10px 40px'}}>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<span className="fl color-grey-6 font-12"><span className="color-orange-tip">{taskslistdata&&taskslistdata.work_count}</span>个检索结果({taskslistdata&&taskslistdata.work_count} 学生) </span>
|
|
|
|
{this.props.isAdmin()?<span className="fl color-grey-6 font-12"><span className="color-orange-tip">{taskslistdata&&taskslistdata.work_count}</span>个检索结果({taskslistdata&&taskslistdata.work_count} 学生) </span>:""}
|
|
|
|
<div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
{this.props.isAdmin()?<div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
<p><a data-remote="true">
|
|
|
|
<p>
|
|
|
|
{order==="updated_at"?"更新时间":order==="work_score"?"最终成绩":order==="student_id"?"学生学号":""}排序</a><i
|
|
|
|
<a data-remote="true">
|
|
|
|
className="iconfont icon-xiajiantou ml5 font-12 color-grey-6"></i></p>
|
|
|
|
{order==="updated_at"?"更新时间":order==="work_score"?"最终成绩":order==="student_id"?"学生学号":""}排序</a>
|
|
|
|
|
|
|
|
<i className="iconfont icon-xiajiantou ml5 font-12 color-grey-6"></i></p>
|
|
|
|
<ul className="edu-menu-list">
|
|
|
|
<ul className="edu-menu-list">
|
|
|
|
<li onClick={(e)=>this.funorder("updated_at")}><a data-remote="true">更新时间</a>
|
|
|
|
<li onClick={(e)=>this.funorder("updated_at")}><a data-remote="true">更新时间</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -1466,7 +1552,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
<li onClick={(e)=>this.funorder("student_id" )}><a data-remote="true">学生学号</a>
|
|
|
|
<li onClick={(e)=>this.funorder("student_id" )}><a data-remote="true">学生学号</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>:""}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|