|
|
@ -155,14 +155,14 @@ export default function Page() {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (selectedRowKeys.length == 0) {
|
|
|
|
if (selectedRowKeys1.length == 0) {
|
|
|
|
message.info('请选择一条可装配的密钥体!')
|
|
|
|
message.info('请选择一条可装配的密钥体!')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
form.validateFields().then(() => {
|
|
|
|
form.validateFields().then(() => {
|
|
|
|
tableData1.forEach(e => {
|
|
|
|
tableData1.forEach(e => {
|
|
|
|
if (e.id == selectedRowKeys[0]) { setSelectedData(e) }
|
|
|
|
if (e.id == selectedRowKeys1[0]) { setSelectedData(e) }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
setVisibility(true)
|
|
|
|
setVisibility(true)
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -195,7 +195,7 @@ export default function Page() {
|
|
|
|
const formData = new FormData();
|
|
|
|
const formData = new FormData();
|
|
|
|
formData.append('activeDate', info.activeDate.format('YYYY-MM-DD'));
|
|
|
|
formData.append('activeDate', info.activeDate.format('YYYY-MM-DD'));
|
|
|
|
formData.append('endDate', moment().format('YYYY-MM-DD'));
|
|
|
|
formData.append('endDate', moment().format('YYYY-MM-DD'));
|
|
|
|
formData.append('secretImportId', selectedRowKeys[0]);
|
|
|
|
formData.append('secretImportId', selectedRowKeys1[0]);
|
|
|
|
formData.append('sysType', sysTypeStr[sysType]);
|
|
|
|
formData.append('sysType', sysTypeStr[sysType]);
|
|
|
|
formData.append('type', '1');
|
|
|
|
formData.append('type', '1');
|
|
|
|
secretKey(formData).then((res) => {
|
|
|
|
secretKey(formData).then((res) => {
|
|
|
@ -216,7 +216,7 @@ export default function Page() {
|
|
|
|
<ButtonComp type={'special'} text={'管理密钥装配'} onClick={() => { }} />
|
|
|
|
<ButtonComp type={'special'} text={'管理密钥装配'} onClick={() => { }} />
|
|
|
|
|
|
|
|
|
|
|
|
<div className='flex_aiC mt20 mb20'>
|
|
|
|
<div className='flex_aiC mt20 mb20'>
|
|
|
|
<Radio.Group value={usageReserveArea}>
|
|
|
|
<Radio.Group value={usageReserveArea} onChange={(e) => {setUsageReserveArea(e.target.value)}}>
|
|
|
|
<Radio value="1" style={{ marginRight: 30 }}> 使用区密钥状态 </Radio>
|
|
|
|
<Radio value="1" style={{ marginRight: 30 }}> 使用区密钥状态 </Radio>
|
|
|
|
<Radio value="2"> 备用区密钥装配 </Radio>
|
|
|
|
<Radio value="2"> 备用区密钥装配 </Radio>
|
|
|
|
</Radio.Group>
|
|
|
|
</Radio.Group>
|
|
|
|