From 01f4050c3529f85ec05673fea9273f35c6e5e934 Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.30>
Date: 星期三, 05 十二月 2018 14:04: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..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