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
0daa3731
Commit
0daa3731
authored
Nov 17, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6a6c31e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
Map2.vue
src/components/mars3d/Map2.vue
+20
-5
No files found.
src/components/mars3d/Map2.vue
View file @
0daa3731
...
...
@@ -142,8 +142,23 @@ export default {
//获取停车时间段以及坐标点
if
(
that
.
leadTime
){
HttpReq
.
truckDispatching
.
apimineAlarmHistoryTjQuery
({
number
:
that
.
carNumber
,
bTime
:
bTime
,
eTime
:
eTime
}).
then
((
resTj
)
=>
{
console
.
log
(
resTj
);
that
.
stopCarCoordinates
=
[];
let
arr1
=
[];
resTj
.
data
.
forEach
((
itemTj1
,
indexTj1
)
=>
{
let
arr2
=
{};
let
arr2_5
=
[];
itemTj1
.
line
.
forEach
((
itemTj2
,
indexTj2
)
=>
{
let
arr3
=
[];
arr3
.
push
(
itemTj2
.
x
);
arr3
.
push
(
itemTj2
.
y
);
arr3
.
push
(
1000
);
arr2_5
.
push
(
arr3
);
})
arr2
.
time1
=
itemTj1
.
time1
;
arr2
.
time2
=
itemTj1
.
time2
;
arr2
.
line
=
arr2_5
;
arr1
.
push
(
arr2
);
})
that
.
stopCarCoordinates
=
arr1
;
this
.
$nextTick
(()
=>
{
if
(
this
.
appendToBody
)
{
...
...
@@ -287,7 +302,7 @@ export default {
})
//展示轨迹
that
.
stopCarCoordinates
,
forEach
((
item
,
index
)
=>
{
that
.
stopCarCoordinates
.
forEach
((
item
,
index
)
=>
{
var
graphicLayer3
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayer3
);
initGraphicManager
(
graphicLayer3
);
...
...
@@ -391,7 +406,7 @@ export default {
//展示轨迹
addDemoGraphic2
(
graphicLayer
,
item
)
{
const
graphic
=
new
mars3d
.
graphic
.
PolylineEntity
({
positions
:
item
.
line
s
,
positions
:
item
.
line
,
style
:
{
width
:
6
,
materialType
:
mars3d
.
MaterialType
.
PolylineOutline
,
...
...
@@ -399,7 +414,7 @@ export default {
outlineWidth
:
2
,
outlineColor
:
Cesium
.
Color
.
BLACK
,
label
:
{
text
:
'
开始时间
'
,
text
:
''
,
font_size
:
18
,
color
:
"
black
"
,
distanceDisplayCondition
:
true
,
...
...
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