dev_cs_new
杨树林 6 years ago
parent b2d26654e2
commit 230e6bf654

@ -959,7 +959,7 @@ samp {
/* 表格间距太大 */
.ant-table-tbody>tr>td, .ant-table-thead>tr>th {
padding: 10px 0px;
padding: 16px 0px;
}
/* FORM START */
.ant-form label{

@ -166,13 +166,42 @@ class Listofworksstudentone extends Component {
dataIndex: 'stduynumber',
key: 'stduynumber',
align: "center",
className:'font-14',
className:'font-14 maxnamewidth110',
width:'110px',
render: (text, record) => (
<span>
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber}</span>
<span className="maxnamewidth110">
{record.stduynumber === undefined ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === null ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === "" ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
:
<a
title={record.stduynumber}
className="maxnamewidth110"
style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{
record.stduynumber
}
</a>
}
</span>
),
},
@ -403,13 +432,43 @@ class Listofworksstudentone extends Component {
title: '学号',
dataIndex: 'stduynumber',
key: 'stduynumber',
align: 'center',
className:'font-14',
align: "center",
className:'font-14 maxnamewidth110',
width:'110px',
render: (text, record) => (
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber}
<span className="maxnamewidth110">
{record.stduynumber === undefined ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === null ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === "" ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
:
<a
title={record.stduynumber}
className="maxnamewidth110"
style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{
record.stduynumber
}
</a>
}
</span>
),
},
@ -667,13 +726,43 @@ class Listofworksstudentone extends Component {
title: '学号',
dataIndex: 'stduynumber',
key: 'stduynumber',
align: 'center',
className:'font-14',
align: "center",
className:'font-14 maxnamewidth110',
width:'110px',
render: (text, record) => (
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber}
<span className="maxnamewidth110">
{record.stduynumber === undefined ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === null ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === "" ?
<span style={{
"color": '#9A9A9A',
"text-align": "center"
}}>--
</span>
:
<a
title={record.stduynumber}
className="maxnamewidth110"
style={{
"color": '#9A9A9A',
"text-align": "center"
}}>{
record.stduynumber
}
</a>
}
</span>
),
},
@ -2551,8 +2640,11 @@ class Listofworksstudentone extends Component {
.ant-tables .ant-table-tbody > tr > td {
height: 85px;
}
.ysltableo .ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 9px;
}
`}</style>
<div className="edu-table edu-back-white ant-tables">
<div className="edu-table edu-back-white ant-tables ysltableo">
{datajs === undefined ? "" : <Table
dataSource={datajs}
columns={columns}
@ -2733,12 +2825,12 @@ class Listofworksstudentone extends Component {
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;}
}
.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 10px;
}
.ysltableow .ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 9px;
}
`}</style>
<div className="edu-table edu-back-white ">
{data === undefined ? "222222" : <Table
<div className="edu-table edu-back-white ysltableow">
{data === undefined ? "" : <Table
dataSource={data}
columns={columnsstu}
pagination={false}
@ -2812,13 +2904,13 @@ class Listofworksstudentone extends Component {
<style>
{
`
.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 10px;
.ysltableows .ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 9px;
}
`
}
</style>
<div className="edu-table edu-back-white ">
<div className="edu-table edu-back-white ysltableows">
{data === undefined ? "" : <Table
style={styletable}
dataSource={data}
@ -2933,11 +3025,11 @@ class Listofworksstudentone extends Component {
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;}
}
.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
.ysltableowss .ant-table-thead > tr > th, .ant-table-tbody > tr > td {
padding: 10px;
}
`}</style>
<div className="edu-table edu-back-white ">
<div className="edu-table edu-back-white ysltableowss">
{datas === undefined ? "" : <Table
dataSource={datas}
columns={columnsstu}

@ -42,4 +42,10 @@
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}
.maxnamewidth110{
max-width: 110px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}
Loading…
Cancel
Save