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
55c868a8
Commit
55c868a8
authored
Apr 06, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ce936dcf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
Map.vue
src/components/mars3d/Map.vue
+6
-12
graphicManager.js
src/components/mars3d/js/graphicManager.js
+3
-0
index.vue
src/views/MLargeScreen/index.vue
+2
-2
No files found.
src/components/mars3d/Map.vue
View file @
55c868a8
...
@@ -3,12 +3,11 @@
...
@@ -3,12 +3,11 @@
<div
:id=
"`mars3d-container$
{mapKey}`"
<div
:id=
"`mars3d-container$
{mapKey}`"
:class="['mars3d-container', customClass, { 'mars3d-container-compare-rh' : compare }]">
</div>
:class="['mars3d-container', customClass, { 'mars3d-container-compare-rh' : compare }]">
</div>
<div
class=
"infoview"
>
<!--
<div
class=
"infoview"
>
<!--
<el-input
id=
"btnStartDraw"
type=
"button"
class=
"btn btn-primary"
value=
"设置围栏"
title=
"在图上绘制矢量数据"
/>
-->
<el-button
type=
"primary"
@
click=
"btnStartDraw()"
>
设置围栏
</el-button>
<el-button
type=
"primary"
@
click=
"btnStartDraw()"
>
设置围栏
</el-button>
<el-button
type=
"primary"
@
click=
"uploaded()"
>
上传围栏
</el-button>
<el-button
type=
"primary"
@
click=
"uploaded()"
>
上传围栏
</el-button>
<div
style=
"display: inline-block;color:red;font-weight:bolder;"
>
每次只允许上传一个围栏,并且围栏必须是封闭图形
</div>
<div
style=
"display: inline-block;color:red;font-weight:bolder;"
>
每次只允许上传一个围栏,并且围栏必须是封闭图形
</div>
</div>
</div>
-->
</div>
</div>
...
@@ -99,7 +98,7 @@ export default {
...
@@ -99,7 +98,7 @@ export default {
let
that
=
this
;
let
that
=
this
;
HttpReq
.
truckDispatching
.
screenMapSetUpQuery
({
size
:
9999
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
screenMapSetUpQuery
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
true
){;
if
(
true
){;
console
.
log
(
res
);
//
console.log(res);
let
data1
=
[];
let
data1
=
[];
for
(
let
key
in
res
){
for
(
let
key
in
res
){
that
.
weilanName
.
push
(
key
);
that
.
weilanName
.
push
(
key
);
...
@@ -114,7 +113,8 @@ export default {
...
@@ -114,7 +113,8 @@ export default {
data1
.
push
(
arrays
)
data1
.
push
(
arrays
)
}
}
that
.
zuobianData
=
data1
that
.
zuobianData
=
data1
console
.
log
(
"
zuobianData
"
,
that
.
zuobianData
);
//console.log("zuobianData",that.zuobianData);
//console.log("weilanName",that.weilanName);
if
(
this
.
appendToBody
)
{
if
(
this
.
appendToBody
)
{
document
.
body
.
appendChild
(
this
.
$el
)
document
.
body
.
appendChild
(
this
.
$el
)
...
@@ -205,12 +205,6 @@ export default {
...
@@ -205,12 +205,6 @@ export default {
that
.
addGraphic_01
(
graphicLayer
,
item
,
that
.
weilanName
[
index
]);
that
.
addGraphic_01
(
graphicLayer
,
item
,
that
.
weilanName
[
index
]);
})
})
//创建矢量数据图层1
// var graphicLayer = new mars3d.layer.GraphicLayer();
// map.addLayer(graphicLayer);
// initLayerManager(graphicLayer);
// this.addGraphic_01(graphicLayer,this.persons);
//创建矢量数据图层2
//创建矢量数据图层2
var
graphicLayer1
=
new
mars3d
.
layer
.
GraphicLayer
();
var
graphicLayer1
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayer1
);
map
.
addLayer
(
graphicLayer1
);
...
@@ -226,7 +220,7 @@ export default {
...
@@ -226,7 +220,7 @@ export default {
</tr>
</tr>
</table>`
;
</table>`
;
initGraphicManager
(
graphicLayer1
,
item
);
initGraphicManager
(
graphicLayer1
,
item
);
//this.addGraphic_02(graphicLayer1,this.coordinate
s);
this
.
addGraphic_02
(
graphicLayer1
,
this
.
person
s
);
// 抛出事件
// 抛出事件
this
.
$emit
(
'
onload
'
,
map
)
this
.
$emit
(
'
onload
'
,
map
)
...
...
src/components/mars3d/js/graphicManager.js
View file @
55c868a8
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
//在图层级处理一些事物
//在图层级处理一些事物
import
{
Tools
,
HttpReq
,
CAMap
}
from
'
@/assets/js/common.js
'
;
import
{
Tools
,
HttpReq
,
CAMap
}
from
'
@/assets/js/common.js
'
;
import
'
mars3d/dist/mars3d.css
'
import
*
as
mars3d
from
'
mars3d
'
import
$
from
'
jquery
'
export
function
initLayerManager
(
graphicLayer
,
index
)
{
export
function
initLayerManager
(
graphicLayer
,
index
)
{
let
rowName
=
index
;
let
rowName
=
index
;
...
...
src/views/MLargeScreen/index.vue
View file @
55c868a8
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
<dataAnalysis
ref=
"dataAnalysisMethod"
v-show=
"selectModule == 'dataAnalysis'"
/>
<dataAnalysis
ref=
"dataAnalysisMethod"
v-show=
"selectModule == 'dataAnalysis'"
/>
<carSpecificInfor
ref=
"carSpecificInforMethod"
v-show=
"selectModule == 'carSpecificInfor'"
/>
<carSpecificInfor
ref=
"carSpecificInforMethod"
v-show=
"selectModule == 'carSpecificInfor'"
/>
</div>
</div>
<div
class=
"carExample"
@
click=
"showSpecificInforFn()"
>
<
!--
<
div
class=
"carExample"
@
click=
"showSpecificInforFn()"
>
<span
class=
"el-icon-location"
></span>
<span
class=
"el-icon-location"
></span>
</div>
</div>
-->
<div
id=
"centerDiv"
class=
"mapcontainer"
>
<div
id=
"centerDiv"
class=
"mapcontainer"
>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
<mars3dViewerMap
:url=
"configUrl"
@
onload=
"onMapload"
/>
</div>
</div>
...
...
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