From 5fe2efb71f6ad809a1cfc59beab18bbea99fff5e Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期五, 18 一月 2019 09:01:41 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw

---
 gx_tieta/WebRoot/control.jsp |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp
index 579c089..41c33a3 100644
--- a/gx_tieta/WebRoot/control.jsp
+++ b/gx_tieta/WebRoot/control.jsp
@@ -1933,11 +1933,13 @@
 		//鏌ヨ鐢垫睜缁勭殑瀹炴椂鐘舵�佷俊鎭�
 		function showtable(){
 			//searbattrealInfomation();
-			searchDevStatusByDev_id();
 			findrtstate();
 			findrtdata();
 			//鏌ヨ璁惧鐨刣cdc鐘舵��
 			searchDevDcDcState();
+			
+			// 鏇存柊鎷撴墤鍥剧姸鎬�
+			searchDevStatusByDev_id();
 		}
 		
 		//鏍规嵁璁惧id鏌ヨ璁惧褰撳墠鐨勫紑鍏崇姸鎬�
@@ -1980,8 +1982,7 @@
 						//console.info("涓婁竴娆℃牳瀹规祴璇曞仠姝㈠師鍥狅細"+lastStopReason);
 						//console.info("閫氫俊璁℃暟锛�"+_data.dev_commcount);
 						//console.info("閫氫俊涓㈠寘鐜囷細"+(_data.dev_commcount==0?0:(_data.dev_errcommcount*100/_data.dev_commcount)));						
-						
-						var nowTime = new Date().getTime();		//褰撳墠鏃堕棿
+						var nowTime = new Date(model.data[0].note).getTime();		//褰撳墠鏃堕棿
 						var record = new Date(model.data[0].record_datetime).getTime();
 						
 						//console.info(Math.abs(nowTime-record)/1000);
@@ -2289,6 +2290,7 @@
 					table_index = 0;
 					createAllTbl(tbHd, tbBd, thVol, mon_vol_table_list);
 					title.setAvg(parseFloat(sum/array.length).toFixed(3));
+					title.setSum(sum);
 					getBattAlarmTitle(batt,"Voltage",title);
 					//title.alow = temp.alow;				//璁剧疆鐢靛帇鍛婅浣庡��	
 					//title.ahight = temp.ahight;			//璁剧疆鐢靛帇鍛婅楂樺��			
@@ -3733,6 +3735,9 @@
 				// 璁剧疆閫氫俊璁℃暟
 				status.setText('count', "閫氫俊璁℃暟锛�"+data.dev_commcount);
 				
+				// 璁剧疆璁惧鐗堟湰鍙�
+				status.setText('devVersion', '璁惧鐗堟湰鍙凤細'+data.dev_version);
+				
 				// 璁剧疆涓㈠寘鐜�
 				var errorCount = data.dev_errcommcount;
 				var allCount = data.dev_commcount+errorCount;

--
Gitblit v1.9.1