From af003e94990143664f3df0b0ea59b9fab5f94167 Mon Sep 17 00:00:00 2001 From: CJJ <Administrator@192.168.10.25> Date: 星期五, 30 十一月 2018 16:41:40 +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..236ae9f 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,3000); + }); + $("#cancel").click(function(){ + window.location.href="ele-param.html"; + }); }); function editParm(){ var parm = getUpdateArr(); -- Gitblit v1.9.1