|
|
@ -241,7 +241,7 @@ const Rest = (props) => { |
|
|
|
return ( |
|
|
|
<div key={idx} style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
{idx == 0 ? |
|
|
|
(ite.name.substring(0,6)) : ('') |
|
|
|
(ite.name.substring(0, 6)) : ('') |
|
|
|
} |
|
|
|
{ |
|
|
|
item.role.length > 1 && idx == 1 ? ( |
|
|
@ -268,7 +268,7 @@ const Rest = (props) => { |
|
|
|
<img src="/assets/images/hrImg/year.png" alt="" style={{ width: '100%', height: '100%' }} /> |
|
|
|
</div> |
|
|
|
<div style={{ fontSize: 14, color: '#282828', marginLeft: 12, marginRight: 9 }}> |
|
|
|
{item.hiredate ? '入职' + moment(new Date()).diff(item.hiredate, 'years') + '年' : '暂无'} |
|
|
|
{item.hiredate ? '入职' + String(moment(new Date()).diff(item.hiredate, 'years', true)).substring(0, 3) + '年' : '暂无'} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style={{ color: 'rgba(0,0,0,0.65)', fontSize: 12 }}> |
|
|
|