| | |
| | | <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>
|
| | |
| | | <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>
|
| | |
| | |
|
| | |
|
| | | // 电池参数
|
| | | var battCMD = GLOBAL.CMD.batt; // cmd命令
|
| | | var battPopup = GLOBAL.battInfoPopup; // 电池参数模块
|
| | | $('#battInfoBtn').click(function() {
|
| | | var batt = getBatt();
|
| | | // console.log(batt);
|
| | | var temp = {
|
| | | dev_id: batt.FBSDeviceId
|
| | | };
|
| | | |
| | | // 查询电池参数面板信息
|
| | | var load = layer.load(1);
|
| | | battPopup.search(temp, batt, function(res, binf) {
|
| | | layer.close(load);
|
| | | // console.log(res);
|
| | | });
|
| | | battInfo_popup.showPopup(); // 显示battInfo_popup弹出框和遮罩层
|
| | | });
|
| | | |
| | | // 点击设定
|
| | | $('#battInfo_en').click(function() {
|
| | | // 设置电池参数面板信息
|
| | | var load = layer.load(1);
|
| | | battPopup.set(function(res) {
|
| | | layer.close(load);
|
| | | layer.msg(res.msg);
|
| | | });
|
| | | });
|
| | | |
| | | // 点击读取
|
| | | $('#battInfo_read').click(function() {
|
| | | // 设置电池参数面板信息
|
| | | var load = layer.load(1);
|
| | | battPopup.read(function(res) {
|
| | | layer.close(load);
|
| | | 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);
|
| | | }
|
| | | });
|
| | | }
|
| | | });
|
| | |
|
| | | // 机历卡模块
|