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
c2147969
Commit
c2147969
authored
Oct 23, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加梯子开关、修改调试信息排序
parent
42b0618d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
24 deletions
+71
-24
CMakeLists.txt
CMakeLists.txt
+1
-1
config.json
public/config.json
+1
-1
view_def.js
src/views/js/view_def.js
+19
-19
LightControl.vue
src/views/set-tags/LightControl.vue
+50
-3
No files found.
CMakeLists.txt
View file @
c2147969
...
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"1"
)
set
(
PATCH_VERSION
"
8
"
)
set
(
PATCH_VERSION
"
9
"
)
# Import cmake modules.
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
...
...
public/config.json
View file @
c2147969
{
"SERVICE_IP"
:
"192.168.92.1
85
:1234"
,
"SERVICE_IP"
:
"192.168.92.1
53
:1234"
,
"LOG_SERVE_IP"
:
"192.168.93.87:8020"
,
"MAP_CENTER"
:
[
39.74441007068
,
111.24544532751
],
"version"
:
"1.1.4"
...
...
src/views/js/view_def.js
View file @
c2147969
...
...
@@ -71,53 +71,53 @@ export const INFORMATION_MESSAGE = [
],
[
{
name
:
'
park
BrakeCmd'
,
label
:
'
驻车
制动给定'
name
:
'
mech
BrakeCmd'
,
label
:
'
机械
制动给定'
},
{
name
:
'
park
BrakeStatus'
,
name
:
'
mech
BrakeStatus'
,
label
:
'反馈'
}
}
,
],
[
{
name
:
'
exhaust
BrakeCmd'
,
label
:
'
排气
制动给定'
name
:
'
load
BrakeCmd'
,
label
:
'
装载
制动给定'
},
{
name
:
'
exhaust
BrakeStatus'
,
name
:
'
load
BrakeStatus'
,
label
:
'反馈'
}
}
,
],
[
{
name
:
'
retarderGear
Cmd'
,
label
:
'
缓行档位
给定'
name
:
'
parkBrake
Cmd'
,
label
:
'
驻车制动
给定'
},
{
name
:
'
retarderGear
Status'
,
name
:
'
parkBrake
Status'
,
label
:
'反馈'
}
],
[
{
name
:
'
load
BrakeCmd'
,
label
:
'
装载
制动给定'
name
:
'
exhaust
BrakeCmd'
,
label
:
'
排气
制动给定'
},
{
name
:
'
load
BrakeStatus'
,
name
:
'
exhaust
BrakeStatus'
,
label
:
'反馈'
}
,
}
],
[
{
name
:
'
mechBrake
Cmd'
,
label
:
'
机械制动
给定'
name
:
'
retarderGear
Cmd'
,
label
:
'
缓行档位
给定'
},
{
name
:
'
mechBrake
Status'
,
name
:
'
retarderGear
Status'
,
label
:
'反馈'
}
,
}
],
[
{
...
...
src/views/set-tags/LightControl.vue
View file @
c2147969
...
...
@@ -12,6 +12,30 @@
</
template
>
</i-switch>
</p>
<p>
<span
class=
"light-label"
>
梯子下降
</span>
<i-switch
:disabled=
"drivingPattern == 0"
v-model=
"form['ladderDownSwitch']"
size=
"large"
@
on-change=
"handleChange($event, 'ladderDownSwitch')"
>
<
template
#
open
>
<span>
开启
</span>
</
template
>
<
template
#
close
>
<span>
关闭
</span>
</
template
>
</i-switch>
<span
style=
"margin-left: 10px;"
>
下降状态:{{ ladderDownStatus == 0 ? '未下降到位' : '下降到位' }}
</span>
</p>
<p>
<span
class=
"light-label"
>
梯子上升
</span>
<i-switch
:disabled=
"drivingPattern == 0"
v-model=
"form['ladderUpSwitch']"
size=
"large"
@
on-change=
"handleChange($event, 'ladderUpSwitch')"
>
<
template
#
open
>
<span>
开启
</span>
</
template
>
<
template
#
close
>
<span>
关闭
</span>
</
template
>
</i-switch>
<span
style=
"margin-left: 10px;"
>
上升状态:{{ ladderUpStatus == 0 ? '未上升到位' : '上升到位' }}
</span>
</p>
</div>
<div
class=
"footer"
>
<Button
type=
"primary"
@
click=
"handleSave"
>
保存
</Button>
...
...
@@ -20,7 +44,7 @@
</template>
<
script
setup
>
import
{
reactive
,
toRefs
,
watch
,
markRaw
}
from
'vue'
;
import
{
reactive
,
toRefs
,
watch
,
markRaw
,
computed
,
ref
}
from
'vue'
;
import
{
useVehicleStore
}
from
'../../store/VehicleStore'
;
import
{
storeToRefs
}
from
'pinia'
;
...
...
@@ -57,7 +81,14 @@
const
lists
=
markRaw
(
LIGHT_CONTROL_LIST
)
const
vehicleStore
=
useVehicleStore
()
const
vehicleStoreToRefs
=
storeToRefs
(
vehicleStore
)
const
{
light
}
=
vehicleStoreToRefs
const
{
light
,
getVehicleDebug
,
statusinfo
}
=
vehicleStoreToRefs
const
ladderUpStatus
=
ref
(
0
)
const
ladderDownStatus
=
ref
(
0
)
// 软件层面有人-0;无人-1
const
drivingPattern
=
computed
(()
=>
{
let
pattern
=
statusinfo
.
value
[
'softDrivingPattern'
]
return
pattern
})
const
emits
=
defineEmits
([
'sendMsg'
])
...
...
@@ -68,12 +99,28 @@
})
}
function
handleChange
(
value
,
name
)
{
if
(
value
)
{
data
.
form
[
name
===
'ladderUpSwitch'
?
'ladderDownSwitch'
:
'ladderUpSwitch'
]
=
false
}
}
watch
(
light
,
(
value
)
=>
{
data
.
form
=
{...
value
}
},
{
immediate
:
true
,
deep
:
true
})
watch
(
getVehicleDebug
,
(
debugValue
)
=>
{
if
(
debugValue
)
{
ladderUpStatus
.
value
=
debugValue
.
ladderUpStatus
ladderDownStatus
.
value
=
debugValue
.
ladderDownStatus
}
},
{
immediate
:
true
,
deep
:
true
})
</
script
>
<
style
lang=
"less"
scoped
>
...
...
@@ -87,7 +134,7 @@
margin: 10px 0;
.light-label {
display: inline-block;
width:
4
vw;
width:
5.5
vw;
min-width: 55px;
}
}
...
...
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