From 4b5d2f2decf9b70654fd8add12789e87c50ff79b Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期一, 07 一月 2019 17:56:14 +0800
Subject: [PATCH] 检测机房已存在
---
gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html | 39 +++++++++++++++++++++++++++++----------
1 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
index 20a59c3..1e55d78 100644
--- a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
+++ b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
@@ -41,6 +41,7 @@
.ui-select .ui-btn select{
width:77%;
}
+ table tr td{width:1000em;padding-right:1em;}
</style>
<link rel="stylesheet" href="css/fgpanel.css">
</head>
@@ -97,8 +98,7 @@
<tr>
<td>*鏈烘埧鍚嶇О</td>
<td>
- <input type="text" id="homeName" data-mini="true">
-
+ <textarea id="homeName" data-mini="true"></textarea>
</td>
</tr>
@@ -174,6 +174,7 @@
</tr>
<input type="hidden" id="DisCurrMax" data-mini="true" />
+ <input type="hidden" id="judgeBatt" data-mini="true" />
<tr>
@@ -415,9 +416,6 @@
$(function () {
- //setTimes($("#startTestrecord"),'2000-01-01');
- //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
-
//creatgroupid();//濡傛灉妫�娴嬩负NEW ,鍒欐墽琛屾坊鍔營D锛屽鏋滀负淇敼锛屽垯鎵ц涓烘嬁鍒癐D;
installstartdata(temp);
});
@@ -651,12 +649,10 @@
$("#sure").click(function(){
if(nullOrn()){
creatgroupid();//鎻愪氦涔嬪墠鍐嶆楠岃瘉锛屽垱寤篒D
- addBattnew(); //鎻愪氦
-
+ JudegeBattIn();//鎻愪氦鍓嶉獙璇佽鐢垫睜缁勫湪BATTINF琛ㄤ腑鏄惁宸插瓨鍦�
+ //addBattnew(); //鎻愪氦
}else{
} //楠岃瘉閲嶈椤规槸鍚︿负绌猴紝涓虹┖鍒欐彁绀猴紱
- //function backpage(){window.location.href="ele-param1.html";}
- // setTimeout(backpage,500);
});
$("#cancel").click(function(){
window.location.href="ele-param2.html";
@@ -673,8 +669,31 @@
}
}
+ function JudegeBattIn(){
+ var battinff ={
+ StationName: ($("#mainteArea").val()+"-"+$("#city").val()+"-"+$("#homeName").val()+"-"+$("#StationName4").val()), // 鎷兼帴鏈烘埧鍚嶇О
+ }
+ console.info(battinff);
+ $.ajax({
+ type: 'post',
+ async: true,
+ url: '../BattInfAction!judgeBatt',
+ data: "json="+JSON.stringify(battinff),
+ dataType: 'json',
+ success:function(data) {
+ data = JSON.parse(data.result);
+ console.info(data);
+ if(data.code!=1){
+ addBattnew()
+ }else{
+ alert("璇ユ満鎴垮凡瀛樺湪锛岃杩斿洖涓婁竴椤垫悳绱㈡淇敼");
+ }
+ }
+ });
+ }
+
function addBattnew(){//鏂板缓鐢垫睜缁勶紝娣诲姞鍒扮敵璇�
- console.info(getUpdateArr());
+ console.info(getUpdateArr());
var temp = JSON.stringify(getUpdateArr());
console.info(temp);
$.ajax({
--
Gitblit v1.9.1