fix: 修复key批次已作废不能复制
This commit is contained in:
parent
fc136f745b
commit
599c6e8b76
|
@ -100,7 +100,6 @@ const UseKeyAddEdit = () => {
|
|||
error_count: 0,
|
||||
exceldata: [],
|
||||
myfile: {},
|
||||
isCancel: false,
|
||||
audit_visible: false,
|
||||
key_status: -1,
|
||||
keyType: Number(sessionStorage.getItem("keyType")),
|
||||
|
@ -427,10 +426,6 @@ const UseKeyAddEdit = () => {
|
|||
handelResponse(
|
||||
res,
|
||||
(req, msg) => {
|
||||
if (Number(req.status) === 7) {
|
||||
setState({ isCancel: true });
|
||||
}
|
||||
|
||||
setState({ key_status: req.status, id: req.id, keyCodeId: req.id });
|
||||
editFun(req);
|
||||
},
|
||||
|
@ -1102,12 +1097,9 @@ const UseKeyAddEdit = () => {
|
|||
</Form>
|
||||
</Card>
|
||||
<div className="addkey-btn-group">
|
||||
{state.isCancel ? null : (
|
||||
<Button type="primary" onClick={() => examineBtn()}>
|
||||
提交审核
|
||||
</Button>
|
||||
)}
|
||||
|
||||
<Button type="primary" onClick={() => examineBtn()}>
|
||||
提交审核
|
||||
</Button>
|
||||
<Button type="normal" onClick={() => examineBackBtn()}>
|
||||
取消
|
||||
</Button>
|
||||
|
|
Loading…
Reference in New Issue