hotfix/2.9.10.2312.02

工资单查看-移动端备注信息展示错误的修改
This commit is contained in:
黎永顺 2024-01-15 09:34:49 +08:00
parent c6e71bd069
commit 43ff36d59f
1 changed files with 5 additions and 4 deletions

View File

@ -16,6 +16,7 @@ class Index extends Component {
render() {
const { theme, background, tip, tipPosi, itemTypeList, title } = this.props;
const { onlyOneGrup, showData } = dealTemplate(itemTypeList, "mobile");
console.log(dealTemplate(itemTypeList, "mobile"));
return (
<React.Fragment>
<div className="pbmc-head">{title || getLabel(111, "薪酬预览")}</div>
@ -31,7 +32,7 @@ class Index extends Component {
{/*}*/}
</div>
{
!onlyOneGrup && tipPosi === "1" && tip &&
!onlyOneGrup && tipPosi.toString() === "1" && tip &&
<div className="corporate-culture-text top" title={tip}>{tip}</div>
}
<div className="salary-detail-table-container">
@ -46,7 +47,7 @@ class Index extends Component {
}
<div className="group-list">
{
(onlyOneGrup && tipPosi === "1" && tip) && (<div className="list-item send-tip top">
(onlyOneGrup && tipPosi.toString() === "1" && tip) && (<div className="list-item send-tip top">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
@ -62,7 +63,7 @@ class Index extends Component {
})
}
{
(onlyOneGrup && tipPosi === "2" && tip) && (<div className="list-item send-tip bottom">
(onlyOneGrup && tipPosi.toString() === "2" && tip) && (<div className="list-item send-tip bottom">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
@ -73,7 +74,7 @@ class Index extends Component {
}
</div>
{
!onlyOneGrup && tipPosi === "2" && tip &&
!onlyOneGrup && tipPosi.toString() === "2" && tip &&
<div className="corporate-culture-text footer" title={tip}>{tip}</div>
}
{this.props.children}