Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caicaicai
卡车调度系统
Commits
2b642e1e
Commit
2b642e1e
authored
Oct 26, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7857bff5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
13 deletions
+27
-13
Map2.vue
src/components/mars3d/Map2.vue
+2
-2
index.vue
src/views/carManagement/carTrajectory/index.vue
+25
-11
No files found.
src/components/mars3d/Map2.vue
View file @
2b642e1e
...
...
@@ -172,7 +172,7 @@ export default {
"
vrButton
"
:
false
,
"
fullscreenButton
"
:
true
,
"
navigationHelpButton
"
:
true
,
"
animation
"
:
tru
e
,
"
animation
"
:
fals
e
,
"
timeline
"
:
false
,
"
infoBox
"
:
false
,
"
geocoder
"
:
false
,
...
...
@@ -561,7 +561,7 @@ export default {
//改变时间
changeTime
(
time
){
let
julian_time
=
Cesium
.
JulianDate
.
fromDate
(
new
Date
(
time
));
console
.
log
(
julian_time
)
;
map
.
clock
.
currentTime
=
julian_time
;
},
//清除定时器
closeInterval
(){
...
...
src/views/carManagement/carTrajectory/index.vue
View file @
2b642e1e
...
...
@@ -280,7 +280,11 @@ export default {
},
//改变倍速
changeSpeed
(
num
){
this
.
$refs
.
mars3dViewerMapMethod
.
changeSpeed
(
num
);
if
(
this
.
query
.
number
==
''
||
!
this
.
query
.
bTime
||
!
this
.
query
.
eTime
){
return
;
}
else
{
this
.
$refs
.
mars3dViewerMapMethod
.
changeSpeed
(
num
);
}
},
//开测量距离
measureDistance
(){
...
...
@@ -295,7 +299,7 @@ export default {
let
that
=
this
;
this
.
leadTime
=
boo
;
this
.
pauseResumeBoolean
=
true
;
if
(
this
.
query
.
number
==
''
||
this
.
query
.
bTime
==
''
||
this
.
query
.
eTime
==
''
){
if
(
this
.
query
.
number
==
''
||
!
this
.
query
.
bTime
||
!
this
.
query
.
eTime
){
return
;
}
else
{
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
this
.
query
.
number
}).
then
((
res
)
=>
{
...
...
@@ -317,24 +321,34 @@ export default {
},
//暂停继续
pauseResume
(){
if
(
this
.
pauseResumeBoolean
){
this
.
$refs
.
mars3dViewerMapMethod
.
pauseResume
(
false
);
this
.
pauseResumeBoolean
=
false
;
if
(
this
.
query
.
number
==
''
||
!
this
.
query
.
bTime
||
!
this
.
query
.
eTime
){
return
;
}
else
{
this
.
$refs
.
mars3dViewerMapMethod
.
pauseResume
(
true
);
this
.
pauseResumeBoolean
=
true
;
if
(
this
.
pauseResumeBoolean
){
this
.
$refs
.
mars3dViewerMapMethod
.
pauseResume
(
false
);
this
.
pauseResumeBoolean
=
false
;
}
else
{
this
.
$refs
.
mars3dViewerMapMethod
.
pauseResume
(
true
);
this
.
pauseResumeBoolean
=
true
;
}
}
},
//接收当前进度时间
progressTimeFn
(
time
){
//console.log(time);
this
.
trajectoryTimePointPlaceholder
=
time
;
},
//轨迹时间点跳转
trajectoryTimePointFn
(){
console
.
log
(
this
.
trajectoryTimePoint
);
//this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint);
if
(
this
.
query
.
number
==
''
||
!
this
.
query
.
bTime
||
!
this
.
query
.
eTime
){
return
;
}
else
{
if
(
!
this
.
trajectoryTimePoint
){
return
}
else
{
this
.
$refs
.
mars3dViewerMapMethod
.
changeTime
(
this
.
trajectoryTimePoint
);
this
.
trajectoryTimePoint
=
''
;
}
}
},
// 地图构造完成回调
onMapload
(
map
)
{
...
...
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