| | |
| | | .mr250 {
|
| | | margin-left: -250px;
|
| | | }
|
| | | .page-link {
|
| | | cursor: pointer;
|
| | | }
|
| | | .page-link:hover {
|
| | | color: #1495E7;
|
| | | }
|
| | | .page-link:active {
|
| | | color: #FF0000;
|
| | | }
|
| | | i.fa.f-size16 {
|
| | | font-size: 16px;
|
| | | vertical-align: middle;
|
| | | }
|
| | | </style>
|
| | |
|
| | | </head>
|
| | |
| | | <a href="javascript:void(0);" id="signalBtn" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <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>
|
| | |
| | | </tr>
|
| | | <tr>
|
| | | <th><s:text name="Booster"/><s:text name="Upper_limit"/><!-- 升压上限 -->(V)</th>
|
| | | <th><s:text name="Charging_current"/><!-- 充电电流 -->(A)</th>
|
| | | <th id="ChargeCurrSetLabel"><s:text name="Charging_current"/><!-- 充电电流 -->(<span class="val-range"></span>A)<i class="fa fa-edit page-link f-size16" title="修改充电电流范围"></i></th>
|
| | | </tr>
|
| | | <tr>
|
| | | <td><input id="DCVolHighLimit" type="text" value="0"><i class="fa fa-frown-o error-img" title="数据格式错误"></i></td>
|
| | |
| | | </div>
|
| | | </div>
|
| | | <div class="popup-footer">
|
| | | <input type="button" name="" id="btn_start_test" class="status-change-btn whyc-btn-disabled" value="启动测试" > <!-- 启动测试 -->
|
| | | <input type="button" name="" id="btn_start_test" class="status-change-btn whyc-btn-disabled no-remove-disabled" value="启动测试" > <!-- 启动测试 -->
|
| | | <input type="button" name="" id="btn_flush" value="读取" > <!-- 读取 -->
|
| | | <input type="button" name="" id="btn_ensure" class="status-change-btn whyc-btn-disabled" value="设定" > <!-- 设定 -->
|
| | | <!-- <input type="button" name="" id="bts_graph" value="拓扑图"> -->
|
| | |
| | | <script type="text/javascript" src="js/elecircle.js"></script>
|
| | | <script type="text/javascript" src="js/elecircle.content.js"></script>
|
| | | <script type="text/javascript" src="pages/js/pages/homeInfo.js"></script>
|
| | | <script type="text/html" id="setChargeCurrTpl">
|
| | | |
| | | </script>
|
| | | <script type="text/javascript">
|
| | | var permits;
|
| | | <% Object obj=session.getAttribute("permits");
|
| | |
| | | sysSet_popup.hidePopup(); // 隐藏sysSet_popup弹出框和遮罩层
|
| | | });
|
| | |
|
| | | // bts面板充电电流编辑
|
| | | $('#ChargeCurrSetLabel .fa-edit').click(function() {
|
| | | var batt =getBatt();
|
| | | //console.log(batt);
|
| | | // 设置面板
|
| | | layer.open({
|
| | | type: 1
|
| | | ,title: '设置充电电流阀值'
|
| | | , content: '<div style="width:300px; height: 50px;"><div style="margin-top: 20px;margin-left: 8px; margin-right: 8px;">'+
|
| | | '<input type="text" style="width: 100%; height:32px; border: 1px solid #ccc;" id="setChargeCurrVal" value="">'+
|
| | | '</div></div>'
|
| | | ,btn:['设置', '取消']
|
| | | ,yes: function(index) {
|
| | | var chargeCurrVal = $('#setChargeCurrVal').val();
|
| | | var num = Number(chargeCurrVal);
|
| | | if(isNaN(num) || num==0) {
|
| | | layer.msg('请输入数字');
|
| | | return;
|
| | | }
|
| | | var tmp = {
|
| | | charge_curr_max: num
|
| | | ,BattGroupId: batt.BattGroupId
|
| | | }; |
| | | var load;
|
| | | // 请求设置电流的后台
|
| | | $.ajax({
|
| | | type: 'post'
|
| | | ,async: true
|
| | | ,url: 'BattInfAction!update_charge'
|
| | | ,data: 'json='+JSON.stringify(tmp)
|
| | | ,dataType: 'json'
|
| | | ,beforeSend: function(){
|
| | | load = layer.load(1);
|
| | | }
|
| | | ,success: function(res) {
|
| | | var rs = JSON.parse(res.result);
|
| | | // 关闭等待框
|
| | | layer.close(load);
|
| | | //console.log(rs);
|
| | | if(rs.code == 1) {
|
| | | // 设置弹出框信息
|
| | | layer.msg('设置成功!');
|
| | | layer.close(index);
|
| | | // 充电电流
|
| | | $('#ChargeCurrSet').testVal('option', 'allOpts', {
|
| | | regVal: true
|
| | | ,update: true
|
| | | ,min: 0
|
| | | ,max: num
|
| | | ,msg: '取值范围0~'+num+'A'
|
| | | });
|
| | | |
| | | // 设置文本值
|
| | | $('#ChargeCurrSetLabel .val-range').text('0~'+num);
|
| | | }else {
|
| | | layer.msg('设置失败!请重新设置');
|
| | | }
|
| | | }
|
| | | |
| | | });
|
| | | } |
| | | });
|
| | | });
|
| | |
|
| | | // 窗口大小改变
|
| | | $(window).resize(function() {
|
| | |
| | | //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});
|
| | | });
|
| | | });
|
| | | |
| | | |
| | | |
| | | |
| | | //给GPRS发送指定的命令,获取AT返回值
|
| | | 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);
|
| | | }
|
| | | } |
| | | });
|
| | | }
|
| | | |
| | | });
|
| | |
|
| | | // 机历卡模块
|