工资单预览调整

This commit is contained in:
MustangDeng 2022-05-31 19:05:29 +08:00
parent 936ac9bd3f
commit 9940be40ed
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,10 @@
.templatePreview {
.contentWrapper {
height: 90vh;
overflow-y: scroll;
}
.headerWrapper {
background-color: #0270c1;
height: 55px;
@ -29,7 +34,6 @@
.computerTemplate {
background-color: rgb(246, 246, 246);
width: 900px;
min-height: 1200px;
padding-top: 30px;
padding-bottom: 20px;
margin: 20px auto;

View File

@ -59,10 +59,10 @@ export default class PhoneTemplate extends React.Component {
<Row className="contentRow">
{
group.items && group.items.map(item => (
<Col span={12}>
<Col span={24}>
<Row>
<Col span={ 6 } className="contentItem">{item.name}</Col>
<Col span={ 6 } className="contentItem">{index == 0 ? item.salaryItemValue : 10000}</Col>
<Col span={ 12 } className="contentItem">{item.name}</Col>
<Col span={ 12 } className="contentItem">{index == 0 ? item.salaryItemValue : 10000}</Col>
</Row>
</Col>
))