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