|
|
@ -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}</span>
|
|
|
|
<span style={{ minWidth: '50px', display: 'inline-block', textAlign: 'center' }} >
|
|
|
|
|
|
|
|
{record.isMine == true ? '我' : (that.state.page - 1) * PAGE_SIZE + index + 1}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
)},
|
|
|
|
)},
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
title: '姓名',
|
|
|
|
title: '姓名',
|
|
|
@ -78,7 +80,7 @@ function buildColumns(that, student_works) {
|
|
|
|
overflow: 'hidden',
|
|
|
|
overflow: 'hidden',
|
|
|
|
textOverflow: 'ellipsis',
|
|
|
|
textOverflow: 'ellipsis',
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
maxWidth: '98px'
|
|
|
|
width: '98px'
|
|
|
|
}} title={text}>
|
|
|
|
}} title={text}>
|
|
|
|
{/* <Tooltip placement="bottom" title={text}>
|
|
|
|
{/* <Tooltip placement="bottom" title={text}>
|
|
|
|
</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>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -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}名学生进行了匿评`}</div>}
|
|
|
|
{record.student_comment_count && <div>{`${record.student_comment_count}名学生进行了匿评`}</div>}
|
|
|
|
<div>有效平均分:{record.student_score}分</div>
|
|
|
|
<div>有效平均分:{record.student_score}分</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -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)}`;
|
|
|
|