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
413e4894
Commit
413e4894
authored
Mar 21, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息问题修改 gengdidi
parent
bffc5c55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
14 deletions
+43
-14
index.vue
...ress-web/src/views/operationMonitor/gassVehicle/index.vue
+43
-14
No files found.
gassafetyprogress-web/src/views/operationMonitor/gassVehicle/index.vue
View file @
413e4894
...
@@ -312,7 +312,6 @@ export default {
...
@@ -312,7 +312,6 @@ export default {
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
this
.
backForm
.
vehicleId
=
row
.
vehicleId
;
getLastLocation
(
param
).
then
(
res
=>
{
getLastLocation
(
param
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
console
.
log
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
,
"fdsfdsa"
)
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
if
(
res
.
data
.
longitude
&&
res
.
data
.
latitude
){
res
.
data
.
iconType
=
9
;
res
.
data
.
iconType
=
9
;
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
this
.
map
.
clearbackTrack
(
param
.
vehicleId
)
...
@@ -387,6 +386,27 @@ export default {
...
@@ -387,6 +386,27 @@ export default {
this
.
getList
();
this
.
getList
();
},
},
searchLocations
(){
searchLocations
(){
this
.
$refs
.
backForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
moment
(
this
.
backForm
.
beginTime
).
valueOf
()
>
moment
(
this
.
backForm
.
endTime
).
valueOf
()
)
{
this
.
msgError
(
"开始时间不能大于结束时间"
);
this
.
backForm
.
endTime
=
""
;
return
;
}
if
(
this
.
backForm
.
changeTime
!=
3
)
{
this
.
radioChange
(
this
.
backForm
.
changeTime
);
}
else
{
this
.
backForm
.
beginTime
=
moment
(
this
.
backForm
.
beginTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
this
.
backForm
.
endTime
=
moment
(
this
.
backForm
.
endTime
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
}
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
getVehicleLocations
(
this
.
backForm
).
then
(
res
=>
{
let
paths
=
[];
let
paths
=
[];
if
(
res
.
data
.
length
==
1
){
if
(
res
.
data
.
length
==
1
){
...
@@ -394,6 +414,11 @@ export default {
...
@@ -394,6 +414,11 @@ export default {
message
:
'抱歉当前车辆只能查看位置信息,无法形成轨迹!'
,
message
:
'抱歉当前车辆只能查看位置信息,无法形成轨迹!'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
if
(
res
.
data
.
length
==
0
){
this
.
$message
({
message
:
'抱歉该时段未查到当前车辆轨迹信息!'
,
type
:
'warning'
});
}
else
{
}
else
{
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
paths
.
push
([
item
.
longitude
,
item
.
latitude
]);
...
@@ -403,6 +428,10 @@ export default {
...
@@ -403,6 +428,10 @@ export default {
}
}
})
})
}
});
}
}
}
}
};
};
...
...
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