hdw
2018-09-26 edcc62a5ab482f187e8d57af61c0f5a54b0b35b6
gx_tieta/WebRoot/charge-test.jsp
@@ -25,8 +25,8 @@
<link href="css/loading.css" type="text/css" rel="stylesheet" />
<link href="jqueryui/jquery-ui.css" type="text/css" rel="stylesheet" />
<link href="css/collapse.css" type="text/css" rel="stylesheet" />
 <link rel="stylesheet" type="text/css" href="css/confirm.css">
<link rel="stylesheet" type="text/css" href="css/confirm.css">
<link rel="stylesheet" href="css/common.css">
<!-- font-awesome-4.7.0 -->
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="js/echarts2.js"></script>
@@ -542,6 +542,7 @@
<script type="text/javascript" src="js/collapse.js"></script>
<script type="text/javascript" src="js/charge.js"></script>
<script type="text/javascript" src="js/myConfirm.js"></script>            <!-- 确认框 -->
<script type="text/javascript" src="pages/js/pages/siderbar.js"></script>
<script type="text/javascript">
   var permits;
   <%   Object obj=session.getAttribute("permits");
@@ -1924,7 +1925,7 @@
      
      //根据当前选中的电池组id查询当前电池组的基本信息
      function getBattinfById(){
         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){
@@ -1933,7 +1934,13 @@
               }
            }
         }
         return undefined;
         return undefined; */
         var activeFile = $('.whyc-sider-menu .sider-menu-file.active');
         if(activeFile.length == 1) {
            return activeFile.data('attr');
         }else {
            return undefined;
         }
      }
      
      function clearfourPicture(){
@@ -3728,7 +3735,7 @@
      });
   });
   searchAll_lowAction();         //获取阀值
   seachAllStation();
   //seachAllStation();
   //查询所有机房
   function seachAllStation(){
      $.ajax({    
@@ -4598,5 +4605,85 @@
       var cont = '当前电池组的标称容量:<input style="border: 1px solid #ccc;height: 24px;" type="text" value="'+batt.MonCapStd+'" class ="batt-moncapstd">AH';
        myConfirm.show({content: cont, class: 'show-historydata'});
   }
   // siderbar模块
   $(function() {
      var TreeView = GLOBAL.pages.TreeView;
      var first = GLOBAL.pages.siderbar.first;   // 一级导航
      var second = GLOBAL.pages.siderbar.second;   // 二级导航
      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',
         maxWidth: 520,
         minWidth: 200,
         alsoResize: $('#lside'),
         resize:function() {
            treeView.setContainer();
         }
      });
      // 生成一级导航-省
      first(treeView, treeView.container);
      // 省->市
      treeView.ele.on('click', '.province', function() {
         var province = $(this).data('attr');
         second(treeView, $(this).parent(), province);
      });
      // 市->机房
      treeView.ele.on('click', '.city', function() {
         var city = $(this).data('attr');
         third(treeView, $(this).parent(), city);
      });
      battinlist = [];
      // 机房->电池组
      treeView.ele.on('click', '.home', function() {
         var home = $(this).data('attr');
         var tmp = {
            StationId: home.StationId
         };
         fourth(treeView, $(this).parent(), tmp);
      });
      // 电池组
      treeView.ele.on('click', '.eleGroup', function() {
         var eleGroup = $(this).data('attr');
         // 初始化特殊设备的图标
         initSpecialGraphLine();
         //显示电池的详细信息
         $('#address_infor').text($(this).parent().parent().parent().parent().siblings().first().text()+"-"+$(this).parent().parent().siblings().first().text()+"-"+$(this).text());
         var fbsId = eleGroup.FBSDeviceId;
         var isSpecial = regFbsId(fbsId);
         $('.special-mon-data').removeClass('show');
         BattGroupId=$(this).attr("id");
         if(isSpecial) {
            $('.special-mon-data').addClass('show');
            var temp = {
               BattGroupId:$(this).attr("id")
            };
            searchMonTestInfo(temp);
            resizeSpecailGraph();
         }else {
            getBattStr();
            findBattinfObj();
            AllBataDate=new Array();
            clearfourPicture();
            findBatttestdata_infByBattGroupId();
            searchAll_lowAction();         //获取阀值
         }
         // 设置记录的笔数为-1
         $('#testrecordcout').val('-1');
      });
   });
</script>
</html>