Commit 0ec0835b authored by 邓超's avatar 邓超

fix: 修改二维配置方案配置保存后弹窗不关闭

parent dab81db2
Pipeline #37874 passed with stages
in 23 minutes 54 seconds
......@@ -98,7 +98,14 @@ const CardData = props => {
}
const submitExtent = (extent, areaName) => {
const submitExtent = (extent, areaName, flag ) => {
if(flag === 0) {
notification.warn({
message: '提交失败',
description: '请框选范围',
});
return;
}
const jsConfig = {
extent: extent,
areaName: areaName,
......@@ -117,7 +124,7 @@ const CardData = props => {
).then(
res => {
if (res.msg === "Ok") {
setMapScopeVisible(true)
setMapScopeVisible(false)
message.info("范围设置成功")
}
}
......@@ -204,6 +211,7 @@ const CardData = props => {
visible={mapScopeVisible}
onCancel={() => setMapScopeVisible(false)}
confirmModal={submitExtent}
schemename={props.item.schemename}
/>
</>
)
......
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