hdw
2018-10-30 702466cfeeb2553182df8d92996b64fe8e9693be
gx_tieta/WebRoot/control.jsp
@@ -2896,8 +2896,9 @@
            var batt = getBatt();
            var province = batt.StationName1;
            var city = batt.StationName2;
            var county = batt.StationName5;
            var home = batt.StationName;
            $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&home='+home);
            $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home);
         });
      });
   
@@ -2932,6 +2933,7 @@
                        val:_data.BattGroupId,
                        province: _data.stationName1,
                        city: _data.stationName2,
                        county: _data.stationName5,
                        home: _data.stationName,
                        isCharge:0
                     });
@@ -2941,6 +2943,7 @@
                        val: _data.BattGroupId,
                        province: _data.stationName1,
                        city: _data.stationName2,
                        county: _data.stationName5,
                        home: _data.stationName,
                        isCharge:1
                     });
@@ -4111,6 +4114,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());
@@ -4135,10 +4139,16 @@
            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 = [];
@@ -4148,10 +4158,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);
         });
         
         // 电池组
@@ -4238,6 +4249,7 @@
            var tmp = {
               province: batt.StationName1,
               city: batt.StationName2,
               county: batt.StationName5,
               home: batt.StationName,
               homeid: batt.StationId,
               battid: batt.BattGroupId
@@ -4281,11 +4293,12 @@
            var tmp = {
               province: battInfo.province,
               city: battInfo.city,
               county: battInfo.county,
               home: battInfo.home,
               homeid: battInfo.note,
               battid: battInfo.val
            };
            //console.log(tmp);
            localSideBar(treeView, treeView.container, tmp);
         });