|
@ -7,6 +7,7 @@ import * as echarts from 'echarts'; |
|
|
import DeleteModal from '../components/deleteModal'; |
|
|
import DeleteModal from '../components/deleteModal'; |
|
|
import PersonnelModal from '../components/personnelModal'; |
|
|
import PersonnelModal from '../components/personnelModal'; |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
|
|
|
import { UserAttribute } from '$utils' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import '../style.less' |
|
|
import '../style.less' |
|
@ -610,7 +611,7 @@ const Rest = (props) => { |
|
|
职务信息 |
|
|
职务信息 |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ marginTop: 13, display: 'flex' }}> |
|
|
<div style={{ marginTop: 13, display: 'flex' }}> |
|
|
<div style={{ display: 'flex', width: '14.715%' }}> |
|
|
<div style={{ display: 'flex', width: '15.715%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
员工编号: |
|
|
员工编号: |
|
|
</div> |
|
|
</div> |
|
@ -618,7 +619,7 @@ const Rest = (props) => { |
|
|
{pepObj.userCode || '暂无'} |
|
|
{pepObj.userCode || '暂无'} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ display: 'flex', width: '19.072%' }}> |
|
|
<div style={{ display: 'flex', width: '17.072%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
入职时间: |
|
|
入职时间: |
|
|
</div> |
|
|
</div> |
|
@ -626,7 +627,7 @@ const Rest = (props) => { |
|
|
{pepObj.hiredate || '暂无'} |
|
|
{pepObj.hiredate || '暂无'} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ display: 'flex', width: '21.395%' }}> |
|
|
<div style={{ display: 'flex', width: '32.395%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84 }}> |
|
|
转试用期时间: |
|
|
转试用期时间: |
|
|
</div> |
|
|
</div> |
|
@ -644,43 +645,38 @@ const Rest = (props) => { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ marginTop: 9, display: 'flex' }}> |
|
|
<div style={{ marginTop: 9, display: 'flex' }}> |
|
|
<div style={{ display: 'flex', width: '33.787%' }}> |
|
|
<div style={{ display: 'flex', width: '15.715%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
员工职位: |
|
|
员工职位: |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ color: '#005ABD', fontSize: 13, display: 'flex', alignItems: 'center' }}> |
|
|
<div style={{ color: '#005ABD', fontSize: 13 }}> |
|
|
{ |
|
|
{ |
|
|
pepObj?.role?.map((item, index) => { |
|
|
pepObj.userJob? UserAttribute.jobDataSource[pepObj.userJob - 1] : '暂无' |
|
|
let roleArr = [] |
|
|
|
|
|
for (let i = 0; i < pepObj.role.length; i++) { |
|
|
|
|
|
roleArr.push(pepObj.role[i].name) |
|
|
|
|
|
} |
|
|
|
|
|
return ( |
|
|
|
|
|
<div key={index} style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
|
|
{index < 2 ? |
|
|
|
|
|
(item.name) : ('') |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style={{ display: 'flex', width: '17.072%'}}> |
|
|
|
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
|
|
|
员工岗位: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style={{ color: '#4A4A4A', fontSize: 13 }}> |
|
|
{ |
|
|
{ |
|
|
pepObj.role.length > 1 && index == 0 ? |
|
|
pepObj.userPost || '暂无' |
|
|
(',') : ('') |
|
|
|
|
|
} |
|
|
} |
|
|
{ |
|
|
|
|
|
pepObj.role.length > 2 && index == 2 ? ( |
|
|
|
|
|
<Tooltip content={roleArr.join(',')} trigger="click" style={{ lineHeight: 2 }}> |
|
|
|
|
|
<div style={{ color: 'rgba(0,90,189,0.8)', fontSize: 12, marginRight: 4, cursor: "pointer", }}> |
|
|
|
|
|
+{pepObj.role.length - 2} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</Tooltip> |
|
|
|
|
|
) : ('') |
|
|
|
|
|
} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
) |
|
|
<div style={{ display: 'flex', width: '32.395%'}}> |
|
|
}) |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84, textAlign: 'end' }}> |
|
|
|
|
|
所属机构: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style={{ color: '#4A4A4A', fontSize: 13 }}> |
|
|
|
|
|
{ |
|
|
|
|
|
pepObj.userOrganization? UserAttribute.organizationDataSource[pepObj.userOrganization - 1] : '暂无' |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ display: 'flex', width: '66.213%' }}> |
|
|
<div style={{ display: 'flex', width: '' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84, textAlign: 'end' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
所属部门: |
|
|
所属部门: |
|
|
</div> |
|
|
</div> |
|
|
{ |
|
|
{ |
|
@ -712,7 +708,7 @@ const Rest = (props) => { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ display: 'flex' }}> |
|
|
<div style={{ display: 'flex' }}> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '14.715%' }}> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '15.715%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
工作经验: |
|
|
工作经验: |
|
|
</div> |
|
|
</div> |
|
@ -720,7 +716,7 @@ const Rest = (props) => { |
|
|
{pepObj.experienceYear ? pepObj.experienceYear + '年' : '暂无'} |
|
|
{pepObj.experienceYear ? pepObj.experienceYear + '年' : '暂无'} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '19.072%' }}> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '17.072%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 60 }}> |
|
|
入职年限: |
|
|
入职年限: |
|
|
</div> |
|
|
</div> |
|
@ -728,7 +724,7 @@ const Rest = (props) => { |
|
|
{pepObj.hiredate ? String(moment(new Date()).diff(pepObj.hiredate, 'years',true)).substring(0,3) + '年' : '暂无'} |
|
|
{pepObj.hiredate ? String(moment(new Date()).diff(pepObj.hiredate, 'years',true)).substring(0,3) + '年' : '暂无'} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '39.4%' }}> |
|
|
<div style={{ marginTop: 9, display: 'flex', width: '32.395%' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84, textAlign: 'end' }}> |
|
|
<div style={{ color: 'rgba(0, 0, 0,0.6)', fontSize: 12, width: 84, textAlign: 'end' }}> |
|
|
试用期: |
|
|
试用期: |
|
|
</div> |
|
|
</div> |
|
|