| | |
| | | <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">
|
| | |
| | | }
|
| | |
|
| | |
|
| | | seachAllStation();
|
| | | //seachAllStation();
|
| | | //查询所有机房
|
| | | function seachAllStation(){
|
| | | $.ajax({
|
| | |
| | | $(this).attr('href', 'charge-test.jsp?battgroupId='+BattGroupId+"&stationId="+batt.StationId);
|
| | | });
|
| | | });
|
| | | |
| | | |
| | | $(function() {
|
| | | $('#ele_content').resizable({
|
| | | minWidth: 240,
|
| | | maxWidth: 520,
|
| | | handles: 'e',
|
| | | edge: 10
|
| | | });
|
| | | });
|
| | | |
| | |
|
| | | $(function(){
|
| | | //启动查询电池充放电状态的线程
|
| | |
| | | $('.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>
|