appeal_all_count

dev_forum
hjm 6 years ago
parent bc74c4ee9c
commit 6ad93f8cfb

@ -31,7 +31,9 @@ function renderScore(score, content) {
} else if (score >= 60) { } else if (score >= 60) {
color = '#FF6800' color = '#FF6800'
} }
return <a href="javascript:;" style={{ color, minWidth: '30px', display: 'inline-block', textAlign: 'center' }}>{score == '--' ? '--': (content || score)}</a> return <a href="javascript:;" style={{ color, minWidth: '30px', display: 'inline-block', textAlign: 'center' }}>
{score == null || score == undefined || score == '--' ? '--': (content || score)}
</a>
} }
function getScoreTip(score, dom) { function getScoreTip(score, dom) {
return score == '--' ? '未评分' : score == '**' ? '未公开' : dom return score == '--' ? '未评分' : score == '**' ? '未公开' : dom
@ -217,7 +219,7 @@ function buildColumns(that, student_works) {
*/ */
columns.push({ columns.push({
width: 84, width: 84,
title: <div style={{fontWeight:'bold', color: '#000'}}><div style={{fontWeight:'bold'}}>匿评</div></div>, title: <div style={{fontWeight:'bold'}}><div style={{fontWeight:'bold'}}>匿评</div></div>,
key: 'student_score', key: 'student_score',
dataIndex: 'student_score', dataIndex: 'student_score',
@ -253,6 +255,7 @@ function buildColumns(that, student_works) {
{`${record.appeal_deal_count}/${appeal_all_count}`} {`${record.appeal_deal_count}/${appeal_all_count}`}
</span> </span>
</Tooltip> } </Tooltip> }
{ !appeal_all_count && '-/-'}
</span> </span>
), ),
}) })

Loading…
Cancel
Save