Commit 2b8915f3 authored by 邓超's avatar 邓超

fix: 事件导入导出优化

parent 8089202e
Pipeline #67273 waiting for manual action with stages
...@@ -393,6 +393,7 @@ const incident = () => { ...@@ -393,6 +393,7 @@ const incident = () => {
console.log('OK'); console.log('OK');
ImportEventConfig(formData).then(response => { ImportEventConfig(formData).then(response => {
if (response.code === 0) { if (response.code === 0) {
setFlag(flag + 1);
message.success('导入成功'); message.success('导入成功');
} else { } else {
message.error(response.msg); message.error(response.msg);
...@@ -400,7 +401,7 @@ const incident = () => { ...@@ -400,7 +401,7 @@ const incident = () => {
}); });
}, },
okText: '确认', okText: '确认',
cancelText: '取消', cancelText: '我在想想',
}); });
} else { } else {
message.error(res.msg); message.error(res.msg);
...@@ -672,7 +673,7 @@ const incident = () => { ...@@ -672,7 +673,7 @@ const incident = () => {
<Button style={{ marginLeft: '10px' }} type="primary" ghost> <Button style={{ marginLeft: '10px' }} type="primary" ghost>
<div style={{ display: 'flex', alignItems: 'center' }}> <div style={{ display: 'flex', alignItems: 'center' }}>
<ImportOutlined style={{ marginRight: '5px' }} /> <ImportOutlined style={{ marginRight: '5px' }} />
<div> 导入</div> <div> 确认导入</div>
</div> </div>
</Button> </Button>
</Upload> </Upload>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment