Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
d579e0ea
Commit
d579e0ea
authored
Dec 05, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '切片管网删除'
parent
2970d63e
Pipeline
#82751
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
VectorData.jsx
...platformCenter/gis/schemeConfig/VectorData/VectorData.jsx
+35
-2
No files found.
src/pages/platformCenter/gis/schemeConfig/VectorData/VectorData.jsx
View file @
d579e0ea
...
...
@@ -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
);
delConfirm
Sliced
(
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment