From 47b5fd89f9a1996cadb2619917c9fcb02d2fa8f9 Mon Sep 17 00:00:00 2001 From: whyclj <1525436766@qq.com> Date: 星期一, 24 十二月 2018 10:34:14 +0800 Subject: [PATCH] web端实时页面中添加SD卡状态的查询方法 --- gx_tieta/WebRoot/control.jsp | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp index cc6607f..4ab7004 100644 --- a/gx_tieta/WebRoot/control.jsp +++ b/gx_tieta/WebRoot/control.jsp @@ -1026,7 +1026,7 @@ </tr> <tr> <th>鍗曚綋鏁版嵁鏉ユ簮绫诲瀷</th> - <th>鍋滅數鍗囧帇姒ㄥ共鐢垫睜鏁伴噺锛�1~2锛�</th> + <th>鍋滅數鍗囧帇姒ㄥ共鐢垫睜鏁伴噺锛�0~2锛�</th> </tr> <tr> <td> @@ -1046,7 +1046,7 @@ <td><input type="text" id="sysSet_startLimit" value=""></td> </tr> <tr> - <th>鐢垫睜鍚堣矾鍣ㄤ富鐢垫睜缁勭紪鍙凤紙1~2锛�</th> + <th>鐢垫睜鍚堣矾鍣ㄤ富鐢垫睜缁勭紪鍙凤紙0~2锛�</th> <th>鑳屽厜鏃堕暱锛�0~999鍒嗛挓锛�</th> </tr> <tr> @@ -1811,7 +1811,6 @@ $('.fir:first').next().children().eq(i).children().eq(0).css('display','none'); } } - //alert(BattGroupId); clearInterval(time); searchBattAlarmParam(); //鏌ヨ鐢垫睜鍛婅鍙傛暟 @@ -4563,6 +4562,7 @@ getBattStr(); searchBattAlarmParam(); //鏌ヨ鐢垫睜鍛婅鍙傛暟 + searchDevSDState(); clearInterval(time); mygraph.graphtype = 4; showtable(); @@ -5319,6 +5319,35 @@ } }); } + + + //鏌ヨ璁惧鐨凷D鍗$姸鎬� + function searchDevSDState(){ + var obj= getBatt(); + console.info(obj); + $.ajax({ + type: "post", + url: "Bts_station_stateAction_action_serchSDCard", + async: true, + dataType: 'json', + data: "json = " + JSON.stringify(obj), + success: function(result) { + var rs = JSON.parse(result.result); + console.info(rs); + + clearTimeout(searchDevSDState.timeout); + searchDevSDState.timeout = setTimeout(function() { + searchDevSDState(); + }, 2000); + }, + error: function() { + clearTimeout(searchDevSDState.timeout); + searchDevSDState.timeout = setTimeout(function() { + searchDevSDState(); + }, 5000); + } + }); + } </script> <script type="text/javascript" src="js/Title.js"></script> <script type="text/javascript" src="js/control.js"></script> -- Gitblit v1.9.1