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
04574f44
Commit
04574f44
authored
Apr 22, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
释放路权
parent
117d1eb4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
5 deletions
+25
-5
Truckmonitorview.zip
Truckmonitorview.zip
+0
-0
config.json
public/config.json
+1
-1
index.js
src/js/socket/index.js
+9
-0
MapStore.js
src/store/MapStore.js
+2
-1
MapLeaflet.vue
src/views/map/MapLeaflet.vue
+2
-1
RunControl.vue
src/views/set-tags/RunControl.vue
+11
-2
No files found.
Truckmonitorview.zip
deleted
100644 → 0
View file @
117d1eb4
File deleted
public/config.json
View file @
04574f44
{
"SERVICE_IP"
:
"1
72.16.0.166
:1234"
,
"SERVICE_IP"
:
"1
92.168.93.178
:1234"
,
"LOG_SERVE_IP"
:
"192.168.93.87:8020"
,
"MAP_CENTER"
:
[
39.74441007068
,
111.24544532751
],
"version"
:
"1.1.4"
...
...
src/js/socket/index.js
View file @
04574f44
...
...
@@ -347,6 +347,15 @@ export default class Socket {
this
.
mapStore
.
setData
(
'nextPathAvailable'
,
available
)
path
&&
worker
.
postMessage
({
name
,
msg
:
path
})
break
case
'/vehicle/currPathinfo'
:
if
(
Array
.
isArray
(
msg
))
{
worker
.
postMessage
({
name
,
msg
})
}
else
{
let
{
available
,
path
}
=
msg
this
.
mapStore
.
setData
(
'currPathAvailable'
,
available
)
path
&&
worker
.
postMessage
({
name
,
msg
:
path
})
}
break
default
:
msg
&&
worker
.
postMessage
({
name
,
msg
})
break
...
...
src/store/MapStore.js
View file @
04574f44
...
...
@@ -24,7 +24,8 @@ export const useMapStore = defineStore('map', {
morepath
:
null
,
// 单机循迹多路径
nextPathinfo
:
null
,
currPathinfo
:
null
,
nextPathAvailable
:
null
,
nextPathAvailable
:
null
,
// 下一段路路权
currPathAvailable
:
null
,
// 当前路径路权
dynamicPathinfo
:
null
,
// 车辆动态路权信息
}
},
...
...
src/views/map/MapLeaflet.vue
View file @
04574f44
...
...
@@ -91,6 +91,7 @@
nextPathinfo
,
currPathinfo
,
nextPathAvailable
,
currPathAvailable
,
avoidancePath
,
// 绕障路径
obstacleData
,
dynamicPathinfo
,
// 车辆动态路权信息
...
...
@@ -639,7 +640,7 @@
},
{
immediate
:
true
,
deep
:
true
})
watch
(
currPathinfo
,
(
value
)
=>
{
dealMapPath
(
value
,
'currentPath'
,
'#19ae19
'
)
dealMapPath
(
value
,
'currentPath'
,
currPathAvailable
.
value
===
1
?
'#19ae19'
:
'#8B4513
'
)
adjustmentLayer
()
},
{
immediate
:
true
,
deep
:
true
})
...
...
src/views/set-tags/RunControl.vue
View file @
04574f44
...
...
@@ -45,6 +45,10 @@
<Button
type=
"primary"
@
click=
"handleSave(7)"
>
加载参数
</Button>
<span>
触发控制模块重新加载参数
</span>
</p>
<p
class=
"c-box b-box"
>
<Button
type=
"primary"
style=
"margin-right: 10px;"
@
click=
"boxDown(13)"
>
释放路权
</Button>
<Button
type=
"primary"
@
click=
"handleSave(14)"
>
申请路权
</Button>
</p>
</div>
<Modal
v-model=
"isShow"
title=
"提示"
...
...
@@ -52,7 +56,7 @@
:mask-closable=
"false"
@
on-ok=
"handleSave(codeValue)"
@
on-cancel=
"boxCancel()"
>
<p
style=
"text-align: center;"
>
是否执行{{codeText}}指令
</p>
<p
style=
"text-align: center;"
>
{{codeText}}
</p>
</Modal>
</div>
</template>
...
...
@@ -155,7 +159,12 @@
let
codeText
=
ref
(
''
);
function
boxDown
(
val
,
text
){
codeValue
.
value
=
val
;
codeText
.
value
=
text
;
if
(
val
==
13
)
{
codeText
.
value
=
'注意:释放路权可能产生与其他车辆碰撞风险,请务必确保停车位置不影响其他车、且周边车辆都停车后再释放!'
}
else
{
codeText
.
value
=
`是否执行
${
text
}
指令`
;
}
isShow
.
value
=
true
;
}
function
boxCancel
(){
...
...
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