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
077e4763
Commit
077e4763
authored
Mar 21, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
301f7cd9
4a12e448
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 @
077e4763
...
@@ -702,9 +702,8 @@ export class EditorMap {
...
@@ -702,9 +702,8 @@ export class EditorMap {
strokeWeight
:
6
,
//线宽
strokeWeight
:
6
,
//线宽
});
});
marker
.
on
(
"moving"
,
(
e
)
=>
{
marker
.
on
(
"moving"
,
(
e
)
=>
{
marker
.
passedPolyline
.
setPath
(
e
.
passedPath
);
marker
.
passedPolyline
.
setPath
(
e
.
passedPath
);
this
.
map
.
setCenter
(
e
.
target
.
getPosition
(),
true
);
// this.map.setCenter(e.target.getPosition(), true);
console
.
log
(
marker
.
passedPolyline
)
});
});
marker
.
moveAlong
(
path
,
{
marker
.
moveAlong
(
path
,
{
...
...
gassafetyprogress-web/src/views/operationMonitor/gassVehicle/index.vue
View file @
077e4763
...
@@ -310,10 +310,11 @@ export default {
...
@@ -310,10 +310,11 @@ export default {
let
param
=
{};
let
param
=
{};
param
.
vehicleId
=
row
.
vehicleId
;
param
.
vehicleId
=
row
.
vehicleId
;
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
getLastLocation
(
param
).
then
(
res
=>
{
return
getLastLocation
(
param
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
res
.
data
.
iconType
=
9
;
res
.
data
.
iconType
=
9
;
res
.
data
.
count
=
1
;
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
this
.
map
.
addDevice
(
res
.
data
,
MapCar
);
this
.
map
.
addDevice
(
res
.
data
,
MapCar
);
this
.
map
.
map
.
panTo
([
res
.
data
.
longitude
,
res
.
data
.
latitude
]);
this
.
map
.
map
.
panTo
([
res
.
data
.
longitude
,
res
.
data
.
latitude
]);
...
@@ -385,8 +386,8 @@ export default {
...
@@ -385,8 +386,8 @@ export default {
this
.
queryParams
.
carNum
=
null
;
this
.
queryParams
.
carNum
=
null
;
this
.
getList
();
this
.
getList
();
},
},
searchLocations
(){
searchLocations
(){
this
.
$refs
.
backForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
backForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
if
(
moment
(
this
.
backForm
.
beginTime
).
valueOf
()
>
moment
(
this
.
backForm
.
beginTime
).
valueOf
()
>
...
@@ -406,8 +407,13 @@ export default {
...
@@ -406,8 +407,13 @@ export default {
"YYYY-MM-DD HH:mm:ss"
"YYYY-MM-DD HH:mm:ss"
);
);
}
}
if
(
this
.
map
.
allDevice
[
9
][
0
].
getExtData
().
count
>
1
){
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
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
=
[];
let
paths
=
[];
if
(
res
.
data
.
length
==
1
){
if
(
res
.
data
.
length
==
1
){
this
.
$message
({
this
.
$message
({
...
@@ -430,8 +436,12 @@ export default {
...
@@ -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