Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
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
SQL_Mou
NewTruckTerminalSyetem
Commits
c6382307
Commit
c6382307
authored
May 19, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9fcf00bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
Map.vue
src/components/mars3d/Map.vue
+7
-5
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+2
-2
index.vue
src/views/MLargeScreen/index.vue
+2
-2
No files found.
src/components/mars3d/Map.vue
View file @
c6382307
...
...
@@ -222,28 +222,29 @@ export default {
distanceDisplayCondition_near
:
0
}
},
allowDrillPick
:
true
,
})
//载入图层
graphicLayer4
.
addGraphic
(
graphic
)
//初始位置
graphicLayer4
.
eachGraphic
((
graphic
)
=>
{
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
5
00
))
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
10
00
))
})
//五秒后位置
graphicLayer4
.
eachGraphic
((
graphic
)
=>
{
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
5
00
),
5
)
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
10
00
),
5
)
})
//定时更新动态位置
setInterval
(()
=>
{
httpGet
(
carRealTimeLocationQuery2
,{
name
:
equipmentName
}).
then
((
res
)
=>
{
if
(
res
.
data
){
graphicLayer4
.
eachGraphic
((
graphic
)
=>
{
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
res
.
data
.
lon
,
res
.
data
.
lat
,
5
00
),
5
)
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
res
.
data
.
lon
,
res
.
data
.
lat
,
10
00
),
5
)
})
}
else
{
graphicLayer4
.
eachGraphic
((
graphic
)
=>
{
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
5
00
),
5
)
graphic
.
addDynamicPosition
(
Cesium
.
Cartesian3
.
fromDegrees
(
that
.
defaultjd
,
that
.
defaultwd
,
10
00
),
5
)
})
}
});
...
...
@@ -252,8 +253,9 @@ export default {
},
// 在图层绑定Popup弹窗
bindLayerPopup
(
graphicLayer
)
{
let
that
=
this
;
graphicLayer
.
bindPopup
(
function
(
event
)
{
console
.
log
(
'
fdfdf
'
)
that
.
$parent
.
smallWinFn
(
that
.
carNumber
);
})
}
...
...
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
c6382307
...
...
@@ -45,10 +45,10 @@ export default {
},
mounted
()
{
},
methods
:
{
loadData
(
carnumber
,
personalName
)
{
loadData
(
carnumber
)
{
this
.
showDecide
=
true
;
this
.
carnumber
=
carnumber
;
this
.
personalName
=
personalName
;
this
.
personalName
=
'
personalName
'
;
httpGet
(
vehicleRealTimeQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
totalElements
==
0
){
...
...
src/views/MLargeScreen/index.vue
View file @
c6382307
...
...
@@ -340,7 +340,7 @@ export default {
},
//车辆详情小窗口
smallWinFn
(){
smallWinFn
(
carNumber
){
if
(
this
.
selectFunction
!=
7
){
this
.
selectFunction
=
7
;
this
.
$refs
.
voiceApplicationMethod
.
voiceAppCloseFn
();
...
...
@@ -348,7 +348,7 @@ export default {
this
.
$refs
.
performanceStatisticsMethod
.
achievementCloseFn
();
this
.
$refs
.
carInformationMethod
.
carInCloseFn
();
this
.
$refs
.
personalCenterMethod
.
personalCenCloseFn
();
this
.
$refs
.
smallWindowMethod
.
loadData
(
this
.
carnumber
,
this
.
personalName
);
this
.
$refs
.
smallWindowMethod
.
loadData
(
carNumber
);
}
else
{
this
.
selectFunction
=
0
;
this
.
$refs
.
voiceApplicationMethod
.
voiceAppCloseFn
();
...
...
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