|
|
@ -33,15 +33,17 @@ const leaveStatistics = (props) => { |
|
|
|
{ name: "姓名", value: "userName" }, |
|
|
|
{ name: "所属部门", value: "departmrnt" }, |
|
|
|
{ name: "职位", value: "roleName" }, |
|
|
|
{ name: "在职状态", value: "inStatus" }, |
|
|
|
{ name: "合计请假时长", value: "vacateDayStatisticDuration" }, |
|
|
|
{ name: "合计请假次数", value: "vacateCount" }, |
|
|
|
{ name: "操作", value: "operate" }, |
|
|
|
] |
|
|
|
}]);//表格属性 |
|
|
|
useEffect(() => { |
|
|
|
localStorage.getItem(LEAVESTATISTICS) == null |
|
|
|
? localStorage.setItem( |
|
|
|
LEAVESTATISTICS, |
|
|
|
JSON.stringify(['userName', 'departmrnt', 'roleName', 'vacateCount', 'vacateDayStatisticDuration']) |
|
|
|
JSON.stringify(['userName', 'departmrnt', 'roleName', 'inStatus', 'vacateCount', 'vacateDayStatisticDuration', 'operate']) |
|
|
|
) |
|
|
|
: ""; |
|
|
|
getAttendanceVacateTypeList() |
|
|
@ -196,6 +198,18 @@ const leaveStatistics = (props) => { |
|
|
|
} |
|
|
|
</div>); |
|
|
|
}, |
|
|
|
}, { |
|
|
|
title: ( |
|
|
|
<div> |
|
|
|
<img src="/assets/images/hrImg/V.png" alt="" style={{ width: 14, height: 14 }} /> 在职状态 |
|
|
|
</div> |
|
|
|
), |
|
|
|
width: 100, |
|
|
|
dataIndex: "inStatus", |
|
|
|
key: "inStatus", |
|
|
|
render: (_, r, index) => { |
|
|
|
return (r.userActiveStatus == 1 ? '在职' : r.userActiveStatus == 2 ? '离职' : '特殊状态-特殊账号'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
for (let j = 0; j < typeList.length; j++) { |
|
|
@ -234,6 +248,20 @@ const leaveStatistics = (props) => { |
|
|
|
return (r.vacateCount ? r.vacateCount : '0') |
|
|
|
}, |
|
|
|
}) |
|
|
|
column.push({ |
|
|
|
title: '操作', |
|
|
|
width: 160, |
|
|
|
dataIndex: "operate", |
|
|
|
key: "operate", |
|
|
|
sorter: (a, b) => { }, |
|
|
|
render: (_, r, index) => { |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<span style={{ color: '#1890FF', cursor: 'pointer' }}>备注</span> |
|
|
|
</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
}) |
|
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
|
let colum = column.filter((item) => { |
|
|
|
return item.key === arr[i]; |
|
|
@ -422,7 +450,7 @@ const leaveStatistics = (props) => { |
|
|
|
<Setup |
|
|
|
tableType={LEAVESTATISTICS} |
|
|
|
tableList={tableList} |
|
|
|
length={5 + mytypeList.length} |
|
|
|
length={7 + mytypeList.length} |
|
|
|
close={() => { |
|
|
|
setSetup(false); |
|
|
|
attribute(mytypeList); |
|
|
|