|
|
|
@ -97,7 +97,7 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
}} title={text && text.length > 5 ? text : ''}>
|
|
|
|
|
{/* <Tooltip placement="bottom" title={text}>
|
|
|
|
|
</Tooltip> */}
|
|
|
|
|
{record.is_leader ?
|
|
|
|
|
{record.is_leader ?
|
|
|
|
|
<div style={{ display: 'flex', 'flex-direction': 'column', 'align-items': 'center'}}>
|
|
|
|
|
<div >{text}</div>
|
|
|
|
|
<LeaderIcon></LeaderIcon>
|
|
|
|
@ -116,8 +116,8 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a href="javascript:;"
|
|
|
|
|
title={text && text.length > 12 ? text : ''}
|
|
|
|
|
style={{color:'#9A9A9A', 'text-overflow': 'ellipsis', 'white-space': 'nowrap', 'width': '98px', display: 'block', overflow: 'hidden'
|
|
|
|
|
title={text && text.length > 12 ? text : ''}
|
|
|
|
|
style={{color:'#9A9A9A', 'text-overflow': 'ellipsis', 'white-space': 'nowrap', 'width': '98px', display: 'block', overflow: 'hidden'
|
|
|
|
|
, margin: '0 auto', cursor: 'default'}}
|
|
|
|
|
>{record.student_id}</a>
|
|
|
|
|
</span>
|
|
|
|
@ -161,9 +161,10 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
|
|
|
|
|
render: (project_info, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{project_info && project_info.name && <a href={project_info.id == -1 ? 'javascript:void(0)' : `/projects/${project_info.id}`}
|
|
|
|
|
target={ project_info.id == -1 ? '' : "_blank" }
|
|
|
|
|
className="overflowHidden1" style={{color:'#4CACFF', width: that.state.anonymous_comment ? '80px' : '130px', margin: '0 auto', display: 'block'}} title={project_info.name}
|
|
|
|
|
{project_info && project_info.name &&
|
|
|
|
|
<a href={project_info.id == -1 ? 'javascript:void(0)' : `/projects/${project_info.id}`}
|
|
|
|
|
target={ project_info.id == -1 ? '' : "_blank" }
|
|
|
|
|
className="overflowHidden1" style={{color:'#4CACFF', width: that.state.anonymous_comment ? '80px' : '130px', margin: '0 auto', display: 'block'}} title={project_info.name}
|
|
|
|
|
>{project_info.name}</a>}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
@ -201,6 +202,7 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
dataIndex: 'update_time',
|
|
|
|
|
key: 'update_time',
|
|
|
|
|
sorter: true,
|
|
|
|
|
defaultSortOrder: 'descend',
|
|
|
|
|
render: (update_time, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a href="javascript:;" style={{color:'#989898', cursor: 'default'}}>{update_time ? moment(update_time).format('YYYY-MM-DD HH:mm') : '--'}</a>
|
|
|
|
@ -232,7 +234,7 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
/**
|
|
|
|
|
* 2名助教进行了评分
|
|
|
|
|
平均分:85.0分
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
render: (teaching_asistant_score, record) => (
|
|
|
|
|
<span>
|
|
|
|
@ -252,10 +254,9 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (that.state.anonymous_comment) {
|
|
|
|
|
/**
|
|
|
|
|
开启了匿评的才显示此列,悬浮TIP示例:
|
|
|
|
|
开启了匿评的才显示此列,悬浮TIP示例:
|
|
|
|
|
3名学生进行了匿评
|
|
|
|
|
有效平均分:80.0分
|
|
|
|
|
*/
|
|
|
|
@ -292,7 +293,7 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
|
|
|
|
|
render: (appeal_all_count, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{ !!appeal_all_count &&
|
|
|
|
|
{!!appeal_all_count &&
|
|
|
|
|
<Tooltip placement="bottom" title={`共有${appeal_all_count}条匿评申诉,${record.appeal_deal_count}条待处理`}>
|
|
|
|
|
<span style={{ minWidth: '30px', display: 'inline-block', textAlign: 'center' }}>
|
|
|
|
|
{`${record.appeal_deal_count}/${appeal_all_count}`}
|
|
|
|
@ -317,8 +318,8 @@ function buildColumns(that, student_works, studentData) {
|
|
|
|
|
getScoreTip(work_score,
|
|
|
|
|
<div>
|
|
|
|
|
<div>{`${record.user_name}(${record.user_login})`}</div>
|
|
|
|
|
{ record.ultimate_score ?
|
|
|
|
|
<div>最终调整成绩:{record.work_score}分</div> :
|
|
|
|
|
{record.ultimate_score ?
|
|
|
|
|
<div>最终调整成绩:{record.work_score}分</div> :
|
|
|
|
|
<div>
|
|
|
|
|
{ record.final_score && <div>作业评分:{record.final_score}分</div> }
|
|
|
|
|
{ record.late_penalty >= 0 && <div>迟交扣分:{record.late_penalty}分</div>}
|
|
|
|
@ -474,7 +475,6 @@ class CommonWorkList extends Component{
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
teacherCommentOptionChange = (values, isAllChecked) => {
|
|
|
|
|
this.setState({arg_teacher_comment: isAllChecked ? [] : values, page: 1}, () => {
|
|
|
|
@ -626,7 +626,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
ultimate_score, work_score, student_comment_count, appeal_all_count, appeal_deal_count,
|
|
|
|
|
late_penalty, absence_penalty, appeal_penalty
|
|
|
|
|
|
|
|
|
|
,end_immediately ,publish_immediately
|
|
|
|
|
, end_immediately, publish_immediately
|
|
|
|
|
, homework_id, visible, work_group, project_info, is_leader
|
|
|
|
|
} =this.state;
|
|
|
|
|
|
|
|
|
@ -739,7 +739,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 内容区 */}
|
|
|
|
|
{/* 内容区 */}
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
|
|
|
|
|
text-align: center;
|
|
|
|
@ -793,57 +793,11 @@ class CommonWorkList extends Component{
|
|
|
|
|
}
|
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
|
{/* { isAdminOrStudent && student_works && !!student_works.length && <div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
|
<p style={{color: '#989898'}} className="color-grey-6"><a data-remote="true" className="font-12">
|
|
|
|
|
{order==="update_time"?"更新时间":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" style={{ textAlign: 'center'}}>
|
|
|
|
|
<li onClick={(e)=>this.funorder("update_time")} ><a data-remote="true" className={order==="update_time"?"color-blue":""}>更新时间</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li onClick={(e)=>this.funorder("work_score" )} ><a data-remote="true" className={order==="work_score"?"color-blue":""}>最终成绩</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li onClick={(e)=>this.funorder("student_id" )} ><a data-remote="true" className={order==="student_id"?"color-blue":""}>学生学号</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div> } */}
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/* isAdminOrStudent && student_works && !!student_works.length &&*/}
|
|
|
|
|
{/* <div className="fr">*/}
|
|
|
|
|
{/* <li className="drop_down">*/}
|
|
|
|
|
{/* <span className="color-grey-9 font-12">*/}
|
|
|
|
|
{/* {order==="update_time"?"更新时间":order==="work_score"?"最终成绩":order==="student_id"?"学生学号":""}*/}
|
|
|
|
|
{/* </span><i className="iconfont icon-xiajiantou font-12 ml2 color-grey-6"></i>*/}
|
|
|
|
|
{/* <ul className="drop_down_normal">*/}
|
|
|
|
|
{/* <li className={''} onClick={()=>this.funorder("update_time")}>更新时间</li>*/}
|
|
|
|
|
{/* <li className={''} onClick={()=>this.funorder("work_score")}>最终成绩</li>*/}
|
|
|
|
|
{/* <li className={''} onClick={()=>this.funorder("student_id")}>学生学号</li>*/}
|
|
|
|
|
{/* </ul>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div> }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*
|
|
|
|
|
"commit_count": 10, //已交数(学生身份)
|
|
|
|
|
"uncommit_count": 12, //未交数(学生身份)
|
|
|
|
|
"left_time": { //学生身份剩余的时间和状态
|
|
|
|
|
"status": "剩余补交时间",
|
|
|
|
|
"time": "24 天 24分 23秒"
|
|
|
|
|
},
|
|
|
|
|
*/}
|
|
|
|
|
{/* { isStudent && <div id="graduation_work_list" style={{padding:'10px 30px 10px 40px'}}>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<span className="fl color-grey-6 font-12">
|
|
|
|
|
<span className="color-orange-tip">{commit_count}</span>已交 {uncommit_count}未交 剩余提交时间:
|
|
|
|
|
<span className="color-orange-tip">{left_time.time}</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div> } */}
|
|
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
.workListContent .ant-table-thead > tr > th {
|
|
|
|
|
border-bottom: none;
|
|
|
|
@ -889,15 +843,8 @@ class CommonWorkList extends Component{
|
|
|
|
|
</Spin>
|
|
|
|
|
:
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{/* pagination={work_count > PAGE_SIZE ? { //分页
|
|
|
|
|
total: work_count, //数据总数量
|
|
|
|
|
pageSize: PAGE_SIZE, //显示几条一页
|
|
|
|
|
current: page,
|
|
|
|
|
} : false}
|
|
|
|
|
|
|
|
|
|
onChange={this.onTablePagination}
|
|
|
|
|
*/}
|
|
|
|
|
<Table
|
|
|
|
|
|
|
|
|
|
<Table
|
|
|
|
|
className="stageTable"
|
|
|
|
|
dataSource={student_works}
|
|
|
|
|
columns={columns}
|
|
|
|
@ -912,7 +859,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{work_count > PAGE_SIZE && <Pagination
|
|
|
|
|
{work_count > PAGE_SIZE && <Pagination
|
|
|
|
|
style={{ textAlign: 'center', marginBottom: '20px' }}
|
|
|
|
|
showQuickJumper pageSize={PAGE_SIZE} onChange={this.onTablePagination} current={page} total={work_count} />}
|
|
|
|
|
|
|
|
|
|