Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e60f24f4
authored
Apr 22, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
轨迹回放-暂无轨迹
1 parent
8a11cf06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
src/views/replay.vue
src/views/replay.vue
View file @
e60f24f
...
@@ -146,7 +146,8 @@ export default defineComponent({
...
@@ -146,7 +146,8 @@ export default defineComponent({
pathSimplifierIns
:
null
,
//轨迹实例
pathSimplifierIns
:
null
,
//轨迹实例
navg
:
null
,
//轨迹巡航器
navg
:
null
,
//轨迹巡航器
dis
:
[],
// 轨迹距离
dis
:
[],
// 轨迹距离
speed
:
'正常'
speed
:
'正常'
,
noPath
:
false
});
});
const
isPlay
=
ref
(
false
);
const
isPlay
=
ref
(
false
);
const
speedItemText
=
[
"慢"
,
"正常"
,
"快"
,
"很快"
];
const
speedItemText
=
[
"慢"
,
"正常"
,
"快"
,
"很快"
];
...
@@ -175,6 +176,7 @@ export default defineComponent({
...
@@ -175,6 +176,7 @@ export default defineComponent({
});
});
}
}
isPlay
.
value
=
false
;
isPlay
.
value
=
false
;
replay
.
noPath
=
false
;
window
.
mapapi
.
invoke
(
"clearOverlays"
);
window
.
mapapi
.
invoke
(
"clearOverlays"
);
getCarReplayData
();
getCarReplayData
();
};
};
...
@@ -190,6 +192,7 @@ export default defineComponent({
...
@@ -190,6 +192,7 @@ export default defineComponent({
path
:
[],
path
:
[],
});
});
}
}
replay
.
noPath
=
false
;
isPlay
.
value
=
false
;
isPlay
.
value
=
false
;
currentMap
&&
window
.
mapapi
.
invoke
(
"clearOverlays"
);
currentMap
&&
window
.
mapapi
.
invoke
(
"clearOverlays"
);
GET_REPLAY_DATA
({
...
eParams
.
value
}).
then
((
res
)
=>
{
GET_REPLAY_DATA
({
...
eParams
.
value
}).
then
((
res
)
=>
{
...
@@ -337,6 +340,7 @@ export default defineComponent({
...
@@ -337,6 +340,7 @@ export default defineComponent({
};
};
const
initPath
=
(
data
,
currentMap
)
=>
{
const
initPath
=
(
data
,
currentMap
)
=>
{
var
replayData
=
[];
var
replayData
=
[];
replay
.
noPath
=
false
;
// data.forEach(function (item) {
// data.forEach(function (item) {
// let lnglat = mapContentRefs.value.getLngLat(item[0], item[1]);
// let lnglat = mapContentRefs.value.getLngLat(item[0], item[1]);
// replayData.push(lnglat);
// replayData.push(lnglat);
...
@@ -405,6 +409,7 @@ export default defineComponent({
...
@@ -405,6 +409,7 @@ export default defineComponent({
isPlay
.
value
=
false
;
isPlay
.
value
=
false
;
})
})
}
else
{
}
else
{
replay
.
noPath
=
true
;
//距离为0时,单独处理
//距离为0时,单独处理
const
item
=
data
[
data
.
length
-
1
];
const
item
=
data
[
data
.
length
-
1
];
window
.
mapapi
.
invoke
(
'clearOverlays'
);
window
.
mapapi
.
invoke
(
'clearOverlays'
);
...
@@ -492,6 +497,9 @@ export default defineComponent({
...
@@ -492,6 +497,9 @@ export default defineComponent({
if
(
!
replayList
.
value
.
length
)
{
if
(
!
replayList
.
value
.
length
)
{
return
Toast
(
"暂无轨迹数据"
);
return
Toast
(
"暂无轨迹数据"
);
}
}
if
(
replay
.
noPath
)
{
return
Toast
(
"暂无轨迹"
);
}
if
(
replay
.
navg
)
{
if
(
replay
.
navg
)
{
if
(
idx
.
value
===
replayList
.
value
.
length
-
1
)
{
if
(
idx
.
value
===
replayList
.
value
.
length
-
1
)
{
window
.
mapapi
.
invoke
(
"lushuStop"
);
window
.
mapapi
.
invoke
(
"lushuStop"
);
...
@@ -515,6 +523,9 @@ export default defineComponent({
...
@@ -515,6 +523,9 @@ export default defineComponent({
if
(
!
replayList
.
value
.
length
)
{
if
(
!
replayList
.
value
.
length
)
{
return
Toast
(
"暂无轨迹数据"
);
return
Toast
(
"暂无轨迹数据"
);
}
}
if
(
replay
.
noPath
)
{
return
Toast
(
"暂无轨迹"
);
}
if
(
replay
.
navg
)
{
if
(
replay
.
navg
)
{
// replay.navg.start();
// replay.navg.start();
window
.
mapapi
.
invoke
(
"lushuStart"
)
window
.
mapapi
.
invoke
(
"lushuStart"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment