master
This commit is contained in:
parent
3f9a65840c
commit
ab84148570
|
|
@ -85,6 +85,32 @@ const index: FunctionComponent<Props> = (props) => {
|
|||
<Button type="link" onClick={() => handleEdit(record?.id)}>
|
||||
{i18nRes["编辑"]}
|
||||
</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>}
|
||||
</Space>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue