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
8c9cb598
Commit
8c9cb598
authored
May 26, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ac089eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
37 deletions
+38
-37
index.vue
src/views/MLargeScreen/index.vue
+38
-37
No files found.
src/views/MLargeScreen/index.vue
View file @
8c9cb598
...
@@ -39,9 +39,10 @@
...
@@ -39,9 +39,10 @@
<span
class=
"el-icon-location"
></span>
<span
class=
"el-icon-location"
></span>
</div>
-->
</div>
-->
<!-- 地图区域 -->
<!-- 地图区域 -->
<div
id=
"centerDiv"
class=
"mapcontainer1"
>
<
!--
<
div
id=
"centerDiv"
class=
"mapcontainer1"
>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
</div>
</div>
-->
<iframe
src=
"http://8.143.203.103:9092/#/Index"
frameborder=
"0"
class=
"mapcontainer1"
></iframe>
</div>
</div>
</
template
>
</
template
>
...
@@ -52,7 +53,7 @@ import carManagement from './components/carManagement/index.vue' //车辆管理
...
@@ -52,7 +53,7 @@ import carManagement from './components/carManagement/index.vue' //车辆管理
import
intelligentSchedul
from
'
./components/intelligentSchedul/index.vue
'
//智能调度
import
intelligentSchedul
from
'
./components/intelligentSchedul/index.vue
'
//智能调度
import
dataAnalysis
from
'
./components/dataAnalysis/index.vue
'
//数据分析
import
dataAnalysis
from
'
./components/dataAnalysis/index.vue
'
//数据分析
import
carSpecificInfor
from
'
./components/carSpecificInfor/index.vue
'
//车辆信息弹框
import
carSpecificInfor
from
'
./components/carSpecificInfor/index.vue
'
//车辆信息弹框
import
mars3dViewerMap
from
'
../../components/mars3d/Map.vue
'
//地图
//
import mars3dViewerMap from '../../components/mars3d/Map.vue' //地图
import
carsEZUIKitJs
from
'
../../components/ezuikit/carsEZUIKitJs.vue
'
//车辆监控
import
carsEZUIKitJs
from
'
../../components/ezuikit/carsEZUIKitJs.vue
'
//车辆监控
import
kaungEZUIKitJs
from
'
../../components/ezuikit/EZUIKitJs.vue
'
//矿山监控
import
kaungEZUIKitJs
from
'
../../components/ezuikit/EZUIKitJs.vue
'
//矿山监控
...
@@ -63,7 +64,7 @@ export default {
...
@@ -63,7 +64,7 @@ export default {
intelligentSchedul
,
intelligentSchedul
,
dataAnalysis
,
dataAnalysis
,
carSpecificInfor
,
carSpecificInfor
,
mars3dViewerMap
,
//
mars3dViewerMap,
carsEZUIKitJs
,
carsEZUIKitJs
,
kaungEZUIKitJs
,
kaungEZUIKitJs
,
},
},
...
@@ -277,41 +278,41 @@ export default {
...
@@ -277,41 +278,41 @@ export default {
this
.
currentTime
=
yy
+
'
/
'
+
mm
+
'
/
'
+
dd
+
'
'
+
hou
+
'
:
'
+
min
;
this
.
currentTime
=
yy
+
'
/
'
+
mm
+
'
/
'
+
dd
+
'
'
+
hou
+
'
:
'
+
min
;
},
},
// 地图构造完成回调
// 地图构造完成回调
onMapload
(
map
)
{
//
onMapload(map) {
// 以下为演示代码
//
// 以下为演示代码
// 创建entity图层
//
// 创建entity图层
const
graphicLayer
=
new
this
.
mars3d
.
layer
.
GraphicLayer
()
//
const graphicLayer = new this.mars3d.layer.GraphicLayer()
map
.
addLayer
(
graphicLayer
)
//
map.addLayer(graphicLayer)
// 2.在layer上绑定监听事件
//
// 2.在layer上绑定监听事件
graphicLayer
.
on
(
this
.
mars3d
.
EventType
.
click
,
function
(
event
)
{
//
graphicLayer.on(this.mars3d.EventType.click, function (event) {
console
.
log
(
'
监听layer,单击了矢量对象
'
,
event
)
//
console.log('监听layer,单击了矢量对象', event)
})
//
})
graphicLayer
.
on
(
this
.
mars3d
.
EventType
.
mouseOver
,
function
(
event
)
{
//
graphicLayer.on(this.mars3d.EventType.mouseOver, function (event) {
console
.
log
(
'
监听layer,鼠标移入了矢量对象
'
,
event
)
//
console.log('监听layer,鼠标移入了矢量对象', event)
})
//
})
graphicLayer
.
on
(
this
.
mars3d
.
EventType
.
mouseOut
,
function
(
event
)
{
//
graphicLayer.on(this.mars3d.EventType.mouseOut, function (event) {
console
.
log
(
'
监听layer,鼠标移出了矢量对象
'
,
event
)
//
console.log('监听layer,鼠标移出了矢量对象', event)
})
//
})
// 可在图层上绑定popup,对所有加到这个图层的矢量数据都生效
//
// 可在图层上绑定popup,对所有加到这个图层的矢量数据都生效
graphicLayer
.
bindPopup
(
'
我是layer上绑定的Popup
'
,
{
//
graphicLayer.bindPopup('我是layer上绑定的Popup', {
anchor
:
[
0
,
-
10
]
//
anchor: [0, -10]
})
//
})
// 可在图层绑定右键菜单,对所有加到这个图层的矢量数据都生效
//
// 可在图层绑定右键菜单,对所有加到这个图层的矢量数据都生效
graphicLayer
.
bindContextMenu
([
//
graphicLayer.bindContextMenu([
{
//
{
text
:
'
删除对象
'
,
//
text: '删除对象',
iconCls
:
'
fa fa-trash-o
'
,
//
iconCls: 'fa fa-trash-o',
callback
:
function
(
e
)
{
//
callback: function (e) {
const
graphic
=
e
.
graphic
//
const graphic = e.graphic
if
(
graphic
)
{
//
if (graphic) {
graphicLayer
.
removeGraphic
(
graphic
)
//
graphicLayer.removeGraphic(graphic)
}
//
}
}
//
}
}
//
}
])
//
])
},
//
},
},
},
...
...
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