Commit 7b6a9de9 authored by liyuanhong's avatar liyuanhong

地理位置页面基本完成,还差事件信息的js处理需要加上

parent 03819733
......@@ -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_0010(){
function getbaseInfo_0011(){
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;
}
......
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