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
ec4759b1
Commit
ec4759b1
authored
Nov 27, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模式切换
parent
68bf58bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
SideBar.vue
src/views/SideBar.vue
+7
-3
No files found.
CMakeLists.txt
View file @
ec4759b1
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"2"
)
set
(
MINOR_VERSION
"2"
)
set
(
PATCH_VERSION
"
2
"
)
set
(
PATCH_VERSION
"
3
"
)
# 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}"
)
...
...
src/views/SideBar.vue
View file @
ec4759b1
...
@@ -90,15 +90,19 @@
...
@@ -90,15 +90,19 @@
const
target
=
evt
.
currentTarget
const
target
=
evt
.
currentTarget
const
{
name
}
=
target
.
dataset
const
{
name
}
=
target
.
dataset
const
{
debuginfo
}
=
vehicleStoreToRefs
const
{
debuginfo
}
=
vehicleStoreToRefs
const
{
Current_Gear
,
loadBrakeStatus
}
=
debuginfo
.
value
;
const
{
Current_Gear
,
loadBrakeStatus
,
parkBrakeStatus
}
=
debuginfo
.
value
;
if
(
name
===
'mode_switch'
&&
isDisable
.
value
===
'disabled'
)
{
if
(
name
===
'mode_switch'
&&
isDisable
.
value
===
'disabled'
)
{
return
return
}
}
if
(
name
==
'mode_switch'
){
if
(
name
==
'mode_switch'
){
if
(
!
([
'
P'
,
126
].
includes
(
Current_Gear
)
||
([
'N'
,
0
].
includes
(
Current_Gear
)
&&
loadBrakeStatus
!=
0
)))
{
if
(
!
([
'
N'
,
0
].
includes
(
Current_Gear
)
&&
(
loadBrakeStatus
||
parkBrakeStatus
)))
{
Message
.
error
(
'不能切换无人模式'
)
Message
.
error
(
'不能切换无人模式'
)
return
return
}
}
// if (!(['P', 126].includes(Current_Gear) || (['N', 0].includes(Current_Gear) && loadBrakeStatus != 0))) {
// Message.error('不能切换无人模式')
// return
// }
}
}
active
.
value
=
name
active
.
value
=
name
emit
(
'changeTab'
,
name
)
emit
(
'changeTab'
,
name
)
...
...
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