From 749cf1515d610f8d81a1956b98669d43fd5836d0 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期二, 04 十二月 2018 13:15:33 +0800 Subject: [PATCH] 调整机房续航能力位置到第二个位置 --- gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html index bd88a3d..5e02643 100644 --- a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html +++ b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp.html @@ -283,9 +283,13 @@ temp=JSON.parse(temp); console.info(temp); console.info(temp[30]); + console.info(temp[33]); installstartdata(temp); - - getUpdateArr(); + if(temp[33]&&temp[33]=="new"){ + + }else{ + + } function installstartdata(temp){ //$("#StationId").value=temp[0]; //var t=document.getElementById("station_name1"); @@ -378,13 +382,17 @@ $(function(){ $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck"); $("#sure").click(function(){ - editParm(); - function backpage(){window.location.href="ele-param.html";} - setTimeout(backpage,3000); - }); - $("#cancel").click(function(){ - window.location.href="ele-param.html"; - }); + if(temp[33]&&temp[33]=="new"){ + addBatt(); + }else{ + editParm(); + } + function backpage(){window.location.href="ele-param.html";} + setTimeout(backpage,500); + }); + $("#cancel").click(function(){ + window.location.href="ele-param.html"; + }); }); function editParm(){ var parm = getUpdateArr(); -- Gitblit v1.9.1