From ca15e5b9de8200a020bd1e5dd62fff268ef13fed Mon Sep 17 00:00:00 2001 From: LiJun <LiJun@192.168.10.18> Date: 星期二, 06 十一月 2018 13:44:49 +0800 Subject: [PATCH] 修改首页上的图例上的机房停电改成停电机房 --- gx_tieta/WebRoot/index.jsp | 2 +- gx_tieta/WebRoot/zzlogin1.jsp | 38 +++++++++++++++++++++++++++++--------- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp index 8d57304..a21aa51 100644 --- a/gx_tieta/WebRoot/index.jsp +++ b/gx_tieta/WebRoot/index.jsp @@ -1570,7 +1570,7 @@ 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 span = $('<span>鍋滅數鏈烘埧</span>'); iconList.append(input); iconList.append(span); iconList.append(icon); diff --git a/gx_tieta/WebRoot/zzlogin1.jsp b/gx_tieta/WebRoot/zzlogin1.jsp index 18f5256..64ab255 100644 --- a/gx_tieta/WebRoot/zzlogin1.jsp +++ b/gx_tieta/WebRoot/zzlogin1.jsp @@ -86,23 +86,43 @@ var test = new Date('2018-09-03 14:49:00'); console.info((now.getTime()-test.getTime())/1000); - //鏍规嵁璁惧id淇敼璁惧鐨勫瓙缃戞帺鐮�,缃戝叧鍜岃澶噄p - var temp = { - media_text:"123" - }; - createBroadcast(temp); - function createBroadcast(param){ + var CMD_GETGPRSPARAM = 145; //鍙戦�佸懡浠ょ粰gprs + var CMD_GETSTATIONSIGNAL = "CSQ"; + + var temp = { + num:CMD_GETGPRSPARAM, + AT_cmd:CMD_GETSTATIONSIGNAL, + dev_id:910000577 + }; + console.info(JSON.stringify(temp)); + /* searchStationSignal(temp,function(data){ + console.info(data); + }); */ + + //缁橤PRS鍙戦�佹寚瀹氱殑鍛戒护锛岃幏鍙朅T杩斿洖鍊� + function searchStationSignal(param,callback){ $.ajax({ type:"post", - url: "BroadcastAction_media_createBroadcast", + url: "Bts_gprs_stateAction_action_update", async:true, dataType:'json', data:'json='+JSON.stringify(param), success: function(data){ var model = eval('('+data.result+')'); console.info(model); - setWarnAudio(model.data.media_name); + if(callback && typeof callback == 'function'){ + callback(model); + } + },error:function(e){ + var model = { + code:0, + data:e, + msg:'閫氫俊澶辫触' + }; + if(callback && typeof callback == 'function'){ + callback(model); + } } }); } @@ -122,7 +142,7 @@ echarts10_enable:0 }; - updateUserBieState(temp); + //updateUserBieState(temp); //鏌ヨ褰撳墠鐢ㄦ埛璁剧疆楗肩姸鍥剧殑浣胯兘鐘舵�� function updateUserBieState(temp){ $.ajax({ -- Gitblit v1.9.1