Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
bffc5c55
Commit
bffc5c55
authored
Mar 21, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息 gengdidi
parent
c493ac1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
map.js
gassafetyprogress-web/src/utils/mapClass/map.js
+1
-1
index.vue
...ress-web/src/views/operationMonitor/gassVehicle/index.vue
+20
-9
No files found.
gassafetyprogress-web/src/utils/mapClass/map.js
View file @
bffc5c55
...
...
@@ -707,7 +707,7 @@ export class EditorMap {
marker
.
moveAlong
(
path
,
{
// 每一段的时长
duration
:
800
,
//可根据实际采集时间间隔设置
duration
:
800
0
,
//可根据实际采集时间间隔设置
// JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置
autoRotation
:
true
,
});
...
...
gassafetyprogress-web/src/views/operationMonitor/gassVehicle/index.vue
View file @
bffc5c55
...
...
@@ -312,11 +312,17 @@ export default {
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
getLastLocation
(
param
).
then
(
res
=>
{
if
(
res
){
res
.
data
.
iconType
=
9
;
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
console
.
log
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
,
"fdsfdsa"
)
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
res
.
data
.
iconType
=
9
;
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
this
.
map
.
addDevice
(
res
.
data
,
MapCar
);
this
.
map
.
map
.
panTo
([
res
.
data
.
longitude
,
res
.
data
.
latitude
]);
}
else
{
this
.
$message
({
message
:
'抱歉未获取到当前车辆位置信息!'
,
type
:
'warning'
});
}
}
});
...
...
@@ -382,14 +388,19 @@ export default {
},
searchLocations
(){
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
console
.
log
(
res
,
"-------------ffffffffffffff"
)
let
paths
=
[];
res
.
data
.
forEach
(
item
=>
{
console
.
log
(
item
,
"-------------ffffffffffffff"
)
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
})
this
.
map
.
backTrack
(
this
.
backForm
.
vehicleId
,
paths
);
this
.
backOpen
=
false
;
if
(
res
.
data
.
length
==
1
){
this
.
$message
({
message
:
'抱歉当前车辆只能查看位置信息,无法形成轨迹!'
,
type
:
'warning'
});
}
else
{
res
.
data
.
forEach
(
item
=>
{
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
})
this
.
map
.
backTrack
(
this
.
backForm
.
vehicleId
,
paths
);
this
.
backOpen
=
false
;
}
})
}
...
...
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