courseware
杨树林 5 years ago
parent e604fc6b93
commit 69522c5956

@ -42,11 +42,11 @@ if (isDev) {
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
} }
// 超管 // 超管
//debugType="admin"; debugType="admin";
// 老师 // 老师
// debugType="teacher"; // debugType="teacher";
// 学生 // 学生
debugType="student"; // debugType="student";

@ -431,6 +431,13 @@
white-space:nowrap; white-space:nowrap;
cursor: default; cursor: default;
} }
.maxnamewidth200ss{
max-width: 200px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth150s{ .maxnamewidth150s{
width: 150px; width: 150px;
max-width: 150px; max-width: 150px;
@ -439,6 +446,13 @@
white-space:nowrap; white-space:nowrap;
cursor: default; cursor: default;
} }
.maxnamewidth150ss{
max-width: 150px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth140s{ .maxnamewidth140s{
width: 140px; width: 140px;
max-width: 140px; max-width: 140px;
@ -511,3 +525,10 @@
.textalignrights{ .textalignrights{
text-align: right; text-align: right;
} }
.width200s{
width: 200px !important;
}
.width150s{
width: 150px !important;
}

@ -31,9 +31,10 @@ class Studentstatistics extends Component {
dataIndex: 'title', dataIndex: 'title',
key: 'title', key: 'title',
align: "center", align: "center",
className: 'font-14 ', className: 'font-14 width200s',
width: 200,
render: (text, record) => ( render: (text, record) => (
<div style={{width: '200px'}} className="maxnamewidth200s textalignlefts"> <div className className="maxnamewidth200ss textalignlefts" style={{ wordWrap: 'break-word', wordBreak: 'break-word' }}>
<script> <script>
{ {
` `
@ -48,7 +49,7 @@ class Studentstatistics extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth200s textalignlefts" style={{ <a className="maxnamewidth200ss textalignlefts" style={{
color:"#333333" color:"#333333"
}} title={record.title}>{record.title}</a> }} title={record.title}>{record.title}</a>

@ -31,9 +31,10 @@ class Videostatisticslist extends Component {
dataIndex: 'title', dataIndex: 'title',
key: 'title', key: 'title',
align: "center", align: "center",
className: 'font-14', className: 'font-14 width200s',
width:200,
render: (text, record) => ( render: (text, record) => (
<div style={{width: '200px'}} className="maxnamewidth200s textalignlefts"> <div className="maxnamewidth200ss textalignlefts" style={{ wordWrap: 'break-word', wordBreak: 'break-word' }}>
<script> <script>
{ {
` `
@ -48,7 +49,7 @@ class Videostatisticslist extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth200s textalignlefts" style={{ <a className="maxnamewidth200ss textalignlefts" style={{
color:"#333333" color:"#333333"
}} title={record.title}>{record.title}</a> }} title={record.title}>{record.title}</a>
@ -60,12 +61,12 @@ class Videostatisticslist extends Component {
dataIndex: 'people_num', dataIndex: 'people_num',
key: 'people_num', key: 'people_num',
align: "center", align: "center",
className: 'font-14', className: 'font-14 width150s',
width: '98px',
sorter: true, sorter: true,
sortDirections: sortDirections, sortDirections: sortDirections,
width:150,
render: (text, record) => ( render: (text, record) => (
<span style={{width: '98px'}}>{record.people_num}</span> <span>{record.people_num}</span>
), ),
}, },
{ {
@ -73,12 +74,12 @@ class Videostatisticslist extends Component {
dataIndex: 'total_time', dataIndex: 'total_time',
key: 'total_time', key: 'total_time',
align: "center", align: "center",
className: 'font-14 maxnamewidth100s ', className: 'font-14 width150s ',
width: '100px',
sorter: true, sorter: true,
sortDirections: sortDirections, sortDirections: sortDirections,
width:150,
render: (text, record) => ( render: (text, record) => (
<div style={{width: '100px'}} className="maxnamewidth100s textalignrights"> <div className="maxnamewidth150ss textalignrights">
<script> <script>
{ {
` `
@ -93,7 +94,7 @@ class Videostatisticslist extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth100s textalignrights" style={{ <a className="maxnamewidth150ss textalignrights" style={{
color:"#333333" color:"#333333"
}} title={record.total_time}>{record.total_time}</a> }} title={record.total_time}>{record.total_time}</a>
@ -105,10 +106,10 @@ class Videostatisticslist extends Component {
dataIndex: 'user_name', dataIndex: 'user_name',
key: 'user_name', key: 'user_name',
align: "center", align: "center",
className: 'font-14 maxnamewidth100s', className: 'font-14 width150s',
width: '100px', width:150,
render: (text, record) => ( render: (text, record) => (
<span style={{width: '100px'}} className="maxnamewidth100s"> <span className="maxnamewidth150ss">
<script> <script>
{ {
` `
@ -123,7 +124,7 @@ class Videostatisticslist extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth100s" style={{ <a className="maxnamewidth150ss" style={{
color:"#333333" color:"#333333"
}} title={record.user_name}>{record.user_name}</a> }} title={record.user_name}>{record.user_name}</a>
@ -136,9 +137,8 @@ class Videostatisticslist extends Component {
key: 'id', key: 'id',
align: "center", align: "center",
className: 'font-14', className: 'font-14',
width: '50px',
render: (text, record) => ( render: (text, record) => (
<span style={{width: '50px',color:'#5091FF'}} className="xiaoshou" onClick={()=>this.props.tisticsbools(true,record.id,record.title)}>详情</span> <span style={{color:'#5091FF'}} className="xiaoshou" onClick={()=>this.props.tisticsbools(true,record.id,record.title)}>详情</span>
), ),
} }
], ],

Loading…
Cancel
Save