diff --git a/public/react/src/modules/courses/boards/BoardsListItem.js b/public/react/src/modules/courses/boards/BoardsListItem.js index 2a6aaae2f..cf667dc6d 100644 --- a/public/react/src/modules/courses/boards/BoardsListItem.js +++ b/public/react/src/modules/courses/boards/BoardsListItem.js @@ -48,8 +48,9 @@ class BoardsListItem extends Component{
onItemClick(discussMessage)}>
{} : () => this.onTitleClick(discussMessage)} + title={`${discussMessage.subject.length > 40 ? discussMessage.subject : ''}`} >{discussMessage.subject} { !!discussMessage.sticky && 置顶 } { diff --git a/public/react/src/modules/courses/boards/index.js b/public/react/src/modules/courses/boards/index.js index 10c8accea..cc761cd5d 100644 --- a/public/react/src/modules/courses/boards/index.js +++ b/public/react/src/modules/courses/boards/index.js @@ -446,7 +446,9 @@ class Boards extends Component{

} */} - {pagination.total_count > 15 && } + {pagination.total_count > 15 && } ) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index da4a92be1..4e3214e50 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -150,7 +150,7 @@ class CommonWorkDetailIndex extends Component{ ]}>
- + 36 ? homework_name : ''}`}> {homework_name} {/* {homework_name} */} diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 25ddaa146..8819624aa 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -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}> {/* */} @@ -94,7 +95,10 @@ function buildColumns(that, student_works) { render: (text, record) => ( - {record.student_id} + {record.student_id} ), }) @@ -256,7 +260,7 @@ function buildColumns(that, student_works) { {`${record.appeal_deal_count}/${appeal_all_count}`} } - { !appeal_all_count && '-/-'} + { !appeal_all_count && -/-} ), }) @@ -299,7 +303,7 @@ function buildColumns(that, student_works) { key: 'operation', dataIndex: 'operation', render: (operation, record) => ( - record.work_status === 0 ? '--': + record.work_status === 0 ? --:
{/* 0 未提交 */} {/**/} @@ -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{ } -
+