diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index b8f41d349..7c52d64ae 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -42,11 +42,11 @@ if (isDev) { window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' } // 超管 -//debugType="admin"; +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 34bef6192..e93a0032e 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -431,6 +431,13 @@ white-space:nowrap; cursor: default; } +.maxnamewidth200ss{ + max-width: 200px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .maxnamewidth150s{ width: 150px; max-width: 150px; @@ -439,6 +446,13 @@ white-space:nowrap; cursor: default; } +.maxnamewidth150ss{ + max-width: 150px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .maxnamewidth140s{ width: 140px; max-width: 140px; @@ -511,3 +525,10 @@ .textalignrights{ text-align: right; } + +.width200s{ + width: 200px !important; +} +.width150s{ + width: 150px !important; +} diff --git a/public/react/src/modules/courses/videostatistics/component/Studentstatistics.js b/public/react/src/modules/courses/videostatistics/component/Studentstatistics.js index b505cda75..06eda7f4d 100644 --- a/public/react/src/modules/courses/videostatistics/component/Studentstatistics.js +++ b/public/react/src/modules/courses/videostatistics/component/Studentstatistics.js @@ -31,9 +31,10 @@ class Studentstatistics extends Component { dataIndex: 'title', key: 'title', align: "center", - className: 'font-14 ', + className: 'font-14 width200s', + width: 200, render: (text, record) => ( -
+
- {record.title} diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js index f0392fce1..bcf923118 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js @@ -31,9 +31,10 @@ class Videostatisticslist extends Component { dataIndex: 'title', key: 'title', align: "center", - className: 'font-14', + className: 'font-14 width200s', + width:200, render: (text, record) => ( -
+
- {record.title} @@ -60,12 +61,12 @@ class Videostatisticslist extends Component { dataIndex: 'people_num', key: 'people_num', align: "center", - className: 'font-14', - width: '98px', + className: 'font-14 width150s', sorter: true, sortDirections: sortDirections, + width:150, render: (text, record) => ( - {record.people_num} + {record.people_num} ), }, { @@ -73,12 +74,12 @@ class Videostatisticslist extends Component { dataIndex: 'total_time', key: 'total_time', align: "center", - className: 'font-14 maxnamewidth100s ', - width: '100px', + className: 'font-14 width150s ', sorter: true, sortDirections: sortDirections, + width:150, render: (text, record) => ( -
+
- {record.total_time} @@ -105,10 +106,10 @@ class Videostatisticslist extends Component { dataIndex: 'user_name', key: 'user_name', align: "center", - className: 'font-14 maxnamewidth100s', - width: '100px', + className: 'font-14 width150s', + width:150, render: (text, record) => ( - + - {record.user_name} @@ -136,9 +137,8 @@ class Videostatisticslist extends Component { key: 'id', align: "center", className: 'font-14', - width: '50px', render: (text, record) => ( - this.props.tisticsbools(true,record.id,record.title)}>详情 + this.props.tisticsbools(true,record.id,record.title)}>详情 ), } ],