Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李远洪
new-socketemulator
Commits
7b6a9de9
Commit
7b6a9de9
authored
Mar 19, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地理位置页面基本完成,还差事件信息的js处理需要加上
parent
03819733
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
136 additions
and
5 deletions
+136
-5
templates/messageTools/message/location_msg_page.html
templates/messageTools/message/location_msg_page.html
+136
-5
No files found.
templates/messageTools/message/location_msg_page.html
View file @
7b6a9de9
...
...
@@ -409,7 +409,7 @@
<div
style=
"margin-left:20px"
;
>
<label
style=
"font-size:13px;"
>
安全状态:
</label>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li
style=
"width:155px;"
><select
style=
"width:145px;"
id=
"
securityStatus
"
class=
"form-control"
>
<li
style=
"width:155px;"
><select
style=
"width:145px;"
id=
"
accStatus_code
"
class=
"form-control"
>
<option
value=
"0"
>
ACC 状态(关)
</option>
<option
value=
"1"
>
ACC 状态(开)
</option></select></li>
<li
style=
"width:180px;"
><select
style=
"width:170px;"
id=
"defenseStatus"
class=
"form-control"
>
...
...
@@ -556,7 +556,7 @@
<div
style=
"margin-left:20px"
;
>
<label
style=
"font-size:13px;"
>
开关状态 B:
</label>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li
style=
"width:175px;"
><label
style=
"font-size:13px;display:inline;"
>
档位:
</label><select
style=
"width:120px;"
id=
"
ddd
"
class=
"form-control"
>
<li
style=
"width:175px;"
><label
style=
"font-size:13px;display:inline;"
>
档位:
</label><select
style=
"width:120px;"
id=
"
gears
"
class=
"form-control"
>
<option
value=
"0"
>
P档
</option>
<option
value=
"16"
>
R档
</option>
<option
value=
"32"
>
N档
</option>
...
...
@@ -1076,10 +1076,141 @@ function getbaseInfo_0010(){
return
data
;
}
//获取附加信息基础数据项0011
function
getbaseInfo_001
0
(){
function
getbaseInfo_001
1
(){
data
=
{}
data
[
"
pointCount
"
]
=
$
(
"
#pointCount
"
).
val
();
data
[
"
collectIntercal
"
]
=
$
(
"
#collectIntercal
"
).
val
();
data
[
"
statusCode
"
]
=
$
(
"
#statusCode
"
).
val
();
var
accStatus
=
parseInt
(
$
(
"
#accStatus_code
"
).
val
());
var
defenseStatus
=
parseInt
(
$
(
"
#defenseStatus
"
).
val
());
var
brakeStatus
=
parseInt
(
$
(
"
#brakeStatus
"
).
val
());
var
acceleratorStatus
=
parseInt
(
$
(
"
#acceleratorStatus
"
).
val
());
var
handBrakeStatus
=
parseInt
(
$
(
"
#handBrakeStatus
"
).
val
());
var
mainSafetyBelt
=
parseInt
(
$
(
"
#mainSafetyBelt
"
).
val
());
var
subSafetyBelt
=
parseInt
(
$
(
"
#subSafetyBelt
"
).
val
());
data
[
"
securityStatus
"
]
=
accStatus
+
defenseStatus
+
brakeStatus
+
acceleratorStatus
+
handBrakeStatus
+
mainSafetyBelt
+
subSafetyBelt
var
lfDoorStatus
=
parseInt
(
$
(
"
#lfDoorStatus
"
).
val
());
var
rfDoorStatus
=
parseInt
(
$
(
"
#rfDoorStatus
"
).
val
());
var
lbDoorStatus
=
parseInt
(
$
(
"
#lbDoorStatus
"
).
val
());
var
rbDoorStatus
=
parseInt
(
$
(
"
#rbDoorStatus
"
).
val
());
var
trunk
=
parseInt
(
$
(
"
#trunk
"
).
val
());
var
enginCover
=
parseInt
(
$
(
"
#enginCover
"
).
val
());
data
[
"
doorStatus
"
]
=
lfDoorStatus
+
rfDoorStatus
+
lbDoorStatus
+
rbDoorStatus
+
trunk
+
enginCover
var
lfDoorLockStatus
=
parseInt
(
$
(
"
#lfDoorLockStatus
"
).
val
());
var
rfDoorLockStatus
=
parseInt
(
$
(
"
#rfDoorLockStatus
"
).
val
());
var
lbDoorLockStatus
=
parseInt
(
$
(
"
#lbDoorLockStatus
"
).
val
());
var
rbDoorLockStatus
=
parseInt
(
$
(
"
#rbDoorLockStatus
"
).
val
());
data
[
"
lockStatus
"
]
=
lfDoorLockStatus
+
rfDoorLockStatus
+
lbDoorLockStatus
+
rbDoorLockStatus
var
lfWindowStatus
=
parseInt
(
$
(
"
#lfWindowStatus
"
).
val
());
var
rfWindowStatus
=
parseInt
(
$
(
"
#rfWindowStatus
"
).
val
());
var
lbWindowStatus
=
parseInt
(
$
(
"
#lbWindowStatus
"
).
val
());
var
rbWindowStatus
=
parseInt
(
$
(
"
#rbWindowStatus
"
).
val
());
var
topWindowStatus
=
parseInt
(
$
(
"
#topWindowStatus
"
).
val
());
var
lTurnLight
=
parseInt
(
$
(
"
#lTurnLight
"
).
val
());
var
rTurnLight
=
parseInt
(
$
(
"
#rTurnLight
"
).
val
());
var
readLight
=
parseInt
(
$
(
"
#readLight
"
).
val
());
data
[
"
windowStatus
"
]
=
lfWindowStatus
+
rfWindowStatus
+
lbWindowStatus
+
rbWindowStatus
+
topWindowStatus
+
lTurnLight
+
rTurnLight
+
readLight
var
lowHeadlight
=
parseInt
(
$
(
"
#lowHeadlight
"
).
val
());
var
highHeadlight
=
parseInt
(
$
(
"
#highHeadlight
"
).
val
());
var
ffogLight
=
parseInt
(
$
(
"
#ffogLight
"
).
val
());
var
bfogLight
=
parseInt
(
$
(
"
#bfogLight
"
).
val
());
var
dangerLight
=
parseInt
(
$
(
"
#dangerLight
"
).
val
());
var
backCarLight
=
parseInt
(
$
(
"
#backCarLight
"
).
val
());
var
autoLight
=
parseInt
(
$
(
"
#autoLight
"
).
val
());
var
widthLight
=
parseInt
(
$
(
"
#widthLight
"
).
val
());
data
[
"
lightStatus
"
]
=
lowHeadlight
+
highHeadlight
+
ffogLight
+
bfogLight
+
dangerLight
+
backCarLight
+
autoLight
+
widthLight
var
machineOilWarning
=
parseInt
(
$
(
"
#machineOilWarning
"
).
val
());
var
oilWarning
=
parseInt
(
$
(
"
#oilWarning
"
).
val
());
var
wiperWarning
=
parseInt
(
$
(
"
#wiperWarning
"
).
val
());
var
loudsspeakerWaring
=
parseInt
(
$
(
"
#loudsspeakerWaring
"
).
val
());
var
airConditionerWaring
=
parseInt
(
$
(
"
#airConditionerWaring
"
).
val
());
var
backMirrorWaring
=
parseInt
(
$
(
"
#backMirrorWaring
"
).
val
());
data
[
"
onoffStatusA
"
]
=
machineOilWarning
+
oilWarning
+
wiperWarning
+
loudsspeakerWaring
+
airConditionerWaring
+
backMirrorWaring
var
gears
=
parseInt
(
$
(
"
#gears
"
).
val
());
data
[
"
onoffStatusB
"
]
=
gears
return
data
;
}
//获取附加信息基础数据项0012
function
getbaseInfo_0012
(){
data
=
{}
data
[
"
dataId_0012
"
]
=
$
(
"
#dataId_0012
"
).
val
();
return
data
;
}
//获取附加信息基础数据项0013
function
getbaseInfo_0013
(){
data
=
{}
data
[
"
dataId_0013
"
]
=
$
(
"
#dataId_0013
"
).
val
();
return
data
;
}
//获取附加信息基础数据项001D
function
getbaseInfo_001D
(){
data
=
{}
data
[
"
dataId_001D
"
]
=
$
(
"
#dataId_001D
"
).
val
();
return
data
;
}
//获取附加信息EA
function
getExtra_EB
(){
var
data
=
{};
var
engineSpeed
=
$
(
"
#engineSpeed
"
).
val
();
var
carSpeed
=
$
(
"
#carSpeed
"
).
val
();
var
surplusOil
=
$
(
"
#surplusOil
"
).
val
();
var
coolingLiquidTemperature
=
$
(
"
#coolingLiquidTemperature
"
).
val
();
var
airInletTemperature
=
$
(
"
#airInletTemperature
"
).
val
();
var
intakeManifoldPressure
=
$
(
"
#intakeManifoldPressure
"
).
val
();
var
atmosphericPressure
=
$
(
"
#atmosphericPressure
"
).
val
();
var
envTemperature
=
$
(
"
#envTemperature
"
).
val
();
var
acceleratorLocation
=
$
(
"
#acceleratorLocation
"
).
val
();
var
oilPressure
=
$
(
"
#oilPressure
"
).
val
();
var
troubleCodeStatus
=
$
(
"
#troubleCodeStatus
"
).
val
();
var
troubleCodeNum
=
$
(
"
#troubleCodeNum
"
).
val
();
var
airFlow
=
$
(
"
#airFlow
"
).
val
();
var
valveLocation
=
$
(
"
#valveLocation
"
).
val
();
var
engineRunTime
=
$
(
"
#engineRunTime
"
).
val
();
var
troubleMileage
=
$
(
"
#troubleMileage
"
).
val
();
var
calculateLoadValue
=
$
(
"
#calculateLoadValue
"
).
val
();
var
fuelTrim
=
$
(
"
#fuelTrim
"
).
val
();
var
fireAngle
=
$
(
"
#fireAngle
"
).
val
();
var
frontBrakeBlockAbrasion
=
$
(
"
#frontBrakeBlockAbrasion
"
).
val
();
var
backBrakeBlockAbrasion
=
$
(
"
#backBrakeBlockAbrasion
"
).
val
();
var
brakeFluidLocation
=
$
(
"
#brakeFluidLocation
"
).
val
();
var
engineOilLocation
=
$
(
"
#engineOilLocation
"
).
val
();
var
tirePressureAlarm
=
$
(
"
#tirePressureAlarm
"
).
val
();
var
coolingLiquidLocation
=
$
(
"
#coolingLiquidLocation
"
).
val
();
var
enduranceMileage
=
$
(
"
#enduranceMileage
"
).
val
();
data
[
"
engineSpeed
"
]
=
engineSpeed
;
data
[
"
carSpeed
"
]
=
carSpeed
;
data
[
"
surplusOil
"
]
=
surplusOil
;
data
[
"
coolingLiquidTemperature
"
]
=
coolingLiquidTemperature
;
data
[
"
airInletTemperature
"
]
=
airInletTemperature
;
data
[
"
intakeManifoldPressure
"
]
=
intakeManifoldPressure
;
data
[
"
atmosphericPressure
"
]
=
atmosphericPressure
;
data
[
"
envTemperature
"
]
=
envTemperature
;
data
[
"
acceleratorLocation
"
]
=
acceleratorLocation
;
data
[
"
oilPressure
"
]
=
oilPressure
;
data
[
"
troubleCodeStatus
"
]
=
troubleCodeStatus
;
data
[
"
troubleCodeNum
"
]
=
troubleCodeNum
;
data
[
"
airFlow
"
]
=
airFlow
;
data
[
"
valveLocation
"
]
=
valveLocation
;
data
[
"
engineRunTime
"
]
=
engineRunTime
;
data
[
"
troubleMileage
"
]
=
troubleMileage
;
data
[
"
calculateLoadValue
"
]
=
calculateLoadValue
;
data
[
"
fuelTrim
"
]
=
fuelTrim
;
data
[
"
fireAngle
"
]
=
fireAngle
;
data
[
"
frontBrakeBlockAbrasion
"
]
=
frontBrakeBlockAbrasion
;
data
[
"
backBrakeBlockAbrasion
"
]
=
backBrakeBlockAbrasion
;
data
[
"
brakeFluidLocation
"
]
=
brakeFluidLocation
;
data
[
"
engineOilLocation
"
]
=
engineOilLocation
;
data
[
"
tirePressureAlarm
"
]
=
tirePressureAlarm
;
data
[
"
coolingLiquidLocation
"
]
=
coolingLiquidLocation
;
data
[
"
enduranceMileage
"
]
=
enduranceMileage
;
return
data
;
}
...
...
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