yslnewtiku
cxt 5 years ago
commit f1db630290

@ -104,32 +104,32 @@ class Listofworksstudentone extends Component {
key: 'number', key: 'number',
align: "center", align: "center",
className: 'font-14', className: 'font-14',
width: '100px', width: '90px',
render: (text, record) => ( render: (text, record) => (
<span style={{width: '100px'}}> <span style={{width: '90px'}}>
{record.number === undefined ? {record.number === undefined ?
<span style={{ <span style={{
color: '#9A9A9A', color: '#9A9A9A',
textAlign: "center", textAlign: "center",
width: '100px' width: '90px'
}}> --</span> }}> --</span>
: record.number === "" ? : record.number === "" ?
<span style={{ <span style={{
color: '#9A9A9A', color: '#9A9A9A',
textAlign: "center", textAlign: "center",
width: '100px' width: '90px'
}}>--</span> }}>--</span>
: record.number === "--" ? : record.number === "--" ?
<span style={{ <span style={{
color: '#9A9A9A', color: '#9A9A9A',
textAlign: "center", textAlign: "center",
width: '100px' width: '90px'
}}>--</span> }}>--</span>
: :
<span style={{ <span style={{
color: '#07111B', color: '#07111B',
textAlign: "center", textAlign: "center",
width: '100px' width: '90px'
}}> {record.number}</span> }}> {record.number}</span>
} }
</span> </span>
@ -187,31 +187,31 @@ class Listofworksstudentone extends Component {
dataIndex: 'stduynumber', dataIndex: 'stduynumber',
key: 'stduynumber', key: 'stduynumber',
align: "center", align: "center",
className: 'font-14 maxnamewidth145', className: 'font-14 maxnamewidth120',
width: '145px', width: '120px',
render: (text, record) => ( render: (text, record) => (
<span className="maxnamewidth145" style={{ <span className="maxnamewidth120" style={{
width: '145px', width: '120px',
}}> }}>
{record.stduynumber === undefined ? {record.stduynumber === undefined ?
<span style={{ <span style={{
color: '#000', color: '#000',
textAlign: "center", textAlign: "center",
width: '145px', width: '120px',
}}>-- }}>--
</span> </span>
: record.stduynumber === null ? : record.stduynumber === null ?
<span style={{ <span style={{
color: '#000', color: '#000',
textAlign: "center", textAlign: "center",
width: '145px', width: '120px',
}}>-- }}>--
</span> </span>
: record.stduynumber === "" ? : record.stduynumber === "" ?
<span style={{ <span style={{
color: '#000', color: '#000',
textAlign: "center", textAlign: "center",
width: '145px', width: '120px',
}}>-- }}>--
</span> </span>
: :
@ -221,14 +221,12 @@ class Listofworksstudentone extends Component {
style={{ style={{
color: '#000', color: '#000',
textAlign: "center", textAlign: "center",
width: '145px', width: '120px',
}}>{ }}>{
record.stduynumber record.stduynumber
} }
</a> </a>
} }
</span> </span>
), ),
}, },

@ -73,6 +73,14 @@
white-space:nowrap; white-space:nowrap;
cursor: default; cursor: default;
} }
.maxnamewidth120{
max-width: 120px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth145{ .maxnamewidth145{
max-width: 145px; max-width: 145px;
overflow:hidden; overflow:hidden;

Loading…
Cancel
Save