Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
661a9a28
Commit
661a9a28
authored
Jul 28, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图修改
parent
240e35bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
15 deletions
+26
-15
index.vue
pages/demo/index.vue
+1
-1
3.vue
pages/demo/lid/3.vue
+22
-9
menu.vue
pages/demo/lid/menu.vue
+3
-5
No files found.
pages/demo/index.vue
View file @
661a9a28
...
...
@@ -337,7 +337,7 @@ export default {
};
},
created
()
{
this
.
icon
=
new
BMap
.
Icon
(
"/images/map/train/1.png"
,
new
BMap
.
Size
(
19
,
23
));
//
this.icon = new BMap.Icon("/images/map/train/1.png", new BMap.Size(19, 23));
},
methods
:
{
handler
({
BMap
,
map
})
{
...
...
pages/demo/lid/3.vue
View file @
661a9a28
...
...
@@ -95,7 +95,14 @@
</div>
</bm-info-window>
</baidu-map>
<Drawer
title=
"设备详情"
width=
"300"
:transfer=
"false"
:inner=
"true"
:mask=
"false"
v-model=
"lidModal"
>
<Drawer
title=
"设备详情"
width=
"300"
:transfer=
"false"
:inner=
"true"
:mask=
"false"
v-model=
"lidModal"
>
<div>
<p>
MAC :45678954345670987
</p>
<p>
编号:0001
</p>
...
...
@@ -103,7 +110,8 @@
<p>
街道:迪拜大楼
</p>
<p>
财务状态:已设防
</p>
<p
class=
"red"
>
状态:报警
</p>
<p
v-if=
"dot"
>
经纬度:
<p
v-if=
"dot"
>
经纬度:
<span>
{{
dot
.
point
.
lng
}}
,
{{
dot
.
point
.
lat
}}
</span>
</p>
</div>
...
...
@@ -136,7 +144,7 @@ export default {
data
()
{
return
{
center
:
{
lng
:
0
,
lat
:
0
},
dot
:
null
,
dot
:
null
,
lidModal
:
false
,
marker
:
{
name
:
"北京"
,
...
...
@@ -411,8 +419,8 @@ export default {
this
.
map
.
addOverlay
(
marker2
);
// 将标注添
marker2
.
addEventListener
(
"click"
,
(
p
)
=>
{
this
.
lidModal
=
true
;
this
.
dot
=
p
;
console
.
warn
(
"vvv"
,
p
)
this
.
dot
=
p
;
console
.
warn
(
"vvv"
,
p
);
});
},
addDot
(
color
,
u
)
{
...
...
@@ -463,7 +471,7 @@ export default {
left: 0;
right: 0;
height: calc(100vh - 100px);
.ivu-drawer-header{
.ivu-drawer-header
{
background: #f5f6fa;
}
.ad {
...
...
@@ -486,12 +494,11 @@ export default {
margin-bottom: 0;
}
}
}
.menu {
position: absolute;
width: 240px;
top:80px;
top:
80px;
background: white;
border-radius: 8px;
bottom: 15px;
...
...
@@ -499,6 +506,12 @@ export default {
z-index: 4;
border: 1px solid #ddd;
padding-top: 15px;
// .ivu-menu-light.ivu-menu-vertical {
// .ivu-menu-item-active {
// background: rgba(38, 128, 235, 1);
// color: white;
// }
// }
}
.legend {
position: absolute;
...
...
pages/demo/lid/menu.vue
View file @
661a9a28
<
template
>
<div
class=
"mane-b"
>
<Menu>
<Submenu
name=
"1"
>
<template
slot=
"title"
>
<Menu
active-name=
"1"
>
<MenuItem
name=
"1"
>
<Icon
type=
"ios-paper"
/>
功能导航
</
template
>
</Submenu>
</MenuItem>
<Submenu
name=
"2"
>
<template
slot=
"title"
>
<Icon
type=
"ios-people"
/>
设备列表
...
...
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