Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FleetTruckView
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
FleetTruck
FleetTruckView
Commits
e2390418
Commit
e2390418
authored
Nov 21, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加设备任务显示、修改路口图层顺序
parent
c2147969
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
7 deletions
+36
-7
CMakeLists.txt
CMakeLists.txt
+2
-2
config.json
public/config.json
+1
-1
index.js
src/js/socket/index.js
+2
-0
MapLeaflet.vue
src/views/map/MapLeaflet.vue
+21
-3
PairDevice.vue
src/views/map/PairDevice.vue
+10
-1
No files found.
CMakeLists.txt
View file @
e2390418
...
@@ -7,8 +7,8 @@ set (CMAKE_CXX_STANDARD 11)
...
@@ -7,8 +7,8 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"
1
"
)
set
(
MINOR_VERSION
"
2
"
)
set
(
PATCH_VERSION
"
9
"
)
set
(
PATCH_VERSION
"
0
"
)
# Import cmake modules.
# Import cmake modules.
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
...
...
public/config.json
View file @
e2390418
{
{
"SERVICE_IP"
:
"192.168.
92.153
:1234"
,
"SERVICE_IP"
:
"192.168.
109.84
:1234"
,
"LOG_SERVE_IP"
:
"192.168.93.87:8020"
,
"LOG_SERVE_IP"
:
"192.168.93.87:8020"
,
"MAP_CENTER"
:
[
39.74441007068
,
111.24544532751
],
"MAP_CENTER"
:
[
39.74441007068
,
111.24544532751
],
"version"
:
"1.1.4"
"version"
:
"1.1.4"
...
...
src/js/socket/index.js
View file @
e2390418
...
@@ -460,6 +460,8 @@ export default class Socket {
...
@@ -460,6 +460,8 @@ export default class Socket {
case
'/setting/ignoreObstaclesAck'
:
case
'/setting/ignoreObstaclesAck'
:
this
.
dealObstaclesAck
(
msg
)
this
.
dealObstaclesAck
(
msg
)
break
break
case
'/vehicle/paraminfo'
:
console
.
log
(
msg
)
default
:
default
:
this
.
vehicleStore
.
setData
(
name
,
msg
)
this
.
vehicleStore
.
setData
(
name
,
msg
)
break
break
...
...
src/views/map/MapLeaflet.vue
View file @
e2390418
...
@@ -222,6 +222,13 @@
...
@@ -222,6 +222,13 @@
}
}
}
}
function
dealRunablearea
(
value
)
{
let
{
features
}
=
value
let
data
=
features
.
sort
((
pre
,
cur
)
=>
pre
.
properties
.
type
-
cur
.
properties
.
type
)
value
.
features
=
data
return
value
}
function
dealMapLayer
(
value
,
color
,
layerName
)
{
function
dealMapLayer
(
value
,
color
,
layerName
)
{
if
(
!
value
||
!
map
)
return
if
(
!
value
||
!
map
)
return
...
@@ -233,22 +240,33 @@
...
@@ -233,22 +240,33 @@
delete
mapLayers
[
layerName
]
delete
mapLayers
[
layerName
]
}
}
if
(
layerName
===
'runablearea'
)
{
result
=
dealRunablearea
(
result
)
}
let
layer
=
L
.
geoJSON
(
result
,
{
let
layer
=
L
.
geoJSON
(
result
,
{
style
:
function
(
feature
)
{
style
:
function
(
feature
)
{
if
(
layerName
===
'barricade'
)
{
if
(
layerName
===
'barricade'
)
{
return
{
return
{
color
:
'#0066ff'
,
color
:
'#0066ff'
,
opacity
:
1
,
opacity
:
1
,
width
:
5
width
:
5
}
}
}
else
{
}
else
if
(
layerName
===
'runablearea'
)
{
return
{
color
:
feature
.
properties
.
color
,
opacity
:
1
,
fillColor
:
feature
.
properties
.
type
==
4
?
'#4682B4'
:
feature
.
properties
.
color
,
fillOpacity
:
.
5
}
}
else
{
return
{
return
{
color
:
layerName
===
'lane'
?
'#eee'
:
feature
.
properties
.
color
,
color
:
layerName
===
'lane'
?
'#eee'
:
feature
.
properties
.
color
,
opacity
:
layerName
===
'lane'
?
.
5
:
1
,
opacity
:
layerName
===
'lane'
?
.
5
:
1
,
fillColor
:
layerName
===
'electronicFence'
fillColor
:
layerName
===
'electronicFence'
?
feature
.
properties
.
color
?
feature
.
properties
.
color
:
color
?
color
:
feature
.
properties
.
color
,
:
color
?
color
:
feature
.
properties
.
color
,
fillOpacity
:
layerName
===
'runablearea'
?
.
5
:
.
7
fillOpacity
:
.
7
}
}
}
}
},
},
...
...
src/views/map/PairDevice.vue
View file @
e2390418
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<img
:src=
"`/image/$
{item.icon}.png`" alt="">
<img
:src=
"`/image/$
{item.icon}.png`" alt="">
<span>
{{
pairingsMsg
[
item
.
name
]
}}
</span>
<span>
{{
pairingsMsg
[
item
.
name
]
}}
</span>
</p>
</p>
<p
class=
"loading-type"
>
{{
loadingType
}}
</p>
</div>
</div>
</
template
>
</
template
>
...
@@ -28,9 +29,12 @@
...
@@ -28,9 +29,12 @@
]
]
const
pairingsVehicle
=
markRaw
(
PAIRINGS_VEHICLE
)
const
pairingsVehicle
=
markRaw
(
PAIRINGS_VEHICLE
)
const
vehicleStore
=
useVehicleStore
()
const
vehicleStore
=
useVehicleStore
()
const
{
currentLoadthread
,
pairinfo
}
=
storeToRefs
(
vehicleStore
)
const
{
currentLoadthread
,
pairinfo
,
statusinfo
}
=
storeToRefs
(
vehicleStore
)
const
loadThread
=
computed
(()
=>
currentLoadthread
.
value
)
const
loadThread
=
computed
(()
=>
currentLoadthread
.
value
)
const
pairingsMsg
=
computed
(()
=>
pairinfo
.
value
)
const
pairingsMsg
=
computed
(()
=>
pairinfo
.
value
)
const
loadingType
=
computed
(()
=>
{
return
statusinfo
.
value
.
currAssignment
?
`(
${
statusinfo
.
value
.
currAssignment
}
)`
:
''
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
@@ -55,5 +59,9 @@
...
@@ -55,5 +59,9 @@
p:nth-child(1) {
p:nth-child(1) {
color: #eaba37
color: #eaba37
}
}
.loading-type {
color: #eaba37;
font-weight: 700;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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