Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
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
郭铭瑶
east-nanjing-new
Commits
0561516b
Commit
0561516b
authored
Apr 25, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作站页面隐藏勾边按钮
parent
1d762a1f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
map-btns.vue
src/view/components/map-btns.vue
+10
-5
No files found.
src/view/components/map-btns.vue
View file @
0561516b
...
@@ -75,6 +75,7 @@ export default defineComponent({
...
@@ -75,6 +75,7 @@ export default defineComponent({
name
:
'MapBtns'
,
name
:
'MapBtns'
,
emits
:
[
'full'
,
'change'
,
'zoom'
],
emits
:
[
'full'
,
'change'
,
'zoom'
],
setup
(
_
,
ctx
)
{
setup
(
_
,
ctx
)
{
const
curViewType
=
computed
(()
=>
store
.
state
.
curView
.
type
)
const
btns
=
computed
(()
=>
{
const
btns
=
computed
(()
=>
{
const
mapType
=
const
mapType
=
store
.
state
.
curMapType
===
'2D'
store
.
state
.
curMapType
===
'2D'
...
@@ -82,17 +83,20 @@ export default defineComponent({
...
@@ -82,17 +83,20 @@ export default defineComponent({
:
{
key
:
'2D'
,
icon
:
d2
,
title
:
'开启2D地图'
}
:
{
key
:
'2D'
,
icon
:
d2
,
title
:
'开启2D地图'
}
const
list
=
[
const
list
=
[
// { key: 'search', icon: btn1 },
// { key: 'search', icon: btn1 },
{
key
:
'dragable'
,
icon
:
btn8
,
title
:
'开启/关闭拖拽功能'
},
{
key
:
'in'
,
icon
:
zoomIn
,
title
:
'放大地图'
},
{
key
:
'in'
,
icon
:
zoomIn
,
title
:
'放大地图'
},
{
key
:
'out'
,
icon
:
zoomOut
,
title
:
'缩小地图'
},
{
key
:
'out'
,
icon
:
zoomOut
,
title
:
'缩小地图'
},
{
key
:
'full'
,
icon
:
btn2
,
title
:
'全屏'
},
{
key
:
'full'
,
icon
:
btn2
,
title
:
'全屏'
},
{
key
:
'points'
,
icon
:
btn6
,
title
:
'显示/隐藏小区点'
},
{
key
:
'points'
,
icon
:
btn6
,
title
:
'显示/隐藏小区点'
},
{
key
:
'polyline'
,
icon
:
btn7
},
{
key
:
'dragable'
,
icon
:
btn8
,
title
:
'开启/关闭拖拽功能'
},
// { key: '', icon: btn4 },
// { key: '', icon: btn4 },
// { key: '', icon: btn5 },
// { key: '', icon: btn5 },
// { key: '', icon: btn6 },
// { key: '', icon: btn6 },
]
]
return
[
mapType
,
...
list
]
const
polyline
=
{
key
:
'polyline'
,
icon
:
btn7
}
return
curViewType
.
value
===
'street'
?
[
mapType
,
...
list
,
polyline
]
:
[
mapType
,
...
list
]
})
})
const
fullScreen
=
ref
(
false
)
const
fullScreen
=
ref
(
false
)
const
searchModal
=
ref
(
false
)
const
searchModal
=
ref
(
false
)
...
@@ -131,7 +135,7 @@ export default defineComponent({
...
@@ -131,7 +135,7 @@ export default defineComponent({
const
searchKey
=
ref
(
''
)
const
searchKey
=
ref
(
''
)
const
caseList
=
computed
(()
=>
store
.
state
.
caseList
)
const
caseList
=
computed
(()
=>
store
.
state
.
caseList
)
const
options
=
computed
(()
=>
{
const
options
=
computed
(()
=>
{
if
(
store
.
state
.
curView
.
typ
e
===
'street'
)
{
if
(
curViewType
.
valu
e
===
'street'
)
{
return
[
return
[
{
label
:
'第一工作站'
,
value
:
'workArea1'
},
{
label
:
'第一工作站'
,
value
:
'workArea1'
},
{
label
:
'第二工作站'
,
value
:
'workArea2'
},
{
label
:
'第二工作站'
,
value
:
'workArea2'
},
...
@@ -148,7 +152,7 @@ export default defineComponent({
...
@@ -148,7 +152,7 @@ export default defineComponent({
checkboxValues
.
value
=
e
checkboxValues
.
value
=
e
}
}
watch
(
watch
(
[()
=>
store
.
state
.
curView
.
typ
e
,
()
=>
store
.
state
.
curMapType
],
[()
=>
curViewType
.
valu
e
,
()
=>
store
.
state
.
curMapType
],
()
=>
(
checkboxValues
.
value
=
[])
()
=>
(
checkboxValues
.
value
=
[])
)
)
return
{
return
{
...
@@ -162,6 +166,7 @@ export default defineComponent({
...
@@ -162,6 +166,7 @@ export default defineComponent({
options
,
options
,
checkboxValues
,
checkboxValues
,
handleChange
,
handleChange
,
curViewType
,
}
}
},
},
})
})
...
...
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