|
|
|
@ -64,11 +64,12 @@ const index: FunctionComponent<Props> = (props) => {
|
|
|
|
|
setSelectedRowKeys(selectedRowKeys);
|
|
|
|
|
setTableScrollHeight(tableScrollHeight);
|
|
|
|
|
setColumns([...convertColumns(_.map(columns, o => ({ ...o, i18n: i18nRes }))), {
|
|
|
|
|
title: i18nRes["操作"], dataIndex: "operate", fixed: "right", width: 120,
|
|
|
|
|
title: i18nRes["操作"], dataIndex: "operate", fixed: "right", width: 220,
|
|
|
|
|
render: (__, record) => (<Space>
|
|
|
|
|
<Button type="link" onClick={() => handleEdit(record?.id)}>{i18nRes["编辑"]}</Button>
|
|
|
|
|
<Button type="link"
|
|
|
|
|
onClick={() => handleLockEmp(record)}>{record.lockStatus === "LOCK" ? i18nRes["解锁"] : i18nRes["锁定"]}</Button>
|
|
|
|
|
{record?.lockStatus === "LOCK" && <Text>{record?.lockTime}</Text>}
|
|
|
|
|
</Space>)
|
|
|
|
|
}]);
|
|
|
|
|
}
|
|
|
|
|