From 4be62c8c88eba0e3474890abf868fc88a0b61865 Mon Sep 17 00:00:00 2001
From: chenjingjing <chenjingjing@192.168.10.3>
Date: 星期四, 27 十二月 2018 17:58:54 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-approved1.html |   51 +--------------------------------------------------
 1 files changed, 1 insertions(+), 50 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-approved1.html b/gx_tieta/WebRoot/mobil/batt-approved1.html
index a52b1a0..5c78db4 100644
--- a/gx_tieta/WebRoot/mobil/batt-approved1.html
+++ b/gx_tieta/WebRoot/mobil/batt-approved1.html
@@ -380,51 +380,6 @@
 		
 		installstartdata(temp);
 	});
-	
-	function creatgroupid(){
-		var dev_id ='';
-		$.ajax({
-				type: 'post'
-				,async: true
-				,url: 'BattInfAction!searchmaxdev_id'
-				,data: null
-				,dataType: 'json'
-				,success:function(res) {
-					console.info(res);
-					var data = JSON.parse(res.result);
-					console.info(data);
-					if(data.length!=0){
-						data = data.data;
-						dev_id = data;
-						//console.info(dev_id);
-						document.getElementById("FBSDeviceId").value = dev_id;
-						var ip = getDevIp(dev_id);
-						//console.info(ip);
-						document.getElementById("FbsDeviceIp").value = ip;
-					}else{
-						alert("groupid鐢熸垚澶辫触");
-					}
-				}   
-		
-		});	
-	}
-	// 鏍规嵁璁惧id璁$畻璁惧ip
-    function getDevIp(dev_id) {
-    	var ptn = /^91([0-9]{7})$/;
-    	var ip = '';
-    	console.info(dev_id);
-    	if(ptn.test(dev_id)) {
-    		var value = Number(RegExp.$1);
-    		// console.log(value);
-    		var intNum = prefixInteger(Math.floor(value/256), 3);
-    		var resNum = prefixInteger(value%256, 3);
-    		ip = '127.000.'+intNum+'.'+resNum;
-    	}else {
-    		ip = '璁惧ID鏍煎紡涓嶆纭�';
-    	}
-    	console.info(ip);
-    	return ip;
-    }
     
     function applyendyanshou(arr){   //鐢宠楠屾敹
 		var temp = JSON.stringify(arr);
@@ -460,11 +415,7 @@
 		console.info(vol);
  	}
  	
- 
-    function prefixInteger(num, length) {
- 		return (num/Math.pow(3,length)).toFixed(length).substr(2);
-	}
-	
+
 	//瀵煎叆琛ㄦ牸榛樿鏁版嵁
 	function installstartdata(temp){
 			data=temp[0].binf;

--
Gitblit v1.9.1