Browse Source

(*)增加备注字段

master
Archer_cdm 2 years ago
parent
commit
4dc6d35be1
  1. 17
      web/client/src/sections/humanAffairs/containers/leaveStatistics.jsx

17
web/client/src/sections/humanAffairs/containers/leaveStatistics.jsx

@ -36,6 +36,7 @@ const leaveStatistics = (props) => {
{ name: "在职状态", value: "inStatus" }, { name: "在职状态", value: "inStatus" },
{ name: "合计请假时长", value: "vacateDayStatisticDuration" }, { name: "合计请假时长", value: "vacateDayStatisticDuration" },
{ name: "合计请假次数", value: "vacateCount" }, { name: "合计请假次数", value: "vacateCount" },
{ name: "备注", value: "remark" },
{ name: "操作", value: "operate" }, { name: "操作", value: "operate" },
] ]
}]);// }]);//
@ -43,7 +44,7 @@ const leaveStatistics = (props) => {
localStorage.getItem(LEAVESTATISTICS) == null localStorage.getItem(LEAVESTATISTICS) == null
? localStorage.setItem( ? localStorage.setItem(
LEAVESTATISTICS, LEAVESTATISTICS,
JSON.stringify(['userName', 'departmrnt', 'roleName', 'inStatus', 'vacateCount', 'vacateDayStatisticDuration', 'operate']) JSON.stringify(['userName', 'departmrnt', 'roleName', 'inStatus', 'vacateCount', 'vacateDayStatisticDuration', 'remark', 'operate'])
) )
: ""; : "";
getAttendanceVacateTypeList() getAttendanceVacateTypeList()
@ -248,16 +249,24 @@ const leaveStatistics = (props) => {
return (r.vacateCount ? r.vacateCount : '0') return (r.vacateCount ? r.vacateCount : '0')
}, },
}) })
column.push({
title: '备注',
width: 160,
dataIndex: "remark",
key: "remark",
render: (_, r, index) => {
// return (r.vacateCount ? r.vacateCount : '0')
},
})
column.push({ column.push({
title: '操作', title: '操作',
width: 160, width: 160,
dataIndex: "operate", dataIndex: "operate",
key: "operate", key: "operate",
sorter: (a, b) => { },
render: (_, r, index) => { render: (_, r, index) => {
return ( return (
<div> <div>
<span style={{ color: '#1890FF', cursor: 'pointer' }}>备注</span> <span style={{ color: '#1890FF', cursor: 'pointer' }}>添加备注</span>
</div> </div>
) )
}, },
@ -450,7 +459,7 @@ const leaveStatistics = (props) => {
<Setup <Setup
tableType={LEAVESTATISTICS} tableType={LEAVESTATISTICS}
tableList={tableList} tableList={tableList}
length={7 + mytypeList.length} length={8 + mytypeList.length}
close={() => { close={() => {
setSetup(false); setSetup(false);
attribute(mytypeList); attribute(mytypeList);

Loading…
Cancel
Save