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
8150e0cf
authored
2020-12-29 15:58:44 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
目录树双击事件优化
1 parent
6f5f101c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
src/components/lineTree/lineItem.vue
src/components/lineTree/lineItem.vue
View file @
8150e0c
...
...
@@ -211,29 +211,25 @@ export default {
dbclick
(
item
,
bsm
)
{
clearTimeout
(
this
.
time
);
this
.
$store
.
state
.
newZdbsm
=
bsm
;
//此处不要将$router移到if的外面,因为可能是双击行政区,就不知道去哪儿了
if
(
item
.
type
==
'zd'
)
{
this
.
$store
.
state
.
zdbsm
=
item
.
bsm
;
this
.
$router
.
push
({
path
:
'/'
+
item
.
type
,
query
:{
source
:
2
,
bsm
:
item
.
bsm
,
auth
:
this
.
$route
.
query
.
auth
?
this
.
$route
.
query
.
auth
:
'0,1,2'
}
});
}
else
if
(
item
.
type
==
'zrz'
){
this
.
$store
.
state
.
zrzbsm
=
item
.
bsm
;
this
.
$router
.
push
({
path
:
'/'
+
item
.
type
,
query
:{
source
:
2
,
bsm
:
item
.
bsm
,
auth
:
this
.
$route
.
query
.
auth
?
this
.
$route
.
query
.
auth
:
'0,1,2'
}
});
}
else
if
(
item
.
type
==
'dz'
){
this
.
$store
.
state
.
dzbsm
=
item
.
bsm
;
switch
(
item
.
type
)
{
case
'zd'
:
this
.
$store
.
state
.
zdbsm
=
item
.
bsm
;
break
;
case
'zrz'
:
this
.
$store
.
state
.
zrzbsm
=
item
.
bsm
;
break
;
case
'dz'
:
this
.
$store
.
state
.
dzbsm
=
item
.
bsm
;
break
;
case
'gzw'
:
this
.
$store
.
state
.
gzwbsm
=
item
.
bsm
;
break
;
default
:
break
;
}
if
(
item
.
type
){
this
.
$router
.
push
({
path
:
'/'
+
item
.
type
,
query
:{
...
...
Please
register
or
sign in
to post a comment