hdw
2018-11-06 649cab0a8fa2a97012acf9c941c4a0b0157cbdfc
gx_tieta/WebRoot/pages/js/common.js
@@ -453,6 +453,17 @@
   gl.CMD.e61850.stop = 83;               //停止测试
   gl.CMD.e61850.setDischargeParm = 40;            //设置参数
   gl.CMD.e61850.getDischargeParm = 41;            //获取参数
   //CMD下sys
   gl.namespace('CMD.sys');
   gl.CMD.sys.restart = 0x10;
   gl.CMD.sys.set = 0x81;
   gl.CMD.sys.get = 0x80;
   //CMD下gprs
   gl.namespace('CMD.gprs');
   gl.CMD.gprs.param = 145;
   gl.CMD.gprs.signal = "CSQ";
})(jQuery, window, document, GLOBAL);
// 地图信息
@@ -522,7 +533,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 +551,30 @@
      }
   }
   return rs;
}
//给GPRS发送指定的命令,获取AT返回值
function searchStationSignal(param,callback){
   $.ajax({
        type:"post",
        url: "Bts_gprs_stateAction_action_update?"+(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);
         }
       }
   });
}