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
8203df81
Commit
8203df81
authored
May 19, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c6382307
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
Map.vue
src/components/mars3d/Map.vue
+5
-5
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+1
-4
index.vue
src/views/MLargeScreen/index.vue
+0
-1
No files found.
src/components/mars3d/Map.vue
View file @
8203df81
...
...
@@ -163,7 +163,7 @@ export default {
that
.
allCarInforData
.
forEach
((
item
,
index
)
=>
{
var
graphicLayer4
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayer4
);
that
.
bindLayerPopup
(
graphicLayer4
)
that
.
bindLayerPopup
(
graphicLayer4
,
item
.
number
)
that
.
addDemoGraphics
(
graphicLayer4
,
item
.
number
,
item
.
equipmentName
,
item
.
carclass
);
})
...
...
@@ -189,6 +189,7 @@ export default {
distanceDisplayCondition_near
:
0
,
},
},
allowDrillPick
:
true
,
});
graphicLayer
.
addGraphic
(
graphic
);
//还可以另外一种写法: graphic.addTo(graphicLayer)
},
...
...
@@ -221,8 +222,7 @@ export default {
distanceDisplayCondition_far
:
50000
,
distanceDisplayCondition_near
:
0
}
},
allowDrillPick
:
true
,
}
})
//载入图层
...
...
@@ -252,10 +252,10 @@ export default {
},
// 在图层绑定Popup弹窗
bindLayerPopup
(
graphicLayer
)
{
bindLayerPopup
(
graphicLayer
,
number
)
{
let
that
=
this
;
graphicLayer
.
bindPopup
(
function
(
event
)
{
that
.
$parent
.
smallWinFn
(
that
.
carN
umber
);
that
.
$parent
.
smallWinFn
(
n
umber
);
})
}
...
...
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
8203df81
...
...
@@ -8,9 +8,6 @@
<div>
<span>
车牌号:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carnumber
}}
</span>
</div>
<div>
<span>
司机:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
personalName
}}
</span>
</div>
<div>
<span>
车辆运行公里数:
</span><span
style=
"color: rgb(24,228,240);"
>
{{
carInformationData2
.
effic
}}
</span>
</div>
...
...
@@ -48,7 +45,7 @@ export default {
loadData
(
carnumber
)
{
this
.
showDecide
=
true
;
this
.
carnumber
=
carnumber
;
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 @
8203df81
...
...
@@ -263,7 +263,6 @@ export default {
this
.
$refs
.
carInformationMethod
.
carInCloseFn
();
this
.
$refs
.
personalCenterMethod
.
personalCenCloseFn
();
this
.
$refs
.
smallWindowMethod
.
carInCloseFn
();
let
byValue
=
this
.
carName
;
this
.
$refs
.
failureDeclarationMethod
.
loadData
(
this
.
carnumber
,
this
.
personalName
);
}
else
{
this
.
selectFunction
=
0
;
...
...
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