|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React,{Component} from "React";
|
|
|
|
|
import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip,Spin} from "antd";
|
|
|
|
|
import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip,Spin, Pagination} from "antd";
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
|
import { WordsBtn, ConditionToolTip, queryString,getImageUrl, on, off} from 'educoder';
|
|
|
|
@ -77,7 +77,8 @@ function buildColumns(that, student_works) {
|
|
|
|
|
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
textOverflow: 'ellipsis',
|
|
|
|
|
whiteSpace: 'nowrap'
|
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
|
maxWidth: '98px'
|
|
|
|
|
}} title={text}>
|
|
|
|
|
{/* <Tooltip placement="bottom" title={text}>
|
|
|
|
|
</Tooltip> */}
|
|
|
|
@ -94,7 +95,10 @@ function buildColumns(that, student_works) {
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a href="javascript:;" style={{color:'#9A9A9A'}}>{record.student_id}</a>
|
|
|
|
|
<a href="javascript:;"
|
|
|
|
|
title={record.student_id}
|
|
|
|
|
style={{color:'#9A9A9A', 'text-overflow': 'ellipsis', 'white-space': 'nowrap', 'max-width': '100px', display: 'block', overflow: 'hidden'}}
|
|
|
|
|
>{record.student_id}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
})
|
|
|
|
@ -256,7 +260,7 @@ function buildColumns(that, student_works) {
|
|
|
|
|
{`${record.appeal_deal_count}/${appeal_all_count}`}
|
|
|
|
|
</span>
|
|
|
|
|
</Tooltip> }
|
|
|
|
|
{ !appeal_all_count && '-/-'}
|
|
|
|
|
{ !appeal_all_count && <span style={{ color: '#747A7F' }}>-/-</span>}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
})
|
|
|
|
@ -299,7 +303,7 @@ function buildColumns(that, student_works) {
|
|
|
|
|
key: 'operation',
|
|
|
|
|
dataIndex: 'operation',
|
|
|
|
|
render: (operation, record) => (
|
|
|
|
|
record.work_status === 0 ? '--':
|
|
|
|
|
record.work_status === 0 ? <span style={{ color: '#747A7F' }}>--</span>:
|
|
|
|
|
<div>
|
|
|
|
|
{/* 0 未提交 */}
|
|
|
|
|
{/*<React.Fragment>*/}
|
|
|
|
@ -330,7 +334,7 @@ const orderMap = {
|
|
|
|
|
}
|
|
|
|
|
const PAGE_SIZE = 50
|
|
|
|
|
// 类似页面 http://localhost:3007/courses/1309/graduation/graduation_tasks/48/76/setting
|
|
|
|
|
class CommonWorkSetting extends Component{
|
|
|
|
|
class CommonWorkList extends Component{
|
|
|
|
|
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props)
|
|
|
|
@ -355,8 +359,8 @@ class CommonWorkSetting extends Component{
|
|
|
|
|
category: {},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onTablePagination = (pageInfo) => {
|
|
|
|
|
this.setState({ page: pageInfo.current }, () => {
|
|
|
|
|
onTablePagination = (page) => {
|
|
|
|
|
this.setState({ page: page }, () => {
|
|
|
|
|
this.fetchList()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -706,7 +710,7 @@ class CommonWorkSetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className={"justify break_full_word new_li edu-back-white course_table_wrap"} style={{minHeight:"480px"}}>
|
|
|
|
|
<div className={"justify break_full_word new_li edu-back-white course_table_wrap"} style={{minHeight:"480px", marginBottom: '30px'}}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
|
top: 72%;}
|
|
|
|
@ -730,31 +734,35 @@ class CommonWorkSetting extends Component{
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
:<Table
|
|
|
|
|
dataSource={student_works}
|
|
|
|
|
columns={columns}
|
|
|
|
|
showQuickJumper
|
|
|
|
|
pagination={work_count > PAGE_SIZE ? { //分页
|
|
|
|
|
:
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{/* pagination={work_count > PAGE_SIZE ? { //分页
|
|
|
|
|
total: work_count, //数据总数量
|
|
|
|
|
pageSize: PAGE_SIZE, //显示几条一页
|
|
|
|
|
current: page,
|
|
|
|
|
} : false}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
} : false}
|
|
|
|
|
|
|
|
|
|
onChange={this.onTablePagination}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* <div className={"justify break_full_word new_li edu-back-white singleLine"} style={{minHeight:"480px"}}>
|
|
|
|
|
{data2===undefined?"":<Table
|
|
|
|
|
showHeader={false}
|
|
|
|
|
dataSource={data2}
|
|
|
|
|
*/}
|
|
|
|
|
<Table
|
|
|
|
|
className="stageTable"
|
|
|
|
|
dataSource={student_works}
|
|
|
|
|
columns={columns}
|
|
|
|
|
showQuickJumper
|
|
|
|
|
pagination={false}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
/>}
|
|
|
|
|
</div> */}
|
|
|
|
|
/>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{work_count > PAGE_SIZE && <Pagination
|
|
|
|
|
style={{ textAlign: 'center', marginBottom: '20px' }}
|
|
|
|
|
showQuickJumper pageSize={PAGE_SIZE} onChange={this.onTablePagination} current={page} total={work_count} />}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
|
@ -762,5 +770,5 @@ class CommonWorkSetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CommonWorkSettingForm = Form.create({ name: 'commonworkSettingForm' })(CommonWorkSetting);
|
|
|
|
|
export default CommonWorkSettingForm;
|
|
|
|
|
const CommonWorkListForm = Form.create({ name: 'commonworkListForm' })(CommonWorkList);
|
|
|
|
|
export default CommonWorkListForm;
|