| | |
| | |
|
| | | mapEle.parent().append(iconExplain);
|
| | |
|
| | | // 统计机房状态个数
|
| | | updateMapIconBadge();
|
| | | |
| | | // 设置地图图标种类
|
| | | setMapImgStyles();
|
| | | }
|
| | |
| | | iconList.append(span);
|
| | | iconList.append(icon);
|
| | | iconList.append(badge);
|
| | | //iconExplain.append(iconList);
|
| | | iconExplain.append(iconList);
|
| | |
|
| | | // 机房延时
|
| | | var iconList = $('<div class="explain-list" style="padding: 4px 6px; border-bottom: 1px slid #ccc; display:block"></div>');
|
| | |
| | | iconList.append(input);
|
| | | iconList.append(span);
|
| | | iconList.append(icon);
|
| | | iconList.append(badge);
|
| | | //iconList.append(badge);
|
| | | iconExplain.append(iconList);
|
| | |
|
| | | // 续航不足3小时机房
|
| | |
| | | iconList.append(icon);
|
| | | iconList.append(badge);
|
| | | //iconExplain.append(iconList);
|
| | | |
| | | |
| | | }
|
| | |
|
| | | // 更新地图图标badge的值
|
| | |
| | | var powercut = mapImgDesc.find('.badge-powercut'); // 停电机房
|
| | | var normal = mapImgDesc.find('.badge-normal'); // 正常机房
|
| | | var weak = mapImgDesc.find('.badge-weak'); // 续航不足3小时机房
|
| | | console.log(warn.length);
|
| | | // 请求后台数据
|
| | | $.ajax({
|
| | | type: 'post'
|
| | | ,async: true
|
| | | ,url: 'Bts_station_stateAction_action_serchStationState'
|
| | | ,data: null
|
| | | ,dataType: 'json'
|
| | | ,success:function(res) {
|
| | | var rs = JSON.parse(res.result);
|
| | | //console.log(rs);
|
| | | powercut.text(rs.sum); // 停电数
|
| | | down.text(rs.code); // 掉站数
|
| | | behind.text(rs.msgN); // 落后机房
|
| | | warn.text(rs.msg); // 告警机房
|
| | | |
| | | /* var normalNum = Number(rs.newsum) - (Number(rs.sum)+Number(rs.code)+Number(rs.msgN)+Number(rs.msg));
|
| | | normal.text(normalNum); */ // 正常机房
|
| | | }
|
| | | });
|
| | | |
| | | }
|
| | |
|
| | |
|