| | |
| | | <table>
|
| | | <tr>
|
| | | <td id="ele_content">
|
| | | <!-- 机房数电池组数 -->
|
| | | <div id="mach_num">
|
| | | <s:text name="Room_num"></s:text>:<span id="room_num"></span>; <s:text name="Batt_group_num"></s:text>:<span id="batt_group_num"></span>
|
| | | <div style="float: right; margin-right: 5px"><i class="fa"></i></div>
|
| | | </div>
|
| | | <!--电池组菜单栏-->
|
| | | <div id="lside">
|
| | |
|
| | |
| | | var winHt = $(window).height();
|
| | | var bodyHt = $('body').height();
|
| | | var batt_listen = $('#ele_content .batt-listen').height();
|
| | | //console.info('*****');
|
| | | //console.info(batt_listen);
|
| | | var shiftHt = winHt - bodyHt;
|
| | | var graph = $('.graph').height();
|
| | | var lSide = $('#lside').height();
|
| | |
| | | var unit = "";
|
| | | if(lname == 'Voltage'){
|
| | | unit ="V";
|
| | | max = batt.MonVolStd*1.25;
|
| | | /* max = batt.MonVolStd*1.25;
|
| | | var tempmax = Math.max.apply( Math, array);
|
| | | if(tempmax > max){
|
| | | max = tempmax*1.25;
|
| | | } |
| | | } */ |
| | | max = Math.max.apply( Math, array)*1.1;
|
| | | max = max.toFixed(3);
|
| | | }else if(lname == 'Resistance'){
|
| | | unit = "mΩ";
|
| | | max = (batt.MonResStd*1.25);
|
| | | /* max = (batt.MonResStd*1.25);
|
| | | max = 10;
|
| | | var tempmax = Math.max.apply( Math, array)*1.25;
|
| | | if(tempmax<max){
|
| | | max = tempmax;
|
| | | }
|
| | | } */
|
| | | max = Math.max.apply( Math, array)*1.1;
|
| | | max = (max).toFixed(3);
|
| | | }else if(lname == 'Temperature'){
|
| | | unit = "℃";
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.5).toFixed(3);
|
| | | }else if(lname == 'Conductance'){
|
| | | max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | //max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }else if(lname == 'MonJHCurr') {
|
| | | unit = "mA";
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }
|
| | | //console.info("max:"+max+" min:"+min);
|
| | | if(lname=='Resistance' || lname=='Temperature'){
|
| | |
| | | var array = getArray(lname);
|
| | | var batt = getBatt();
|
| | | var min = (Math.min.apply( Math, array)*0.9).toFixed(3);
|
| | | var max = 0 ;
|
| | | var max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | //console.info(batt);
|
| | | if(lname == 'Voltage'){
|
| | | max = (batt.MonVolStd*1.25).toFixed(3); |
| | | //max = (batt.MonVolStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3); |
| | | }else if(lname == 'Resistance'){
|
| | | //max = (batt.MonResStd*1.25).toFixed(3);
|
| | | max =10;
|
| | | //max =10;
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }else if(lname == 'Temperature'){
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.5).toFixed(3);
|
| | | }else if(lname == 'Conductance'){
|
| | | max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | //max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }
|
| | | //console.info("max:"+max+" min:"+min);
|
| | | if(lname=='Resistance' || lname=='Temperature'){
|
| | |
| | |
|
| | | //根据当前选中的电池组id获取当前电池组的信息
|
| | | function getBatt(){
|
| | | if(battinlist!=undefined && BattGroupId!=undefined){
|
| | | /* if(battinlist!=undefined && BattGroupId!=undefined){
|
| | | for(var i=0;i<battinlist.length;i++){
|
| | | for(var k=0;k<battinlist[i].length;k++){
|
| | | if(BattGroupId==battinlist[i][k].BattGroupId){
|
| | | console.info(battinlist);
|
| | | return battinlist[i][k];
|
| | | }
|
| | | }
|
| | | }
|
| | | } */
|
| | | var activeFile = $('.whyc-sider-menu .sider-menu-file.active');
|
| | | if(activeFile.length == 1) {
|
| | | return activeFile.data('attr');
|
| | | }else {
|
| | | return undefined;
|
| | | }
|
| | | return undefined;
|
| | | |
| | | }
|
| | |
|
| | | //将指定列中的与value相等的值的单元格变为红色
|
| | |
| | |
|
| | | // 实时-历史切换定位到具体电池组
|
| | | $(function() {
|
| | | $('body').on('click', '#nav a[href="charge-test.jsp"]', function() {
|
| | | $('body').on('click', '#nav a[href="charge-test.jsp"]', function(event) {
|
| | | var batt = getBatt();
|
| | | $(this).attr('href', 'charge-test.jsp?battgroupId='+BattGroupId+"&stationId="+batt.StationId);
|
| | | var province = batt.StationName1;
|
| | | var city = batt.StationName2;
|
| | | var home = batt.StationName;
|
| | | $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | var third = GLOBAL.pages.siderbar.third; // 三级导航
|
| | | var fourth = GLOBAL.pages.siderbar.fourth; // 四级导航
|
| | | var treeView = new TreeView($('#lside'));
|
| | | $('#lside').width($('#ele_content').width());
|
| | | treeView.setContainer();
|
| | | // 设置容器可拖动
|
| | | $('#ele_content').resizable({
|
| | | handles: 'e',
|
| | |
| | | third(treeView, $(this).parent(), city);
|
| | | });
|
| | |
|
| | | battinlist = [];
|
| | | // 机房->电池组
|
| | | treeView.ele.on('click', '.home', function() {
|
| | | var home = $(this).data('attr');
|
| | | var tmp = {
|
| | | StationName1: home.StationName1,
|
| | | StationName2: home.StationName2,
|
| | | StationName: home.StationName,
|
| | | StationId: home.StationId
|
| | | };
|
| | | console.info(tmp);
|
| | | fourth(treeView, $(this).parent(), tmp);
|
| | | });
|
| | | |
| | | // 电池组
|
| | | treeView.ele.on('click', '.eleGroup', function() {
|
| | | var eleGroup = $(this).data('attr');
|
| | | // 根据BattGroupId查询数据
|
| | | if(BattGroupId != eleGroup.BattGroupId) {
|
| | | BattGroupId = eleGroup.BattGroupId;
|
| | | // 对BTS9611做特殊的处理
|
| | | var batt = getBatt();
|
| | | //console.info(batt);
|
| | | $('#eleCircleBtn').removeClass('hide');
|
| | | if(regEquipType(batt.FBSDeviceId, globalPattern.BTSSreen)) {
|
| | | var isAct = $('#eleCircleBtn').hasClass('action');
|
| | | if(isAct) {
|
| | | lname = 'Voltage';
|
| | | $('#'+lname).addClass('action');
|
| | | }
|
| | | |
| | | $('#eleCircleBtn').removeClass('action').addClass('hide');
|
| | | $('.ele-circle').hide();
|
| | | $('.graph').show();
|
| | | myChart.resize();
|
| | | }
|
| | | mygraph.ischange = 1; //重新绘制拓扑图
|
| | | |
| | | getBattStr();
|
| | | searchBattAlarmParam(); //查询电池告警参数
|
| | | clearInterval(time);
|
| | | showtable();
|
| | | time=window.setInterval("showtable()",4000);
|
| | | }
|
| | | });
|
| | | });
|
| | | </script>
|
| | | <script type="text/javascript" src="js/Title.js"></script>
|