Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ad511cad
authored
2020-11-30 14:42:02 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除增加二次提醒,删除成功后,页面跳转到首页
1 parent
c9646189
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
25 deletions
src/components/lineTree/lineTree.vue
src/components/lineTree/lineTree.vue
View file @
ad511ca
...
...
@@ -300,26 +300,46 @@ export default {
},
//右键菜单的删除
deleteByBsm
(){
let
params
=
{
"bsm"
:
this
.
zdData
.
bsm
,
"type"
:
this
.
zdData
.
type
};
if
(
this
.
zdData
.
type
==
'zd'
){
params
=
{
"bsm"
:
this
.
zdData
.
zdbsm
,
"type"
:
this
.
zdData
.
type
};
let
name
=
''
;
switch
(
this
.
zdData
.
type
)
{
case
'zd'
:
name
=
'宗地'
break
;
case
'dz'
:
name
=
'多幢'
break
;
case
'zrz'
:
name
=
'自然幢'
break
;
default
:
break
;
}
deleteZdInfoByBsm
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
=
200
){
this
.
$message
({
message
:
res
.
message
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
this
.
$confirm
(
'是否确定删除该'
+
name
+
'?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
"bsm"
:
this
.
zdData
.
bsm
,
"type"
:
this
.
zdData
.
type
};
deleteZdInfoByBsm
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
=
200
){
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
$router
.
push
(
"/panel"
);
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
}).
catch
(()
=>
{
});
},
},
};
...
...
@@ -352,12 +372,6 @@ export default {
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
//
.active_color
{
//
color
:
#ffffff
;
//
}
.reTree_box
{
//
overflow-y
:
auto
;
}
.reTree_icon
{
width
:
17px
;
height
:
17px
;
...
...
@@ -369,7 +383,6 @@ export default {
position
:
relative
;
color
:
#ffffff
;
cursor
:
pointer
;
moz-user-select
:
-moz-none
;
-moz-user-select
:
none
;
-o-user-select
:
none
;
-khtml-user-select
:
none
;
...
...
Please
register
or
sign in
to post a comment