| | |
| | | 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);
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | val:_data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | county: _data.stationName5,
|
| | | home: _data.stationName,
|
| | | isCharge:0
|
| | | });
|
| | |
| | | val: _data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | county: _data.stationName5,
|
| | | home: _data.stationName,
|
| | | isCharge:1
|
| | | });
|
| | |
| | | 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());
|
| | |
| | | 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 = [];
|
| | | // 机房->电池组
|
| | |
| | | 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);
|
| | | });
|
| | |
|
| | | // 电池组
|
| | |
| | | province: battInfo.province,
|
| | | city: battInfo.city,
|
| | | home: battInfo.home,
|
| | | county: battInfo.county,
|
| | | homeid: battInfo.note,
|
| | | battid: battInfo.val
|
| | | };
|
| | |
| | | province: batt.StationName1,
|
| | | city: batt.StationName2,
|
| | | home: batt.StationName,
|
| | | county: batt.StationName5,
|
| | | homeid: batt.StationId,
|
| | | battid: batt.BattGroupId
|
| | | };
|