@ -64,7 +64,9 @@ function buildColumns(that, student_works) {
key : 'id' ,
key : 'id' ,
render : ( text , record , index ) => {
render : ( text , record , index ) => {
return (
return (
< span style = { { minWidth : '50px' , display : 'inline-block' , textAlign : 'center' } } > { ( that . state . page - 1 ) * PAGE _SIZE + index + 1 } < / s p a n >
< span style = { { minWidth : '50px' , display : 'inline-block' , textAlign : 'center' } } >
{ record . isMine == true ? '我' : ( that . state . page - 1 ) * PAGE _SIZE + index + 1 }
< / s p a n >
) } ,
) } ,
} , {
} , {
title : '姓名' ,
title : '姓名' ,
@ -78,7 +80,7 @@ function buildColumns(that, student_works) {
overflow : 'hidden' ,
overflow : 'hidden' ,
textOverflow : 'ellipsis' ,
textOverflow : 'ellipsis' ,
whiteSpace : 'nowrap' ,
whiteSpace : 'nowrap' ,
maxW idth: '98px'
w idth: '98px'
} } title = { text } >
} } title = { text } >
{ / * < T o o l t i p p l a c e m e n t = " b o t t o m " t i t l e = { t e x t } >
{ / * < T o o l t i p p l a c e m e n t = " b o t t o m " t i t l e = { t e x t } >
< /Tooltip> */ }
< /Tooltip> */ }
@ -97,7 +99,7 @@ function buildColumns(that, student_works) {
< span >
< span >
< a href = "javascript:;"
< a href = "javascript:;"
title = { record . student _id }
title = { record . student _id }
style = { { color : '#9A9A9A' , 'text-overflow' : 'ellipsis' , 'white-space' : 'nowrap' , ' max- width': '100px' , display : 'block' , overflow : 'hidden' } }
style = { { color : '#9A9A9A' , 'text-overflow' : 'ellipsis' , 'white-space' : 'nowrap' , ' width': '100px' , display : 'block' , overflow : 'hidden' } }
> { record . student _id } < / a >
> { record . student _id } < / a >
< / s p a n >
< / s p a n >
) ,
) ,
@ -232,7 +234,7 @@ function buildColumns(that, student_works) {
< span >
< span >
< Tooltip title = {
< Tooltip title = {
getScoreTip ( student _score ,
getScoreTip ( student _score ,
< div >
isNiPing ? ` 你的评阅分数: ${ record . student _score } 分 ` : < div >
{ record . student _comment _count && < div > { ` ${ record . student _comment _count } 名学生进行了匿评 ` } < / d i v > }
{ record . student _comment _count && < div > { ` ${ record . student _comment _count } 名学生进行了匿评 ` } < / d i v > }
< div > 有效平均分 : { record . student _score } 分 < / d i v >
< div > 有效平均分 : { record . student _score } 分 < / d i v >
< / d i v >
< / d i v >
@ -547,7 +549,7 @@ class CommonWorkList extends Component{
StudentData = isStudent ? [ { id , user _name , user _login , student _id , group _name , work _status , update _time , teacher _score , teaching _asistant _score , student _score ,
StudentData = isStudent ? [ { id , user _name , user _login , student _id , group _name , work _status , update _time , teacher _score , teaching _asistant _score , student _score ,
ultimate _score , work _score , student _comment _count , appeal _all _count , appeal _deal _count ,
ultimate _score , work _score , student _comment _count , appeal _all _count , appeal _deal _count ,
late _penalty , absence _penalty , appeal _penalty ,
late _penalty , absence _penalty , appeal _penalty ,
work _group : '' } ] : [ ]
work _group : '' , isMine : true } ] : [ ]
}
}
let params = this . _getRequestParams ( )
let params = this . _getRequestParams ( )
let exportUrl = ` /api/homework_commons/ ${ workId } /works_list.zip? ${ queryString . stringify ( params ) } ` ;
let exportUrl = ` /api/homework_commons/ ${ workId } /works_list.zip? ${ queryString . stringify ( params ) } ` ;