From ff2efca24852572526b32db23816d28d78dcd8a1 Mon Sep 17 00:00:00 2001
From: LiJun <LiJun@192.168.10.21>
Date: 星期四, 06 十二月 2018 09:59:16 +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