courseware
杨树林 5 years ago
commit 3db12124fb

@ -423,6 +423,14 @@
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
line-height: 33px; line-height: 33px;
} }
.maxnamewidth200s{
width: 200px;
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;

@ -31,10 +31,10 @@ class Studentstatistics extends Component {
dataIndex: 'title', dataIndex: 'title',
key: 'title', key: 'title',
align: "center", align: "center",
className: 'font-14 maxnamewidth150s', className: 'font-14 maxnamewidth200s',
width: '150px', width: '200px',
render: (text, record) => ( render: (text, record) => (
<div style={{width: '150px'}} className="maxnamewidth150s textalignlefts"> <div style={{width: '200px'}} className="maxnamewidth200s textalignlefts">
<script> <script>
{ {
` `
@ -49,7 +49,7 @@ class Studentstatistics extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth150s textalignlefts" style={{ <a className="maxnamewidth200s textalignlefts" style={{
color:"#333333" color:"#333333"
}} title={record.title}>{record.title}</a> }} title={record.title}>{record.title}</a>
@ -110,7 +110,7 @@ class Studentstatistics extends Component {
width: '100px', width: '100px',
render: (text, record) => ( render: (text, record) => (
<span style={{width: '100px'}} className="maxnamewidth100s"> <span style={{width: '100px'}} className="maxnamewidth100s">
<script> <script>
{ {
` `
a{  a{ 

@ -78,12 +78,12 @@ class Videostatisticscomtwo extends Component {
dataIndex: 'total_duration', dataIndex: 'total_duration',
key: 'total_duration', key: 'total_duration',
align: "center", align: "center",
className: 'font-14 maxnamewidth100s', className: 'font-14 maxnamewidth200s',
width: '100px', width: '100px',
sorter: true, sorter: true,
sortDirections: sortDirections, sortDirections: sortDirections,
render: (text, record) => ( render: (text, record) => (
<div style={{width: '100px'}} className="maxnamewidth100s"> <div style={{width: '100px'}} className="maxnamewidth200s">
<script> <script>
{ {
` `
@ -98,10 +98,9 @@ class Videostatisticscomtwo extends Component {
` `
} }
</script> </script>
<a className="maxnamewidth100s" style={{ <a className="maxnamewidth200s" style={{
color:"#333333" color:"#333333"
}} title={record.total_duration}>{record.total_duration}</a> }} title={record.total_duration}>{record.total_duration}</a></div>
</div>
), ),
}, },
{ {
@ -157,9 +156,13 @@ class Videostatisticscomtwo extends Component {
` `
} }
</script> </script>
<a style={{ {
color:"#333333" record.start_at?
}} title={moment(record.start_at).format('YYYY-MM-DD HH:mm:ss')}> {moment(record.start_at).format('YYYY-MM-DD HH:mm:ss')}</a> <a style={{
}} title={moment(record.start_at).format('YYYY-MM-DD HH:mm:ss')}>{moment(record.start_at).format('YYYY-MM-DD HH:mm:ss')}</a>
:
<span style={{color:"#333333"}}>--</span>
}
</div> </div>
), ),
}, },
@ -185,9 +188,16 @@ class Videostatisticscomtwo extends Component {
` `
} }
</script> </script>
<a style={{ {
color:"#333333" record.end_at?
}} title={moment(record.end_at).format('YYYY-MM-DD HH:mm:ss')}>{moment(record.end_at).format('YYYY-MM-DD HH:mm:ss')}</a> <a style={{
}} title={moment(record.end_at).format('YYYY-MM-DD HH:mm:ss')}>{moment(record.end_at).format('YYYY-MM-DD HH:mm:ss')}</a>
:
<span style={{color:"#333333"}}>--</span>
}
</div> </div>
), ),
} }
@ -276,8 +286,8 @@ class Videostatisticscomtwo extends Component {
is_finished: response.data.data[i].is_finished, is_finished: response.data.data[i].is_finished,
total_duration: response.data.data[i].total_duration?formatSeconds(response.data.data[i].total_duration):0, total_duration: response.data.data[i].total_duration?formatSeconds(response.data.data[i].total_duration):0,
feq: response.data.data[i].feq, feq: response.data.data[i].feq,
start_at: response.data.data[i].start_at, start_at: response.data.data[i].start_at?response.data.data[i].start_at:null,
end_at: response.data.data[i].end_at, end_at: response.data.data[i].end_at?response.data.data[i].end_at:null,
title: response.data.data[i].title, title: response.data.data[i].title,
}) })
} }
@ -540,7 +550,6 @@ class Videostatisticscomtwo extends Component {
} }
} }
} }
return ( return (

Loading…
Cancel
Save