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
8210b60b
Commit
8210b60b
authored
Mar 21, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息 轨迹问题修改 gengdidi
parent
413e4894
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
map.js
gassafetyprogress-web/src/utils/mapClass/map.js
+2
-3
index.vue
...ress-web/src/views/operationMonitor/gassVehicle/index.vue
+15
-5
No files found.
gassafetyprogress-web/src/utils/mapClass/map.js
View file @
8210b60b
...
...
@@ -700,9 +700,8 @@ export class EditorMap {
strokeWeight
:
6
,
//线宽
});
marker
.
on
(
"moving"
,
(
e
)
=>
{
marker
.
passedPolyline
.
setPath
(
e
.
passedPath
);
this
.
map
.
setCenter
(
e
.
target
.
getPosition
(),
true
);
console
.
log
(
marker
.
passedPolyline
)
marker
.
passedPolyline
.
setPath
(
e
.
passedPath
);
// this.map.setCenter(e.target.getPosition(), true);
});
marker
.
moveAlong
(
path
,
{
...
...
gassafetyprogress-web/src/views/operationMonitor/gassVehicle/index.vue
View file @
8210b60b
...
...
@@ -310,10 +310,11 @@ export default {
let
param
=
{};
param
.
vehicleId
=
row
.
vehicleId
;
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
getLastLocation
(
param
).
then
(
res
=>
{
return
getLastLocation
(
param
).
then
(
res
=>
{
if
(
res
){
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
res
.
data
.
iconType
=
9
;
res
.
data
.
count
=
1
;
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
this
.
map
.
addDevice
(
res
.
data
,
MapCar
);
this
.
map
.
map
.
panTo
([
res
.
data
.
longitude
,
res
.
data
.
latitude
]);
...
...
@@ -385,8 +386,8 @@ export default {
this
.
queryParams
.
carNum
=
null
;
this
.
getList
();
},
searchLocations
(){
this
.
$refs
.
backForm
.
validate
((
valid
)
=>
{
searchLocations
(){
this
.
$refs
.
backForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
moment
(
this
.
backForm
.
beginTime
).
valueOf
()
>
...
...
@@ -406,8 +407,13 @@ export default {
"YYYY-MM-DD HH:mm:ss"
);
}
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
if
(
this
.
map
.
allDevice
[
9
][
0
].
getExtData
().
count
>
1
){
this
.
map
.
clearbackTrack
();
await
this
.
getVehicleTravel
({
vehicleId
:
this
.
backForm
.
vehicleId
});
}
else
{
this
.
map
.
allDevice
[
9
][
0
].
getExtData
().
count
++
}
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
let
paths
=
[];
if
(
res
.
data
.
length
==
1
){
this
.
$message
({
...
...
@@ -430,8 +436,12 @@ export default {
})
}
});
},
sleep
(
time
)
{
return
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
time
));
}
}
};
...
...
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