From 02ce7118d66a2a3a890f71e13e7b4c63b045ec06 Mon Sep 17 00:00:00 2001 From: CJJ <Administrator@192.168.10.25> Date: 星期五, 30 十一月 2018 17:10:17 +0800 Subject: [PATCH] 22222 --- gx_tieta/WebRoot/pages/js/common.js | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js index 517ea78..6587c43 100644 --- a/gx_tieta/WebRoot/pages/js/common.js +++ b/gx_tieta/WebRoot/pages/js/common.js @@ -453,6 +453,23 @@ gl.CMD.e61850.stop = 83; //鍋滄娴嬭瘯 gl.CMD.e61850.setDischargeParm = 40; //璁剧疆鍙傛暟 gl.CMD.e61850.getDischargeParm = 41; //鑾峰彇鍙傛暟 + + //CMD涓媠ys + gl.namespace('CMD.sys'); + gl.CMD.sys.restart = 0x10; + gl.CMD.sys.set = 0x81; + gl.CMD.sys.get = 0x80; + + //CMD涓媑prs + gl.namespace('CMD.gprs'); + gl.CMD.gprs.param = 145; + gl.CMD.gprs.signal = "CSQ"; + gl.CMD.gprs.threadinfo = 0x17; + + // CMD涓媌att + gl.namespace('CMD.batt'); + gl.CMD.batt.get = 0x36; // 鑾峰彇鐢垫睜鍙傛暟 + gl.CMD.batt.set = 0x37; // 璁剧疆鐢垫睜鍙傛暟 })(jQuery, window, document, GLOBAL); // 鍦板浘淇℃伅 @@ -522,7 +539,7 @@ str += '&battid='+battid; } if(monnum){ - str += '&monnum'+monnum; + str += '&monnum='+monnum; } //var str = page+'?province='+province+'&city='+city+'&county='+county+'&home='+home; return str; @@ -540,4 +557,30 @@ } } return rs; +} + +//缁橤PRS鍙戦�佹寚瀹氱殑鍛戒护锛岃幏鍙朅T杩斿洖鍊� +function searchStationSignal(param,callback){ + $.ajax({ + type:"post", + url: "Bts_gprs_stateAction_action_update?t="+(new Date().getTime()), + async:true, + dataType:'json', + data:'json='+JSON.stringify(param), + success: function(data){ + var model = eval('('+data.result+')'); + if(callback && typeof callback == 'function'){ + callback(model); + } + },error:function(e){ + var model = { + code:0, + data:e, + msg:'閫氫俊澶辫触' + }; + if(callback && typeof callback == 'function'){ + callback(model); + } + } + }); } \ No newline at end of file -- Gitblit v1.9.1