hdw
2018-10-23 2e5feddf5b4afc56e0e4842378a2fac13886c290
gx_tieta/WebRoot/elegroup.jsp
@@ -13,11 +13,43 @@
   <title><s:text name="Package_unit_manage"/></title>
   <link rel="stylesheet" type="text/css" href="css/basic.css">
   <link rel="stylesheet" type="text/css" href="css/elegroup.css">
   <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.css">
   <script type="text/javascript" src="js/frame.js"></script>
   <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
   <script type="text/javascript" src="js/base.js"></script>
   <style>
      .toolbar-fixed-top-right {
         position: absolute;
         top: 0;
         right: 0;
         z-index: 999;
      }
      .toolbar-fixed-top-right.right10 {
         right: 10px;
      }
      .toolbar-fixed-top-right.right20 {
         right: 20px;
      }
      .toolbar-fixed-top-right.top3 {
         top: 5px;
      }
      .toolbar-fixed-top-right select {
         font-size: 12px;
         height: 26px;
         vertical-align: top;
         border: 1px solid #ccc;
         margin-right: 4px;
      }
      .toolbar-fixed-top-right a.tool-btn{
         display: inline-block;
         margin-right: 10px;
         color: #000;
         font-size: 20px;
      }
      .toolbar-fixed-top-right a.tool-btn:hover {
         color: #1495E7;
      }
   </style>
</head>
<body>
   <!--头部内容开始-->
@@ -42,22 +74,16 @@
               </tr>
               <tr>
                  <td>
                     <select id="station_name1" name="">
                     </select>
                     <select id="station_name1" name=""></select>
                  </td>
                  <td>
                     <select id="city" name="">
                     </select>
                     <select id="city" name=""></select>
                  </td>
                  <td>
                     <select id="station_name" name="">
                     </select>
                     <select id="station_name" name=""></select>
                  </td>
                  <td>
                     <select id="battgroup_name" name="">
                     </select>
                     <select id="battgroup_name" name=""></select>
                  </td>
               </tr>
            </table>
@@ -72,6 +98,18 @@
      </div>
      <!-- 右上容器 -->
      <div id="rtop">
         <div class="toolbar-fixed-top-right top3 right20">
            <select name="addType" id="addType">
               <option value="0">全省机房</option>
               <option value="1">全市机房</option>
               <option value="2">单个机房</option>
               <option value="3">电池组</option>
            </select>
            <a href="javasscript:;" class="tool-btn" id="toolBtnAdd" title="添加"><i class="fa fa-plus"></i></a>
            <a href="javasscript:;" class="tool-btn" title="应用"><i class="fa fa-sticky-note-o"></i></a>
            <a href="javasscript:;" class="tool-btn" title="全选"><i class="fa fa-check-square-o"></i></a>
            <a href="javasscript:;" class="tool-btn" title="移除"><i class="fa fa-trash-o"></i></a>
         </div>
         <table style="width:100%">
            <thead>
               <tr>
@@ -1781,5 +1819,41 @@
      _rsObj.tblAttr = _rsId;
      return _rsObj;
   }
   // 给模块添加工具条
   $(function() {
      $('.toolbar-fixed-top-right').tooltip();
      // 点击添加按钮
      $('#toolBtnAdd').click(function() {
         var baoji = $('#lbottom .li-con li.b8cfe5').text();
         if(baoji.length == 0) {
            alert('请选择左下方的包机组!!!');
         }else {
            var addType = $('#addType').val();
            addBattGroup(addType);
         }
      });
      // 根据选择的添加电池组
      function addBattGroup(num) {
         switch(num) {
            case '0':   // 添加全省
               $('#tb-right-menu .add-province').click();
            break;
            case '1':
               $('#tb-right-menu .add-city').click();
            break;
            case '2':
               $('#tb-right-menu .add-station').click();
            break;
            case '3':
               $('#tb-right-menu .add-batt').click();
            break;
         }
      }
      //
   });
</script>
</html>