Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7831549
authored
Mar 14, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.15.0版本需求
1 parent
a87406a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
119 additions
and
7 deletions
src/pages/monitor/activeLocation.vue
src/pages/monitor/activeLocation.vue
View file @
d783154
...
...
@@ -4,16 +4,41 @@
<el-breadcrumb-item>
激活位置
</el-breadcrumb-item>
</
template
>
<
template
slot=
"main"
>
<div
class=
"device_list"
>
<div
class=
"title"
>
<span>
设备列表(3)
</span>
<i
class=
"el-icon-close i_close"
></i>
</div>
<div
class=
"list_box"
>
<div
class=
"cell"
v-for=
"(item,index) in 3"
:key=
"index"
>
<div
class=
"top"
>
<i
class=
"i_circle"
></i>
<span>
陈庆红
</span>
<span>
1700151515(无线)
</span>
</div>
<div
class=
"bottom"
>
<span>
车架号:
</span>
<span>
LDSKF5522555555
</span>
</div>
</div>
</div>
<div
class=
"device_footer"
>
<i
class=
"i_circle"
></i>
<span>
在线
</span>
<i
class=
"i_circle i_red"
></i>
<span>
离线
</span>
</div>
</div>
<div
id=
"map"
class=
"map-container"
></div>
</
template
>
</v-full-layout>
</template>
<
script
>
import
mapService
from
'utils/mapService.js'
import
mapService
from
"utils/mapService.js"
;
import
"utils/mapEvent.js"
;
import
EventBus
from
'../../event-bus'
import
EventBus
from
"../../event-bus"
;
import
remoteLoad
from
"utils/remoteLoad.js"
;
import
{
CONSTANT
}
from
'../../constant'
import
{
CONSTANT
}
from
"../../constant"
;
export
default
{
data
()
{
return
{
...
...
@@ -23,7 +48,7 @@ export default {
};
},
created
()
{
console
.
log
(
history
.
state
)
console
.
log
(
history
.
state
)
;
if
(
window
.
AMap
)
{
this
.
initMap
();
}
else
{
...
...
@@ -53,10 +78,10 @@ export default {
this
.
mapObj
=
mapService
.
init
(
"map"
);
this
.
isInitMap
=
true
;
let
o
=
history
.
state
;
console
.
log
(
o
)
console
.
log
(
o
)
;
if
(
o
.
lng
||
o
.
bsLng
)
{
o
.
elat
=
o
.
lat
;
o
.
elng
=
o
.
lng
;
o
.
elat
=
o
.
lat
;
o
.
elng
=
o
.
lng
;
this
.
addLocation
(
o
);
}
}
else
{
...
...
@@ -94,6 +119,93 @@ export default {
bottom
:
0
;
overflow
:
hidden
;
}
.device_list
{
position
:
absolute
;
top
:
16px
;
left
:
16px
;
width
:
260px
;
height
:
300px
;
background
:
#fff
;
border-radius
:
4px
;
z-index
:
101
;
display
:
flex
;
flex-direction
:
column
;
border
:
1px
solid
#f2f2f2
;
.title
{
position
:
relative
;
text-align
:
center
;
height
:
36px
;
line-height
:
36px
;
border-bottom
:
1px
solid
#f2f2f2
;
span
{
font-weight
:
bold
;
}
.i_close
{
position
:
absolute
;
right
:
10px
;
top
:
50%
;
transform
:
translateY
(
-50%
);
font-size
:
16px
;
cursor
:
pointer
;
}
.i_close
:hover
{
color
:
#f00
;
}
}
.list_box
{
flex
:
1
;
padding
:
10px
0
;
.cell
{
position
:
relative
;
padding
:
4px
10px
;
line-height
:
2
;
cursor
:
pointer
;
.bottom{
padding-left
:
12px
;
}
}
.cell
:hover
{
background
:
#f2f2f2
;
}
.cell
:after
{
position
:
absolute
;
display
:
block
;
content
:
""
;
height
:
1px
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background
:
#f2f2f2
;
}
}
.device_footer
{
height
:
30px
;
line-height
:
30px
;
border-top
:
1px
solid
#f2f2f2
;
padding
:
0
10px
;
display
:
flex
;
align-items
:
center
;
span
{
position
:
relative
;
font-size
:
12px
;
color
:
#333
;
margin
:
0
10px
0
0
;
}
.i_circle
{
margin
:
0
4px
0
0
;
}
}
}
}
}
.i_circle
{
display
:
inline-block
;
width
:
8px
;
height
:
8px
;
border-radius
:
100%
;
background
:
#09bf99
;
}
.i_red
{
background
:
#f00
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment