|
|
@ -85,6 +85,32 @@ const index: FunctionComponent<Props> = (props) => {
|
|
|
|
<Button type="link" onClick={() => handleEdit(record?.id)}>
|
|
|
|
<Button type="link" onClick={() => handleEdit(record?.id)}>
|
|
|
|
{i18nRes["编辑"]}
|
|
|
|
{i18nRes["编辑"]}
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
{optWidth && (
|
|
|
|
|
|
|
|
<>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
type="link"
|
|
|
|
|
|
|
|
onClick={() =>
|
|
|
|
|
|
|
|
handleLockEmp({
|
|
|
|
|
|
|
|
lockStatus: "LOCK",
|
|
|
|
|
|
|
|
acctEmpIds: [record?.id]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{i18nRes["锁定"]}
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
type="link"
|
|
|
|
|
|
|
|
onClick={() =>
|
|
|
|
|
|
|
|
handleLockEmp({
|
|
|
|
|
|
|
|
lockStatus: "UNLOCK",
|
|
|
|
|
|
|
|
acctEmpIds: [record?.id]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{i18nRes["解锁"]}
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
)}
|
|
|
|
{record?.lockTime && <Text>{record?.lockTime}</Text>}
|
|
|
|
{record?.lockTime && <Text>{record?.lockTime}</Text>}
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
)
|
|
|
|
)
|
|
|
|