| | |
| | | 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 treeView = new TreeView($('#lside'));
|
| | | $('#lside').width($('#ele_content').width());
|
| | | treeView.setContainer();
|
| | |
| | | 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 city = $(this).data('attr');
|
| | | fourth(treeView, $(this).parent(), city);
|
| | | });
|
| | | |
| | | |
| | |
|
| | | 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);
|
| | | });
|
| | |
|
| | | // 电池组
|