From 93b40e339b05d5ab30acf948e9bd6ba607eec90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 18 Mar 2020 02:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/AppConfig.js | 2 +- .../src/modules/courses/signin/css/signincdi.css | 13 +++++++++++++ .../component/Videostatisticslist.js | 14 +++++++------- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 41adf5bef..7c52d64ae 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -46,7 +46,7 @@ debugType="admin"; // 老师 // debugType="teacher"; // 学生 - debugType="student"; +// debugType="student"; diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index c8156fdfb..aadbeec20 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -494,6 +494,13 @@ white-space:nowrap; cursor: default; } +.maxnamewidth100s{ + max-width: 100px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .maxnamewidth90s{ width: 90px; max-width: 90px; @@ -532,7 +539,13 @@ .width150s{ width: 150px !important; } +.width100s{ + width: 100px !important; +} .widh150pxwp{ wordWrap: break-word; wordBreak: break-word } +.widh150wpos{ + word-break: break-all; +} diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js index bcf923118..5d6a18742 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js @@ -21,9 +21,9 @@ class Videostatisticslist extends Component { key: 'number', align: "center", className: 'font-14', - width: '90px', + width: '100px', render: (text, record) => ( - {record.number} + {record.number} ), }, { @@ -31,7 +31,7 @@ class Videostatisticslist extends Component { dataIndex: 'title', key: 'title', align: "center", - className: 'font-14 width200s', + className: 'font-14 width200s widh150wpos', width:200, render: (text, record) => (
@@ -74,12 +74,12 @@ class Videostatisticslist extends Component { dataIndex: 'total_time', key: 'total_time', align: "center", - className: 'font-14 width150s ', + className: 'font-14 width100s ', sorter: true, sortDirections: sortDirections, - width:150, + width:100, render: (text, record) => ( -
+
- {record.total_time}