hdw
2018-11-28 af4137cbcd23ec8b0e94ddb9504e5c1eebaceee6
gx_tieta/WebRoot/control.jsp
@@ -1074,58 +1074,60 @@
      <div class="popup-title"><span>电池参数设置</span> <a href="javascript:;" class="close">X</a></div>
      <div class="popup-content">
         <div class="popup-tbl">
            <input type="hidden" id="battInfo_dev_id" value="">      <!-- dev_id -->
            <input type="hidden" id="battInfo_ip" value="">      <!-- IP地址 -->
            <table>
               <tbody>
                  <tr>
                     <th>机房ID</th>
                     <th>设备ID</th>
                     <th>机房名称</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_home_id"  readonly="readonly" value=""></td>
                     <td><input type="text" id="battInfo_fbs_id"  readonly="readonly" value=""></td>
                     <td><input type="text" id="battInfo_home_name" readonly="readonly" value=""></td>
                  </tr>
                  <tr>
                     <th>电池标称容量(AH)</th>
                     <th>电池标称内阻(uΩ)</th>
                     <th>电池标称容量(1~6000.0AH)</th>
                     <th>电池标称内阻(1~60000uΩ)</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_nom_cap" value=""></td>
                     <td><input type="text" id="battInfo_nom_res" value=""></td>
                  </tr>
                  <tr>
                     <th>电池组数</th>
                     <th>每组电池单体数量</th>
                     <th>电池组数(1~2)</th>
                     <th>每组电池单体数量(1~300 )</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_batt_num" value=""></td>
                     <td><input type="text" id="battInfo_batt_mon_num" value=""></td>
                  </tr>
                  <tr>
                     <th>单体标称电压(V)</th>
                     <th>电池组端标称电压(V)</th>
                     <th>单体标称电压(0.1~20.0V)</th>
                     <th>电池组端标称电压(0.1~600.0V)</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_batt_nom_vol" value=""></td>
                     <td><input type="text" id="battInfo_group_nom_vol" value=""></td>
                  </tr>
                  <tr>
                     <th>电池标称温度(℃)</th>
                     <th>电池浮充电压阀值(V)</th>
                     <th>电池标称温度(0.1~60.0℃)</th>
                     <th>电池浮充电压阀值(0.1~60.0V)</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_batt_nom_temp" value=""></td>
                     <td><input type="text" id="battInfo_batt_float_vol" value=""></td>
                  </tr>
                  <tr>
                     <th>电池浮充电流阀值(A)</th>
                     <th>在线电压低阀值(V)</th>
                     <th>电池浮充电流阀值(0.1~30.0A)</th>
                     <th>在线电压低阀值(0.1~60.0V)</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_batt_float_curr" value=""></td>
                     <td><input type="text" id="battInfo_online_low_vol" value=""></td>
                  </tr>
                  <tr>
                     <th>电池组连接类型</th>
                     <th>电池组连接类型(0~1)</th>
                  </tr>
                  <tr>
                     <td><input type="text" id="battInfo_batt_link_type" value=""></td>
@@ -1136,7 +1138,7 @@
      </div>
      <div class="popup-footer">
         <input type="button" name="" id="battInfo_read" value="读取" >                     
         <input type="button" name="" id="battInfo_en" class="status-change-set " value="设置" >
         <input type="button" name="" id="battInfo_en" class="status-change-set whyc-btn-disabled" value="设置" >
      </div>
   </div>
   
@@ -1247,6 +1249,7 @@
   <script type="text/javascript" src="js/dischargetest/bts.js"></script>
   <script type="text/javascript" src="js/dischargetest/4016.js"></script>
   <script type="text/javascript" src="js/dischargetest/sysData.js"></script>
   <script type="text/javascript" src="js/dischargetest/battData.js"></script>
   <script type="text/javascript" src="pages/js/pages/control-common.js"></script>
   <script type="text/javascript" src="pages/js/pages/siderbar.js"></script>
   <script type="text/javascript" src="js/rightmenu.js"></script>
@@ -5146,9 +5149,80 @@
         
         
         // 电池参数
         var battCMD = GLOBAL.CMD.batt;   // cmd命令
         var battPopup = GLOBAL.battInfoPopup; // 电池参数模块
         battPopup.testVal();   // 设置面板的取值范围
         $('#battInfoBtn').click(function() {
            battInfo_popup.showPopup();   // 显示battInfo_popup弹出框和遮罩层
            // 获取电池信息
            var batt = getBatt();
            var temp = {
               dev_id: batt.FBSDeviceId
            };
            // 查询电池参数面板信息
            var load = layer.load(1);
            battPopup.search(temp, batt, function(res, binf) {
               layer.close(load);
               battInfo_popup.showPopup();   // 显示battInfo_popup弹出框和遮罩层
            });
         });
         // 点击设定
         $('#battInfo_en').click(function() {
            if($(this).hasClass('whyc-btn-disabled')) {
               return;
            }
            // 设置电池参数面板信息
            var load = layer.load(1);
            battPopup.set(function(res) {
               layer.close(load);
               layer.msg(res.msg);
            });
         });
         // 点击读取
         $('#battInfo_read').click(function() {
            var batt = getBatt();
            var temp = {
               dev_id: batt.FBSDeviceId
            };
            // 设置电池参数面板信息
            var load = layer.load(1);
            battPopup.read(function(res) {
               layer.close(load);
               // console.log(res);
               if(res.code == 1) {
                  battPopup.search(temp, batt, function(res, binf) {
                     layer.close(load);
                     layer.msg('获取参数成功');
                  });
               }else {
                  layer.msg('获取参数失败');
               }
            });
         });
         // 查询电池参数的值
         function searchBattInfo(temp, binf) {
            var load = layer.load(1);
            // 查询电池参数
            $.ajax({
               type: 'post'
               ,async: true
               ,url:'Fbs9100_battparamAction_action_serchByCondition'
               ,data: 'json='+JSON.stringify(temp)
               ,dataType: 'json'
               ,success: function(res) {
                  var rs = JSON.parse(res.result);
                  //console.log(rs);
               }
               ,complete: function() {
                  layer.close(load);
               }
            });
         }
      });
      
      // 机历卡模块