|
|
@ -33,14 +33,14 @@ const leaveStatistics = (props) => { |
|
|
|
const [tableList, setTableList] = useState([{ |
|
|
|
title: '展示信息', |
|
|
|
list: [ |
|
|
|
{ name: "姓名", value: "userName" }, |
|
|
|
{ name: "所属部门", value: "departmrnt" }, |
|
|
|
{ name: "职位", value: "roleName" }, |
|
|
|
{ name: "在职状态", value: "inStatus" }, |
|
|
|
{ name: "合计请假时长", value: "vacateDayStatisticDuration" }, |
|
|
|
{ name: "合计请假次数", value: "vacateCount" }, |
|
|
|
{ name: "备注", value: "remark" }, |
|
|
|
{ name: "操作", value: "operate" }, |
|
|
|
{ name: "姓名", value: "userName", disabled: true }, |
|
|
|
{ name: "所属部门", value: "departmrnt", disabled: true }, |
|
|
|
{ name: "职位", value: "roleName", disabled: true }, |
|
|
|
{ name: "在职状态", value: "inStatus", disabled: true }, |
|
|
|
{ name: "合计请假时长", value: "vacateDayStatisticDuration", disabled: true }, |
|
|
|
{ name: "合计请假次数", value: "vacateCount", disabled: true }, |
|
|
|
{ name: "备注", value: "remark", disabled: true }, |
|
|
|
{ name: "操作", value: "operate", disabled: true }, |
|
|
|
] |
|
|
|
}]);//表格属性 |
|
|
|
useEffect(() => { |
|
|
@ -95,7 +95,7 @@ const leaveStatistics = (props) => { |
|
|
|
</span> |
|
|
|
), |
|
|
|
width: 200, |
|
|
|
fixed:true, |
|
|
|
fixed: true, |
|
|
|
dataIndex: "userCode", |
|
|
|
key: "userCode", |
|
|
|
sorter: (a, b) => { }, |
|
|
@ -118,7 +118,7 @@ const leaveStatistics = (props) => { |
|
|
|
</div> |
|
|
|
), |
|
|
|
width: 100, |
|
|
|
fixed:true, |
|
|
|
fixed: true, |
|
|
|
dataIndex: "userName", |
|
|
|
key: "userName", |
|
|
|
render: (_, r, index) => { |
|
|
@ -131,7 +131,7 @@ const leaveStatistics = (props) => { |
|
|
|
</div> |
|
|
|
), |
|
|
|
width: 200, |
|
|
|
fixed:true, |
|
|
|
fixed: true, |
|
|
|
dataIndex: "departmrnt", |
|
|
|
key: "departmrnt", |
|
|
|
render: (_, r, index) => { |
|
|
@ -174,7 +174,7 @@ const leaveStatistics = (props) => { |
|
|
|
</div> |
|
|
|
), |
|
|
|
width: 150, |
|
|
|
fixed:true, |
|
|
|
fixed: true, |
|
|
|
dataIndex: "roleName", |
|
|
|
key: "roleName", |
|
|
|
render: (_, r, index) => { |
|
|
@ -213,7 +213,7 @@ const leaveStatistics = (props) => { |
|
|
|
</div> |
|
|
|
), |
|
|
|
width: 120, |
|
|
|
fixed:true, |
|
|
|
fixed: true, |
|
|
|
dataIndex: "inStatus", |
|
|
|
key: "inStatus", |
|
|
|
render: (_, r, index) => { |
|
|
|