|
|
|
@ -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>
|
|
|
|
|
),
|
|
|
|
|
})
|
|
|
|
@ -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}
|
|
|
|
|
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}
|
|
|
|
|
onChange={this.onTablePagination}
|
|
|
|
|
*/}
|
|
|
|
|
<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;
|