|
|
@@ -58,16 +58,16 @@ const AddBomInfo = (props) => { |
|
|
|
}) |
|
|
|
.then((r) => { |
|
|
|
if (r.data) { |
|
|
|
message.success('配置成功'); |
|
|
|
message.success('操作成功'); |
|
|
|
} else { |
|
|
|
message.error('配置失败请重试!'); |
|
|
|
message.error('操作失败请重试!'); |
|
|
|
} |
|
|
|
//刷新数据 |
|
|
|
actionRef.current.reload(); |
|
|
|
}); |
|
|
|
return true; |
|
|
|
} catch (error) { |
|
|
|
message.error('配置失败请重试!'); |
|
|
|
message.error('操作失败请重试!'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@@ -128,7 +128,7 @@ const AddBomInfo = (props) => { |
|
|
|
render: (_, record) => [ |
|
|
|
record.isReplace && ( |
|
|
|
<a |
|
|
|
key="link" |
|
|
|
key="link1" |
|
|
|
onClick={() => { |
|
|
|
BomReplacVisible(true); |
|
|
|
setCurrentRow(record); |
|
|
@@ -139,7 +139,7 @@ const AddBomInfo = (props) => { |
|
|
|
), |
|
|
|
record.isReplace && ( |
|
|
|
<a |
|
|
|
key="link" |
|
|
|
key="link2" |
|
|
|
onClick={() => { |
|
|
|
handleEnable(record, 0); |
|
|
|
}} |
|
|
@@ -149,7 +149,7 @@ const AddBomInfo = (props) => { |
|
|
|
), |
|
|
|
!record.isReplace && ( |
|
|
|
<a |
|
|
|
key="link" |
|
|
|
key="link3" |
|
|
|
onClick={() => { |
|
|
|
handleEnable(record, 1); |
|
|
|
}} |
|
|
@@ -158,7 +158,7 @@ const AddBomInfo = (props) => { |
|
|
|
</a> |
|
|
|
), |
|
|
|
<a |
|
|
|
key="link" |
|
|
|
key="link4" |
|
|
|
onClick={() => { |
|
|
|
handleUpdate(record); |
|
|
|
}} |
|
|
|