hdw
2018-09-25 eebd20ba0a4306cd65deae6775c1b6d12aa9435c
gx_tieta/WebRoot/control.jsp
@@ -15,6 +15,7 @@
   <link href="css/basic.css" type="text/css" rel="stylesheet" />
   <link href="css/control_style.css" type="text/css" rel="stylesheet" />
   <link rel="stylesheet" href="css/BrdwMaint.css">
   <link rel="stylesheet" href="css/common.css">
   <link href="jqueryui/jquery-ui.css" type="text/css" rel="stylesheet" />
   <!-- <link rel="stylesheet" type="text/css" href="css/popup.css"> -->
   <link rel="stylesheet" type="text/css" href="css/popup-tbl.css">
@@ -1112,7 +1113,7 @@
      }
      
      
      seachAllStation();
      //seachAllStation();
      //查询所有机房
      function seachAllStation(){
         $.ajax({    
@@ -2673,17 +2674,6 @@
            $(this).attr('href', 'charge-test.jsp?battgroupId='+BattGroupId+"&stationId="+batt.StationId);
         });
      });
      $(function() {
         $('#ele_content').resizable({
            minWidth: 240,
            maxWidth: 520,
            handles: 'e',
            edge: 10
         });
      });
   
   $(function(){
      //启动查询电池充放电状态的线程
@@ -3945,6 +3935,51 @@
         $('.confirm').hide();
         $('.confirm-mask').hide();
      }
      // 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'));
         // 设置容器可拖动
         $('#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);
         });
         // 机房->电池组
         treeView.ele.on('click', '.home', function() {
            var home = $(this).data('attr');
            var tmp = {
               StationId: home.StationId
            };
            console.info(tmp);
            fourth(treeView, $(this).parent(), tmp);
         });
      });
   </script>
   <script type="text/javascript" src="js/Title.js"></script>
   <script type="text/javascript" src="js/control.js"></script>