|
|
@@ -123,8 +123,7 @@ const LockModal = props => {
|
|
|
// 更换软件锁
|
|
|
const connectLongle = async id => {
|
|
|
const { code = -1 } = await apiSoftwareAddLonglelog({
|
|
|
- id,
|
|
|
- // newLongleId,
|
|
|
+ newLongleId: id,
|
|
|
status: type,
|
|
|
longleId
|
|
|
})
|
|
|
@@ -148,6 +147,11 @@ const LockModal = props => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const checkGroupOnChange = e => {
|
|
|
+ const { value = '' } = e.target
|
|
|
+ initData({ status: value, page: 1, size: 10 })
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<Modal
|
|
|
title={
|
|
|
@@ -188,7 +192,7 @@ const LockModal = props => {
|
|
|
{type === lockTypeEnum.SALE ? (
|
|
|
<>
|
|
|
<div className="zh-text-center zh-mg-bottom-25">
|
|
|
- <Radio.Group defaultValue="3" buttonStyle="solid">
|
|
|
+ <Radio.Group defaultValue="3" buttonStyle="solid" onChange={checkGroupOnChange}>
|
|
|
<Radio.Button value="3">借出</Radio.Button>
|
|
|
<Radio.Button value="4">销售</Radio.Button>
|
|
|
<Radio.Button value="9">赠送</Radio.Button>
|