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
f638ea8b
Commit
f638ea8b
authored
Mar 21, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轨迹时间展示 gengdidi
parent
00274a32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.vue
...ress-web/src/views/operationMonitor/gassVehicle/index.vue
+6
-4
No files found.
gassafetyprogress-web/src/views/operationMonitor/gassVehicle/index.vue
View file @
f638ea8b
...
...
@@ -424,6 +424,7 @@ export default {
}
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
let
paths
=
[];
let
times
=
[];
if
(
res
.
data
.
length
==
1
){
this
.
$message
({
message
:
'抱歉当前车辆只能查看位置信息,无法形成轨迹!'
,
...
...
@@ -436,10 +437,11 @@ export default {
});
}
else
{
res
.
data
.
forEach
(
item
=>
{
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
})
this
.
map
.
backTrack
(
this
.
backForm
.
vehicleId
,
paths
);
this
.
backOpen
=
false
;
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
times
.
push
(
item
.
reportTime
)
})
this
.
map
.
backTrack
(
this
.
backForm
.
vehicleId
,
paths
,
times
);
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