hdw
2018-10-30 702466cfeeb2553182df8d92996b64fe8e9693be
gx_tieta/WebRoot/charge-test.jsp
@@ -3245,8 +3245,9 @@
         var batt = getBattinfById();
         var province = batt.StationName1;
         var city = batt.StationName2;
         var county = batt.StationName5;
         var home = batt.StationName;
         $(this).attr('href', 'control.jsp?province='+province+'&city='+city+'&home='+home);
         $(this).attr('href', 'control.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home);
      });
   }); 
   
@@ -3563,6 +3564,7 @@
                        val:_data.BattGroupId,
                        province: _data.stationName1,
                        city: _data.stationName2,
                        county: _data.stationName5,
                        home: _data.stationName,
                        isCharge:0
                     });
@@ -3572,6 +3574,7 @@
                        val: _data.BattGroupId,
                        province: _data.stationName1,
                        city: _data.stationName2,
                        county: _data.stationName5,
                        home: _data.stationName,
                        isCharge:1
                     });
@@ -4608,6 +4611,7 @@
      var second = GLOBAL.pages.siderbar.second;   // 二级导航
      var third = GLOBAL.pages.siderbar.third;   // 三级导航
      var fourth = GLOBAL.pages.siderbar.fourth;   // 四级导航
      var fifth = GLOBAL.pages.siderbar.fifth;   // 五级导航
      var localSideBar = GLOBAL.pages.siderbar.localSideBar;   // 定位机房
      var treeView = new TreeView($('#lside'));
      $('#lside').width($('#ele_content').width());
@@ -4632,11 +4636,18 @@
         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', '.county', function() {
         var county = $(this).data('attr');
         fourth(treeView, $(this).parent(), county);
      });
      
      battinlist = [];
      // 机房->电池组
@@ -4645,10 +4656,11 @@
         var tmp = {
            StationName1: home.StationName1,
            StationName2: home.StationName2,
            StationName5: home.StationName5,
            StationName: home.StationName,
            StationId: home.StationId
         };
         fourth(treeView, $(this).parent(), tmp);
         fifth(treeView, $(this).parent(), tmp);
      });
      
      // 电池组
@@ -4695,6 +4707,7 @@
            province: battInfo.province,
            city: battInfo.city,
            home: battInfo.home,
            county: battInfo.county,
            homeid: battInfo.note,
            battid: battInfo.val
         };
@@ -4711,6 +4724,7 @@
            province: batt.StationName1,
            city: batt.StationName2,
            home: batt.StationName,
            county: batt.StationName5,
            homeid: batt.StationId,
            battid: batt.BattGroupId
         };