From 6e91761cce9be04d0a31646e0fc0eef8e96cc020 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Wed, 26 Jun 2019 11:29:34 +0800
Subject: [PATCH] css
---
.../modules/courses/boards/BoardsListItem.js | 3 +-
.../react/src/modules/courses/boards/index.js | 4 +-
.../courses/busyWork/CommonWorkDetailIndex.js | 2 +-
.../courses/busyWork/CommonWorkList.js | 58 +++++++++++--------
.../courses/busyWork/CommonWorkSetting.js | 3 +
.../busyWork/common/TabRightComponents.js | 1 +
6 files changed, 43 insertions(+), 28 deletions(-)
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..ebec66b94 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}
),
})
@@ -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{
}
-