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 bde85317
authored
Mar 28, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加查看位置点兼容代码
1 parent
462437ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
src/pages/monitor/activeLocation.vue
src/pages/monitor/activeLocation.vue
View file @
bde8531
...
...
@@ -83,14 +83,23 @@ export default {
window
.
AMap
=
AMap
;
this
.
mapObj
=
mapService
.
init
(
"map"
);
this
.
isInitMap
=
true
;
let
o
=
history
.
state
;
let
query
=
this
.
$route
.
query
;
let
o
=
history
.
state
;
// 假性离线报警查看位置点
if
(
query
.
sns
)
{
this
.
getLocation
(
query
.
sns
);
return
false
;
}
// 兼容其他页面的跳转
if
(
query
&&
query
.
sn
){
query
.
elat
=
query
.
lat
query
.
elng
=
query
.
lng
this
.
addLocation
(
query
,
true
);
return
false
;
}
console
.
log
(
o
);
if
(
o
.
lng
||
o
.
bsLng
)
{
o
.
elat
=
o
.
lat
;
...
...
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