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
2782e9a4
Commit
2782e9a4
authored
Nov 09, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5b9b2c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
11 deletions
+60
-11
index.vue
src/views/carManagement/carTrajectory/index.vue
+60
-11
No files found.
src/views/carManagement/carTrajectory/index.vue
View file @
2782e9a4
...
@@ -103,6 +103,8 @@ export default {
...
@@ -103,6 +103,8 @@ export default {
playtimeTableData
:[],
playtimeTableData
:[],
//暂停继续按钮判断
//暂停继续按钮判断
pauseResumeBoolean
:
true
,
pauseResumeBoolean
:
true
,
//右侧播放时间列表第一条数据时间
playtimeTableFirstTimeData
:
''
,
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -213,6 +215,8 @@ export default {
...
@@ -213,6 +215,8 @@ export default {
lastData1
.
push
(
obj1
);
lastData1
.
push
(
obj1
);
})
})
this
.
playtimeTableData
=
lastData1
;
this
.
playtimeTableData
=
lastData1
;
let
time1
=
lastData1
[
0
].
bTime
.
split
(
'
'
)[
0
];
this
.
playtimeTableFirstTimeData
=
time1
;
}
}
})
})
}
else
{
}
else
{
...
@@ -338,17 +342,29 @@ export default {
...
@@ -338,17 +342,29 @@ export default {
},
},
//轨迹时间点跳转
//轨迹时间点跳转
trajectoryTimePointFn
(){
trajectoryTimePointFn
(){
console
.
log
(
this
.
trajectoryTimePoint
);
let
time2
=
this
.
currentTime
(
this
.
trajectoryTimePoint
);
// if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
let
time3
=
''
;
// return;
if
(
this
.
playtimeTableFirstTimeData
){
// }else{
time3
=
this
.
playtimeTableFirstTimeData
+
'
'
+
time2
;
// if(!this.trajectoryTimePoint){
}
else
{
// return
this
.
$notify
({
// }else{
title
:
'
请等待右侧列表加载完毕然后选择轨迹时间点!
'
,
// this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint);
type
:
'
warning
'
,
// this.trajectoryTimePoint = '';
duration
:
2500
// }
});
// }
this
.
trajectoryTimePoint
=
''
;
return
}
if
(
this
.
query
.
number
==
''
||
!
this
.
query
.
bTime
||
!
this
.
query
.
eTime
){
return
;
}
else
{
if
(
!
this
.
trajectoryTimePoint
){
return
}
else
{
this
.
$refs
.
mars3dViewerMapMethod
.
changeTime
(
time3
);
this
.
trajectoryTimePoint
=
''
;
}
}
},
},
// 地图构造完成回调
// 地图构造完成回调
onMapload
(
map
)
{
onMapload
(
map
)
{
...
@@ -386,6 +402,39 @@ export default {
...
@@ -386,6 +402,39 @@ export default {
}
}
])
])
},
},
//转换时间格式
currentTime
(
time
){
var
date
=
new
Date
(
time
);
var
year
=
date
.
getFullYear
();
//年 ,从 Date 对象以四位数字返回年份
var
month
=
date
.
getMonth
()
+
1
;
//月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"
0
"
+
month
;
}
//修改日期格式
if
(
day
>=
0
&&
day
<=
9
)
{
day
=
"
0
"
+
day
;
}
//修改小时格式
if
(
hours
>=
0
&&
hours
<=
9
)
{
hours
=
"
0
"
+
hours
;
}
//修改分钟格式
if
(
minutes
>=
0
&&
minutes
<=
9
)
{
minutes
=
"
0
"
+
minutes
;
}
//修改秒格式
if
(
seconds
>=
0
&&
seconds
<=
9
)
{
seconds
=
"
0
"
+
seconds
;
}
//获取当前系统时间 格式(yyyy-mm-dd hh:mm:ss)
let
currentFormatDate
=
hours
+
"
:
"
+
minutes
+
"
:
"
+
seconds
;
return
currentFormatDate
;
}
}
}
}
}
</
script
>
</
script
>
...
...
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