|
@@ -1362,3 +1362,72 @@ var showInfo = function(e) {
|
|
|
if (StatusStore[i].d1o == 0)
|
|
|
$("#device_count_num_14").html('100%');
|
|
|
else
|
|
|
+ $("#device_count_num_14").html(toDecimal(StatusStore[i].d1oc * 100 / StatusStore[i].d1o) + '%');
|
|
|
+ $("#dev2_count").html(StatusStore[i].d7);
|
|
|
+ $("#device_count_num_22").html(StatusStore[i].d7oc);
|
|
|
+ $("#dev2-label-hidden").html(StatusStore[i].d7o - StatusStore[i].d7oc);
|
|
|
+ $("#device_count_num_23").html(StatusStore[i].d7o - StatusStore[i].d7oc);
|
|
|
+ if (StatusStore[i].d7o == 0)
|
|
|
+ $("#device_count_num_24").html('100%');
|
|
|
+ else
|
|
|
+ $("#device_count_num_24").html(toDecimal(StatusStore[i].d7oc * 100 / StatusStore[i].d7o) + '%');
|
|
|
+ $("#dev3_count").html(StatusStore[i].d2);
|
|
|
+ $("#device_count_num_32").html(StatusStore[i].d2oc);
|
|
|
+ $("#dev3-label-hidden").html(StatusStore[i].d2o - StatusStore[i].d2oc);
|
|
|
+ $("#device_count_num_33").html(StatusStore[i].d2o - StatusStore[i].d2oc);
|
|
|
+ if (StatusStore[i].d2o == 0)
|
|
|
+ $("#device_count_num_34").html('100%');
|
|
|
+ else
|
|
|
+ $("#device_count_num_34").html(toDecimal(StatusStore[i].d2oc * 100 / StatusStore[i].d2o) + '%');
|
|
|
+
|
|
|
+ if (StatusStore[i].d1o != 0) {
|
|
|
+ $("#device_confirm_14").css('width', (300 * StatusStore[i].d1oc / StatusStore[i].d1o) + 'px');
|
|
|
+ } else
|
|
|
+ $("#device_confirm_14").css('width', '300px');
|
|
|
+ if (StatusStore[i].d7o != 0)
|
|
|
+ $("#device_confirm_24").css('width', (300 * StatusStore[i].d7oc / StatusStore[i].d7o) + 'px');
|
|
|
+ else
|
|
|
+ $("#device_confirm_24").css('width', '300px');
|
|
|
+ if (StatusStore[i].d2o != 0)
|
|
|
+ $("#device_confirm_34").css('width', (300 * StatusStore[i].d2oc / StatusStore[i].d2o) + 'px');
|
|
|
+ else
|
|
|
+ $("#device_confirm_34").css('width', '300px');
|
|
|
+
|
|
|
+ $(".alarm_tab_area").remove();
|
|
|
+ // if((AlarmStore!=null)&&(AlarmStore.length>0)){
|
|
|
+ // var parent = document.getElementById('container');
|
|
|
+ // AlarmStore.sort(alarmSortByTime);
|
|
|
+ // var area = document.createElement('div');
|
|
|
+ // area.id= 'alarm_tab_area';
|
|
|
+ // area.setAttribute('class','alarm_tab_area');
|
|
|
+ // parent.appendChild(area);
|
|
|
+ // for(var i=0;i<AlarmStore.length;i++){
|
|
|
+ // if(i>=6)
|
|
|
+ // break;
|
|
|
+ // var tab = document.createElement('div');
|
|
|
+ // tab.id = 'alarm_tab_'+(i+1);
|
|
|
+ // tab.setAttribute('class','alarm_tab');
|
|
|
+ // tab.setAttribute('onclick',(AlarmStore[i].dwtype==1)?'show_all_fireAlarm()':
|
|
|
+ // (AlarmStore[i].dwtype==2)?'show_all_waterAlarm()':
|
|
|
+ // (AlarmStore[i].dwtype==5)?'show_all_waterAlarm()':
|
|
|
+ // (AlarmStore[i].dwtype==6)?'show_all_rtuAlarm()':
|
|
|
+ // (AlarmStore[i].dwtype==7)?'show_all_efireAlarm()':'#');
|
|
|
+ // tab.style.top=(120*i)+'px';
|
|
|
+ // if(($(document).innerHeight()-205)>(120*(i+1)))
|
|
|
+ // $('#alarm_tab_area').css('height',($(document).innerHeight()-205)+'px');
|
|
|
+ // else
|
|
|
+ // $('#alarm_tab_area').css('height',($(document).innerHeight()-205)+'px');
|
|
|
+ // area.appendChild(tab);
|
|
|
+ // var title = document.createElement('div');
|
|
|
+ // title.id = 'alarm_tab_title_'+(i+1);
|
|
|
+ // title.setAttribute('class','alarm_tab_title');
|
|
|
+ // title.innerHTML=(AlarmStore[i].dwtype==1)?'火警监测报告':
|
|
|
+ // (AlarmStore[i].dwtype==2)?'水系统监测报告':
|
|
|
+ // (AlarmStore[i].dwtype==5)?'水系统监测报告':
|
|
|
+ // (AlarmStore[i].dwtype==6)?'RTU监测报告':
|
|
|
+ // (AlarmStore[i].dwtype==7)?'电气火灾监测报告':'其他报告';
|
|
|
+ // tab.appendChild(title);
|
|
|
+ // var time_label = document.createElement('div');
|
|
|
+ // time_label.id = 'alarm_tab_time_'+(i+1);
|
|
|
+ // time_label.setAttribute('class','alarm_tab_time');
|
|
|
+ // time_label.innerHTML=AlarmStore[i].time;
|