Commit e2390418 authored by 李玲燕's avatar 李玲燕

增加设备任务显示、修改路口图层顺序

parent c2147969
...@@ -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}")
......
{ {
"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"
......
...@@ -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
......
...@@ -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
} }
} }
}, },
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment