From 1a779120d9bcd4a50fe02ca792cb87c98ccf775b Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期一, 26 十一月 2018 10:31:55 +0800
Subject: [PATCH] 修改内容

---
 gx_tieta/WebRoot/control.jsp        |   85 ++++++++++++++++++++++++++++
 gx_tieta/WebRoot/index.jsp          |   56 ++++++++++++++++--
 gx_tieta/WebRoot/pages/js/common.js |    1 
 3 files changed, 136 insertions(+), 6 deletions(-)

diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp
index 796836d..ce75ad6 100644
--- a/gx_tieta/WebRoot/control.jsp
+++ b/gx_tieta/WebRoot/control.jsp
@@ -264,6 +264,11 @@
 									<span class="whyc-btn-icon fa fa-signal"></span>
 									<span class="whyc-btn-txt">淇″彿璐ㄩ噺</span>
 								</a>
+								<br>
+								<a href="javascript:void(0);" id="threadInfo" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
+									<span class="whyc-btn-icon fa fa-desktop"></span>
+									<span class="whyc-btn-txt">璁惧杩涚▼</span>
+								</a>
 					        </div>
 						</div>
 					</div>
@@ -4969,6 +4974,86 @@
 				//console.info(rs);
 				return rs;
 			}
+			
+			// 璁惧杩涚▼鏄剧ず
+			var threadInfoSearch = {
+				num: gprs.threadinfo,
+				dev_id:910000001 
+			};
+			
+			// 鐐瑰嚮璁惧杩涚▼鎸夐挳
+			$('#threadInfo').click(function() {
+				console.log(threadInfoSearch);
+				SendDeviceThreadInfo(threadInfoSearch,function(data){
+					searchDeviceThreadInfo({dev_id:910000001});
+				});
+			});
+			
+			
+			
+			
+			//缁橤PRS鍙戦�佹寚瀹氱殑鍛戒护锛岃幏鍙朅T杩斿洖鍊�
+			function SendDeviceThreadInfo(param,callback){
+				$.ajax({ 	
+			        type:"post", 								
+			        url: "Bts_gprs_stateAction_action_update_bts_task_inf",						
+			        async:true,				
+			        dataType:'json',
+			        data:'json='+JSON.stringify(param),		
+			        success: function(data){ 
+						var model = eval('('+data.result+')');
+						console.info(model);
+						if(callback && typeof callback == 'function'){
+							callback(model);
+						}
+		        	},error:function(e){
+		        		var model = {
+		        			code:0,
+		        			data:e,
+		        			msg:'閫氫俊澶辫触'
+		        		};
+		        		if(callback && typeof callback == 'function'){
+							callback(model);
+						}
+		        	} 				
+				});
+			}
+			
+			//鏌ヨ璁惧鐨勮繘绋嬩俊鎭�
+			function searchDeviceThreadInfo(param,callback){
+				$.ajax({ 	
+			        type:"post", 								
+			        url: "Bts_gprs_stateAction_action_serchByCondition",						
+			        async:true,				
+			        dataType:'json',
+			        data:'json='+JSON.stringify(param),		
+			        success: function(data){ 
+						var model = eval('('+data.result+')');
+						console.info(model);
+						var btsTaskInf = model.data[0].bts_task_inf;
+						layer.open({
+							title: '璁惧杩涚▼',
+							width: 380,
+							height: 450,
+							content: '<pre>'+btsTaskInf+'</pre>'
+						});
+						
+						if(callback && typeof callback == 'function'){
+							callback(model);
+						}
+		        	},error:function(e){
+		        		var model = {
+		        			code:0,
+		        			data:e,
+		        			msg:'閫氫俊澶辫触'
+		        		};
+		        		if(callback && typeof callback == 'function'){
+							callback(model);
+						}
+		        	} 				
+				});
+			}
+			
 		});
 		
 		// 鏈哄巻鍗℃ā鍧�
diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp
index 0264804..e7640d6 100644
--- a/gx_tieta/WebRoot/index.jsp
+++ b/gx_tieta/WebRoot/index.jsp
@@ -1582,28 +1582,42 @@
 	
 	// 鏅�氭満鎴挎弿杩�
 	function mapImgDescNormal(iconExplain) {
-		// 鏈烘埧钀藉悗
+		// 钀藉悗鏈烘埧
 		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
 		var input = $('<input type="checkbox" data-img="item-behind" checked="checked">');
+		var span = $('<span>鐢垫睜钀藉悗鏈烘埧</span>');
 		var icon = $('<img src="'+mapImages.behind+'">');
-		var span = $('<span>鐢垫睜缁勮惤鍚庢満鎴�</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-behind">0</a>');
 		iconList.append(input);
 		iconList.append(span);
 		iconList.append(icon);
+		iconList.append(badge);
 		iconExplain.append(iconList);
 		
-		// 鏈烘埧鍛婅
+		// 鍛婅鏈烘埧
 		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
 		var input = $('<input type="checkbox" data-img="item-warn" checked="checked">');
+		var span = $('<span>鐢垫睜鍛婅鏈烘埧</span>');
 		var icon = $('<img src="'+mapImages.warn+'">');
-		var span = $('<span>鐢垫睜缁勫憡璀︽満鎴�</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-warn">0</a>');
 		iconList.append(input);
 		iconList.append(span);
 		iconList.append(icon);
+		iconList.append(badge);
 		iconList.append('<div class="clear"></div>');
 		iconExplain.append(iconList);
 		
-		
+		// 鎺夌珯鏈烘埧
+		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
+		var input = $('<input type="checkbox" data-img="item-down" checked="checked">');
+		var icon = $('<img src="'+mapImages.timeout+'">');
+		var span = $('<span>鎺夌珯鏈烘埧</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-down">0</a>');
+		iconList.append(input);
+		iconList.append(span);
+		iconList.append(icon);
+		iconList.append(badge);
+		//iconExplain.append(iconList);
 		
 		// 鏈烘埧寤舵椂
 		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
@@ -1613,16 +1627,18 @@
 		iconList.append(input);
 		iconList.append(span);
 		iconList.append(icon);
-		iconExplain.append(iconList);
+		//iconExplain.append(iconList);
 		
 		// 鍋滅數鏈烘埧
 		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
 		var input = $('<input type="checkbox" data-img="item-poff" checked="checked">');
 		var icon = $('<img src="'+mapImages.powercut+'">');
 		var span = $('<span>鍋滅數鏈烘埧</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-powercut">0</a>');
 		iconList.append(input);
 		iconList.append(span);
 		iconList.append(icon);
+		iconList.append(badge);
 		iconExplain.append(iconList);
 		
 		// 姝e父鏈烘埧
@@ -1630,12 +1646,40 @@
 		var input = $('<input type="checkbox" data-img="item-normal" checked="checked">');
 		var icon = $('<img src="'+mapImages.normal+'">');
 		var span = $('<span>姝e父鏈烘埧</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-normal">0</a>');
 		iconList.append(input);
 		iconList.append(span);
 		iconList.append(icon);
+		iconList.append(badge);
 		iconExplain.append(iconList);
+		
+		// 缁埅涓嶈冻3灏忔椂鏈烘埧
+		var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
+		var input = $('<input type="checkbox" data-img="item-weak" checked="checked">');
+		var icon = $('<img src="'+mapImages.normal+'">');
+		var span = $('<span>缁埅涓嶈冻3灏忔椂鏈烘埧</span>');
+		var badge = $('<a href="javascript:;" class="layui-badge-rim mrr8 badge-weak">0</a>');
+		iconList.append(input);
+		iconList.append(span);
+		iconList.append(icon);
+		iconList.append(badge);
+		//iconExplain.append(iconList);
+		
+		
 	}
 	
+	// 鏇存柊鍦板浘鍥炬爣badge鐨勫��
+	function updateMapIconBadge() {
+		var mapImgDesc = $('#mapImgDesc');
+		var behind = mapImgDesc.find('.badge-behind');		// 鐢垫睜钀藉悗鏈烘埧
+		var warn = mapImgDesc.find('.badge-warn');			// 鐢垫睜鍛婅鏈烘埧
+		var down = mapImgDesc.find('.badge-down');			// 鎺夌珯鏈烘埧
+		var powercut = mapImgDesc.find('.badge-powercut');	// 鍋滅數鏈烘埧
+		var normal = mapImgDesc.find('.badge-normal');		// 姝e父鏈烘埧
+		var weak = mapImgDesc.find('.badge-weak');			// 缁埅涓嶈冻3灏忔椂鏈烘埧
+	}
+	
+	
 	// 61850鎻忚堪
 	function mapImgDesc61850(iconExplain) {
 		// 鏍稿/鍋滅數鏀剧數
diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js
index cf9e222..d9071ea 100644
--- a/gx_tieta/WebRoot/pages/js/common.js
+++ b/gx_tieta/WebRoot/pages/js/common.js
@@ -464,6 +464,7 @@
 	gl.namespace('CMD.gprs');
 	gl.CMD.gprs.param = 145;
 	gl.CMD.gprs.signal = "CSQ";
+	gl.CMD.gprs.threadinfo = 0x17;
 })(jQuery, window, document, GLOBAL);
 
 // 鍦板浘淇℃伅

--
Gitblit v1.9.1