Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
oms-tiger-shield
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 edcfe6ce
authored
Jul 19, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
紧急需求
1 parent
ff56f44e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/views/report/location.vue
vue.config.js
src/views/report/location.vue
View file @
edcfe6c
...
@@ -76,13 +76,14 @@ export default {
...
@@ -76,13 +76,14 @@ export default {
// 获取位置信息
// 获取位置信息
getLocation
(
sn
)
{
getLocation
(
sn
)
{
GET_DEVICE_LOCATION
({
sns
:
sn
}).
then
((
res
)
=>
{
GET_DEVICE_LOCATION
({
sns
:
sn
}).
then
((
res
)
=>
{
let
obj
=
res
.
data
||
{};
let
obj
=
res
.
data
?
res
.
data
[
0
]
:
{};
if
(
res
.
code
!=
20
0
)
{
if
(
res
.
returnCode
!=
0
)
{
return
false
;
return
false
;
}
}
let
options
=
{
...
obj
};
let
options
=
{
...
obj
};
options
.
elat
=
obj
.
lat
;
options
.
elat
=
obj
.
lat
;
options
.
elng
=
obj
.
lng
;
options
.
elng
=
obj
.
lng
;
console
.
log
(
options
)
this
.
addLocation
(
options
);
this
.
addLocation
(
options
);
});
});
},
},
...
...
vue.config.js
View file @
edcfe6c
...
@@ -41,7 +41,7 @@ module.exports = {
...
@@ -41,7 +41,7 @@ module.exports = {
},
},
proxy
:
{
proxy
:
{
'/ots'
:
{
'/ots'
:
{
target
:
'http://e-shield.glsx.com.cn/ots/'
,
target
:
'http://e-shield.
dev.
glsx.com.cn/ots/'
,
// target: 'http://192.168.3.181:8671/ots/',
// target: 'http://192.168.3.181:8671/ots/',
changeOrigin
:
true
,
changeOrigin
:
true
,
ws
:
true
,
ws
:
true
,
...
...
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