Commit d579e0ea authored by 皮倩雯's avatar 皮倩雯

fix: '切片管网删除'

parent 2970d63e
Pipeline #82751 passed with stages
......@@ -8,6 +8,7 @@ import {
getSolutionList,
updatePublishedMetaData,
GettMaplayer,
deleteConfig,
} from '@/services/webConfig/api';
import AddModal from './AddModal';
import PreviewModal from './VectorPreviewModal';
......@@ -137,11 +138,11 @@ const VectorData = props => {
</Button>
<div onClick={e => e.stopPropagation()}>
<Popconfirm
title="是否删除该底图?"
title="是否删除该切片管网?"
okText="确认"
cancelText="取消"
onConfirm={() => {
delConfirm(record);
delConfirmSliced(record);
}}
>
<Button size="small" danger>
......@@ -241,6 +242,38 @@ const VectorData = props => {
}
});
};
const delConfirmSliced = record => {
const { servicename = '' } = record;
setTreeLoading(true);
deleteConfig({
servicename,
terminalType: 'base',
isBaseMap: true,
})
.then(res => {
setFlag(flag + 1);
if (res.code == '0') {
// form.resetFields();
// callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: res.message || '删除成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.message || '删除失败',
});
}
})
.catch(err => {
setFlag(flag + 1);
setTreeLoading(false);
});
};
const handleAdd = () => {
setType('add');
if (radioType == 1) {
......
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