| | |
| | | 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'){
|
| | |
| | |
|
| | | // 实时-历史切换定位到具体电池组
|
| | | $(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);
|
| | | });
|
| | | });
|
| | |
|