| | |
| | | <div class="tools-btn">
|
| | | <a href="javascript:void(0);" id="setParamBtn" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <span class="whyc-btn-icon fa fa-play-circle"></span>
|
| | | <span class="whyc-btn-txt">启动核容测试</span>
|
| | | <span class="whyc-btn-txt">核容测试</span>
|
| | | </a>
|
| | | <br>
|
| | | <a href="javascript:void(0);" id="stopTest" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | |
| | | var model = eval("("+data.result+")");
|
| | | //console.log(model);
|
| | |
|
| | | |
| | | var outTime = 2*60; //设备超时时间(2分钟)
|
| | | var isOutTime = true; //通讯中断 判断设备是否通讯中断 true:中断 false:正常
|
| | | var batt = getBatt(); //获取当前选中的电池组
|
| | |
| | | //console.log(mygraph);
|
| | | //debugger;
|
| | | if(model.code == 1) {
|
| | | var _data = model.data[0]; |
| | | |
| | | var alarmstates = GLOBAL.BTS9100.alarmstates;
|
| | | var lastStopReason = getStateFromIndex(_data.dev_last_captest_stop_type,alarmstates);
|
| | | console.info("上一次核容测试停止原因:"+lastStopReason);
|
| | | console.info("通信计数:"+_data.dev_commcount);
|
| | | console.info("通信丢包率:"+(_data.dev_commcount==0?0:(_data.dev_errcommcount*100/_data.dev_commcount))); |
| | | |
| | | var nowTime = new Date().getTime(); //当前时间
|
| | | var record = new Date(model.data[0].record_datetime).getTime();
|
| | |
|
| | |
| | | function targetBattReport(){
|
| | | var batt = getBatt();
|
| | | var url = skipUrl("eleAnalyse.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
|
| | | //console.info(url);
|
| | | window.open(url);
|
| | | //window.open("eleAnalyse.jsp?battgroupId="+BattGroupId+"&stationId="+batt.StationId);
|
| | | }
|
| | | // 使用jquery实现左导航的显示和隐藏
|
| | | $(document).ready(function(){
|
| | |
| | | dev_id:910000577
|
| | | };
|
| | |
|
| | | |
| | | //根据索引获取状态
|
| | | function getStateFromIndex(index,statearr){
|
| | | var state = '无';
|
| | | if(index>0 && statearr && statearr.length>index){
|
| | | state = statearr[index];
|
| | | }
|
| | | return state;
|
| | | }
|
| | |
|
| | | /* searchStationSignal(temp,function(data){
|
| | | changeEleCircleOpt(eleCircle, 'signal', {
|