Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
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
冯超鹏
laravelzh
Commits
2c3101ac
Commit
2c3101ac
authored
Dec 22, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备列表定位
parent
b42f6530
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
index.vue
resources/js/views/map/index.vue
+8
-2
No files found.
resources/js/views/map/index.vue
View file @
2c3101ac
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<!-- 用户的设备列表 -->
<!-- 用户的设备列表 -->
<div
v-if=
"deviceListVisible"
class=
"zero-user-devices"
>
<div
v-if=
"deviceListVisible"
class=
"zero-user-devices"
>
<el-collapse
v-if=
"checkPermission(['manage isadmin'])"
v-model=
"activeNames"
>
<el-collapse
v-if=
"checkPermission(['manage isadmin'])"
v-model=
"activeNames"
>
<el-collapse-item
name=
"1"
>
<el-collapse-item
v-show=
"leftDeviceListVisible"
name=
"1"
>
<template
slot=
"title"
>
<template
slot=
"title"
>
设备列表 -
{{
leftDeviceName
}}
设备列表 -
{{
leftDeviceName
}}
</
template
>
</
template
>
...
@@ -209,6 +209,7 @@ export default {
...
@@ -209,6 +209,7 @@ export default {
data
(){
data
(){
const
_this
=
this
;
const
_this
=
this
;
return
{
return
{
leftDeviceListVisible
:
true
,
markersGoodsVisible
:
false
,
markersGoodsVisible
:
false
,
markersGoods
:
[{
markersGoods
:
[{
id
:
1
,
id
:
1
,
...
@@ -280,9 +281,10 @@ export default {
...
@@ -280,9 +281,10 @@ export default {
console
.
log
(
this
.
$route
.
query
);
console
.
log
(
this
.
$route
.
query
);
if
(
this
.
$route
.
query
.
device_id
>
0
)
{
if
(
this
.
$route
.
query
.
device_id
>
0
)
{
this
.
markersDeviceVisible
=
true
;
this
.
markersDeviceVisible
=
true
;
this
.
leftDeviceListVisible
=
false
;
this
.
zoom
=
15
;
this
.
zoom
=
15
;
console
.
log
(
this
.
$route
.
query
.
device_id
);
console
.
log
(
this
.
$route
.
query
.
device_id
);
this
.
markerClickEvent
({
id
:
this
.
$route
.
query
.
device_id
}
);
this
.
getUserDeviceInfo
(
this
.
$route
.
query
.
device_id
);
}
}
},
},
created
()
{
created
()
{
...
@@ -314,6 +316,7 @@ export default {
...
@@ -314,6 +316,7 @@ export default {
this
.
zoom
=
6
;
this
.
zoom
=
6
;
this
.
markersDeviceVisible
=
true
;
this
.
markersDeviceVisible
=
true
;
this
.
markerVisible
=
false
;
this
.
markerVisible
=
false
;
this
.
leftDeviceListVisible
=
true
;
});
});
},
},
getUserDevices
(
center
)
{
getUserDevices
(
center
)
{
...
@@ -322,6 +325,7 @@ export default {
...
@@ -322,6 +325,7 @@ export default {
this
.
center
=
center
;
this
.
center
=
center
;
this
.
markerVisible
=
true
;
this
.
markerVisible
=
true
;
this
.
markersDeviceVisible
=
true
;
this
.
markersDeviceVisible
=
true
;
this
.
leftDeviceListVisible
=
true
;
},
},
rebuildEvent
(
marker
)
{
rebuildEvent
(
marker
)
{
var
mapcenter
=
marker
.
mapcenter
.
replace
(
/
\s
*/g
,
''
);
var
mapcenter
=
marker
.
mapcenter
.
replace
(
/
\s
*/g
,
''
);
...
@@ -360,6 +364,7 @@ export default {
...
@@ -360,6 +364,7 @@ export default {
},
},
// 获取单个用户下的设备
// 获取单个用户下的设备
getUserDeviceList
(
uid
)
{
getUserDeviceList
(
uid
)
{
this
.
leftDeviceListVisible
=
true
;
// 停止定时器
// 停止定时器
this
.
clearIntv
();
this
.
clearIntv
();
devices
({
uid
:
uid
})
devices
({
uid
:
uid
})
...
@@ -379,6 +384,7 @@ export default {
...
@@ -379,6 +384,7 @@ export default {
this
.
markerVisible
=
false
;
this
.
markerVisible
=
false
;
});
});
// this.dataRefresh();
// this.dataRefresh();
this
.
leftDeviceListVisible
=
false
;
},
},
// 获取设备详细信息
// 获取设备详细信息
getUserDeviceInfo
(
id
)
{
getUserDeviceInfo
(
id
)
{
...
...
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