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
2d64580a
Commit
2d64580a
authored
Apr 11, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e9eb04be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
28 deletions
+32
-28
.env.development
.env.development
+3
-3
Map.vue
src/components/mars3d/Map.vue
+29
-25
No files found.
.env.development
View file @
2d64580a
...
@@ -2,10 +2,10 @@ ENV = 'development'
...
@@ -2,10 +2,10 @@ ENV = 'development'
# 接口地址
# 接口地址
#VUE_APP_BASE_API = 'http://localhost:8000'
#VUE_APP_BASE_API = 'http://localhost:8000'
VUE_APP_BASE_API = 'http://192.168.0.11
1
:8001'
VUE_APP_BASE_API = 'http://192.168.0.11
0
:8001'
VUE_APP_WS_API = 'ws://localhost:8000'
VUE_APP_WS_API = 'ws://localhost:8000'
VUE_APP_LOCAL_API = 'http://192.168.0.11
1
:8001'
VUE_APP_LOCAL_API = 'http://192.168.0.11
0
:8001'
VUE_APP_LOCAL_API2 = 'http://192.168.0.11
1
:8001'
VUE_APP_LOCAL_API2 = 'http://192.168.0.11
0
:8001'
# 是否启用 babel-plugin-dynamic-import-node插件
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/components/mars3d/Map.vue
View file @
2d64580a
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
getCoordinate
()
{
getCoordinate
()
{
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
){
...
@@ -155,20 +155,24 @@ export default {
...
@@ -155,20 +155,24 @@ export default {
that
.
zuobianData
=
data1
that
.
zuobianData
=
data1
//console.log("zuobianData",that.zuobianData);
//console.log("zuobianData",that.zuobianData);
//console.log("weilanName",that.weilanName);
//console.log("weilanName",that.weilanName);
}
})
this
.
$nextTick
(()
=>
{
if
(
this
.
appendToBody
)
{
if
(
this
.
appendToBody
)
{
document
.
body
.
appendChild
(
this
.
$el
)
document
.
body
.
appendChild
(
this
.
$el
)
}
}
if
(
this
.
mapKey
)
{
if
(
this
.
mapKey
)
{
this
.
initMars3d
(
this
.
options
)
this
.
initMars3d
(
this
.
options
)
}
else
{
}
else
{
mars3d
.
Resource
.
fetchJson
({
url
:
this
.
url
}).
then
((
data
)
=>
{
mars3d
.
Resource
.
fetchJson
({
url
:
this
.
url
}).
then
((
data
)
=>
{
this
.
initMars3d
(
data
.
map3d
)
// 构建地图
this
.
initMars3d
(
data
.
map3d
)
// 构建地图
})
})
}
}
}
})
})
},
},
//上传围栏数据
//上传围栏数据
uploaded
(){
uploaded
(){
...
@@ -246,18 +250,18 @@ export default {
...
@@ -246,18 +250,18 @@ export default {
})
})
//创建矢量数据图层2
//创建矢量数据图层2
var
graphicLayer1
=
new
mars3d
.
layer
.
GraphicLayer
();
//
var graphicLayer1 = new mars3d.layer.GraphicLayer();
map
.
addLayer
(
graphicLayer1
);
//
map.addLayer(graphicLayer1);
var
item
=
`<table style="width: auto;">
//
var item = `
<
table
style
=
"
width: auto;
"
>
<tr>
//
<
tr
>
<th scope="col" colspan="2" style="text-align:center;font-size:15px;">卡车号码:鲁K12345</th>
//
<
th
scope
=
"
col
"
colspan
=
"
2
"
style
=
"
text-align:center;font-size:15px;
"
>
卡车号码:鲁
K12345
<
/th
>
</tr>
//
<
/tr
>
<tr>
//
<
tr
>
<td>名称:卡车一</td>
//
<
td
>
名称:卡车一
<
/td
>
</tr>
//
<
/tr
>
</table>`
;
//
<
/table>`
;
initGraphicManager
(
graphicLayer1
,
item
);
//
initGraphicManager(graphicLayer1,item);
this
.
addGraphic_02
(
graphicLayer1
,
this
.
persons
);
//
this.addGraphic_02(graphicLayer1,this.persons);
// 抛出事件
// 抛出事件
this
.
$emit
(
'
onload
'
,
map
)
this
.
$emit
(
'
onload
'
,
map
)
...
...
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