| | |
| | | .mr250 {
|
| | | margin-left: -250px;
|
| | | }
|
| | | .page-link {
|
| | | cursor: pointer;
|
| | | }
|
| | | .page-link:hover {
|
| | | color: #1495E7;
|
| | | }
|
| | | .page-link:active {
|
| | | color: #FF0000;
|
| | | }
|
| | | i.fa.f-size16 {
|
| | | font-size: 16px;
|
| | | vertical-align: middle;
|
| | | }
|
| | | </style>
|
| | |
|
| | | </head>
|
| | |
| | | <br>
|
| | | <a href="javascript:void(0);" id="stopTest" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <span class="whyc-btn-icon fa fa-stop-circle"></span>
|
| | | <span class="whyc-btn-txt" id="stopTestBtn">停止测试</span>
|
| | | <span class="whyc-btn-txt">停止测试</span>
|
| | | </a>
|
| | | <br>
|
| | | <a href="javascript:void(0);" id="battInfoBtn" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <span class="whyc-btn-icon fa fa-battery-full"></span>
|
| | | <span class="whyc-btn-txt">电池参数</span>
|
| | | </a>
|
| | | <br>
|
| | | <a href="javascript:void(0);" id="sysSet" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | |
| | | <a href="javascript:void(0);" id="signalBtn" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <span class="whyc-btn-icon fa fa-signal"></span>
|
| | | <span class="whyc-btn-txt">信号质量</span>
|
| | | </a>
|
| | | <br>
|
| | | <a href="javascript:void(0);" id="threadInfo" class="whyc-btn whyc-btn-disabled" id="specialGraphExport">
|
| | | <span class="whyc-btn-icon fa fa-desktop"></span>
|
| | | <span class="whyc-btn-txt">设备进程</span>
|
| | | </a>
|
| | | </div>
|
| | | </div>
|
| | |
| | | </tr>
|
| | | <tr>
|
| | | <th><s:text name="Booster"/><s:text name="Upper_limit"/><!-- 升压上限 -->(V)</th>
|
| | | <th><s:text name="Charging_current"/><!-- 充电电流 -->(A)</th>
|
| | | <th id="ChargeCurrSetLabel"><s:text name="Charging_current"/><!-- 充电电流 -->(<span class="val-range"></span>A)<i class="fa fa-edit page-link f-size16" title="修改充电电流范围"></i></th>
|
| | | </tr>
|
| | | <tr>
|
| | | <td><input id="DCVolHighLimit" type="text" value="0"><i class="fa fa-frown-o error-img" title="数据格式错误"></i></td>
|
| | |
| | | </div>
|
| | | </div>
|
| | | <div class="popup-footer">
|
| | | <input type="button" name="" id="btn_start_test" class="status-change-btn whyc-btn-disabled" value="启动测试" > <!-- 启动测试 -->
|
| | | <input type="button" name="" id="btn_start_test" class="status-change-btn whyc-btn-disabled no-remove-disabled" value="启动测试" > <!-- 启动测试 -->
|
| | | <input type="button" name="" id="btn_flush" value="读取" > <!-- 读取 -->
|
| | | <input type="button" name="" id="btn_ensure" class="status-change-btn whyc-btn-disabled" value="设定" > <!-- 设定 -->
|
| | | <!-- <input type="button" name="" id="bts_graph" value="拓扑图"> -->
|
| | |
| | | <input type="button" name="" id="sysSet_en" class="status-change-set " value="设置" >
|
| | | </div>
|
| | | </div>
|
| | | <!-- 电池参数 -->
|
| | | <div class="popup" id="battInfo_popup">
|
| | | <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>机房名称</th>
|
| | | </tr>
|
| | | <tr>
|
| | | <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>电池标称容量(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>电池组数(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>单体标称电压(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>电池标称温度(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>电池浮充电流阀值(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>电池组连接类型(0~1)</th>
|
| | | </tr>
|
| | | <tr>
|
| | | <td><input type="text" id="battInfo_batt_link_type" value=""></td>
|
| | | </tr>
|
| | | </tbody>
|
| | | </table>
|
| | | </div>
|
| | | </div>
|
| | | <div class="popup-footer">
|
| | | <input type="button" name="" id="battInfo_read" value="读取" > |
| | | <input type="button" name="" id="battInfo_en" class="status-change-set whyc-btn-disabled" value="设置" >
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <!-- 单体曲线 -->
|
| | | <div class="popup w960 mr480x" id="monLineGraphPopup">
|
| | |
| | | <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>
|
| | |
| | | <script type="text/javascript" src="js/elecircle.js"></script>
|
| | | <script type="text/javascript" src="js/elecircle.content.js"></script>
|
| | | <script type="text/javascript" src="pages/js/pages/homeInfo.js"></script>
|
| | | <script type="text/html" id="setChargeCurrTpl">
|
| | | |
| | | </script>
|
| | | <script type="text/javascript">
|
| | | var permits;
|
| | | <% Object obj=session.getAttribute("permits");
|
| | |
| | | var equip4016_popup = new Popup($('#equip4016'));
|
| | | var sysSet_popup = new Popup($('#sysSet_popup'));
|
| | | var localNav = new Popup($('#localNav'));
|
| | | var battInfo_popup = new Popup($('#battInfo_popup'));
|
| | | // 充放电弹出框设置
|
| | | $(function() {
|
| | | // 初始化LD9充放电弹出框
|
| | |
| | | sysSet_popup.hidePopup(); // 隐藏sysSet_popup弹出框和遮罩层
|
| | | });
|
| | |
|
| | | // 设置电池参数
|
| | | $('#battInfo_popup').find('.close').bind('click', function() {
|
| | | battInfo_popup.hidePopup(); // 隐藏battInfo_popup弹出框和遮罩层
|
| | | });
|
| | | |
| | | |
| | | // bts面板充电电流编辑
|
| | | $('#ChargeCurrSetLabel .fa-edit').click(function() {
|
| | | var batt =getBatt();
|
| | | //console.log(batt);
|
| | | // 设置面板
|
| | | layer.open({
|
| | | type: 1
|
| | | ,title: '设置充电电流阀值'
|
| | | , content: '<div style="width:300px; height: 50px;"><div style="margin-top: 20px;margin-left: 8px; margin-right: 8px;">'+
|
| | | '<input type="text" style="width: 100%; height:32px; border: 1px solid #ccc;" id="setChargeCurrVal" value="">'+
|
| | | '</div></div>'
|
| | | ,btn:['设置', '取消']
|
| | | ,yes: function(index) {
|
| | | var chargeCurrVal = $('#setChargeCurrVal').val();
|
| | | var num = Number(chargeCurrVal);
|
| | | if(isNaN(num) || num==0) {
|
| | | layer.msg('请输入数字');
|
| | | return;
|
| | | }
|
| | | var tmp = {
|
| | | charge_curr_max: num
|
| | | ,BattGroupId: batt.BattGroupId
|
| | | }; |
| | | var load;
|
| | | // 请求设置电流的后台
|
| | | $.ajax({
|
| | | type: 'post'
|
| | | ,async: true
|
| | | ,url: 'BattInfAction!update_charge'
|
| | | ,data: 'json='+JSON.stringify(tmp)
|
| | | ,dataType: 'json'
|
| | | ,beforeSend: function(){
|
| | | load = layer.load(1);
|
| | | }
|
| | | ,success: function(res) {
|
| | | var rs = JSON.parse(res.result);
|
| | | // 关闭等待框
|
| | | layer.close(load);
|
| | | //console.log(rs);
|
| | | if(rs.code == 1) {
|
| | | // 设置弹出框信息
|
| | | layer.msg('设置成功!');
|
| | | layer.close(index);
|
| | | // 充电电流
|
| | | $('#ChargeCurrSet').testVal('option', 'allOpts', {
|
| | | regVal: true
|
| | | ,update: true
|
| | | ,min: 0
|
| | | ,max: num
|
| | | ,msg: '取值范围0~'+num+'A'
|
| | | });
|
| | | |
| | | // 设置文本值
|
| | | $('#ChargeCurrSetLabel .val-range').text('0~'+num);
|
| | | }else {
|
| | | layer.msg('设置失败!请重新设置');
|
| | | }
|
| | | }
|
| | | |
| | | });
|
| | | } |
| | | });
|
| | | });
|
| | |
|
| | | // 窗口大小改变
|
| | | $(window).resize(function() {
|
| | |
| | | equip4016_popup.hidePopup(); // 隐藏4016弹出框和遮罩层
|
| | | localNav.hidePopup();
|
| | | sysSet_popup.hidePopup(); // 隐藏sysSet_popup弹出框和遮罩层
|
| | | battInfo_popup.hidePopup(); // 隐藏battInfo_popup弹出框和遮罩层
|
| | | });
|
| | | });
|
| | | //初始化柱状图
|
| | |
| | | homeid: batt.StationId,
|
| | | battid: batt.BattGroupId
|
| | | };
|
| | | findBattinfByBattGroupId(batt.BattGroupId);
|
| | | findStationInfoByStation(batt);
|
| | | // 显示基站机历卡
|
| | | showHomeInfo(batt.StationId);
|
| | | // 根据数据定位
|
| | | localSideBar(treeView, treeView.container, tmp);
|
| | | });
|
| | |
| | | //console.info(rs);
|
| | | return rs;
|
| | | }
|
| | | |
| | | // 设备进程显示
|
| | | var threadInfoSearch = {
|
| | | num: gprs.threadinfo,
|
| | | dev_id:910000001 |
| | | };
|
| | | |
| | | // 点击设备进程按钮
|
| | | $('#threadInfo').click(function() {
|
| | | // console.log(threadInfoSearch);
|
| | | var batt = getBatt();
|
| | | //console.log(batt);
|
| | | threadInfoSearch.dev_id = batt.FBSDeviceId;
|
| | | SendDeviceThreadInfo(threadInfoSearch,function(data){
|
| | | searchDeviceThreadInfo({dev_id: threadInfoSearch.dev_id});
|
| | | });
|
| | | });
|
| | | |
| | | //给GPRS发送指定的命令,获取AT返回值
|
| | | var threadInfoLoad;
|
| | | function SendDeviceThreadInfo(param,callback){
|
| | | threadInfoLoad = layer.load(1);
|
| | | $.ajax({ |
| | | type:"post", |
| | | url: "Bts_gprs_stateAction_action_update_bts_task_inf", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:'json='+JSON.stringify(param), |
| | | success: function(data){ |
| | | var model = eval('('+data.result+')');
|
| | | console.info(model);
|
| | | if(callback && typeof callback == 'function'){
|
| | | callback(model);
|
| | | }
|
| | | },error:function(e){
|
| | | var model = {
|
| | | code:0,
|
| | | data:e,
|
| | | msg:'通信失败'
|
| | | };
|
| | | if(callback && typeof callback == 'function'){
|
| | | callback(model);
|
| | | }
|
| | | } |
| | | });
|
| | | }
|
| | | |
| | | //查询设备的进程信息
|
| | | function searchDeviceThreadInfo(param,callback){
|
| | | $.ajax({ |
| | | type:"post", |
| | | url: "Bts_gprs_stateAction_action_serchByCondition", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:'json='+JSON.stringify(param), |
| | | success: function(data){
|
| | | layer.close(threadInfoLoad); |
| | | var model = eval('('+data.result+')');
|
| | | if(model.code == 1) {
|
| | | var btsTaskInf = model.data[0].bts_task_inf;
|
| | | layer.open({
|
| | | title: '设备进程',
|
| | | width: 380,
|
| | | height: 450,
|
| | | content: '<pre>'+btsTaskInf+'</pre>'
|
| | | });
|
| | | }else {
|
| | | layer.msg('查询失败');
|
| | | }
|
| | | |
| | | |
| | | if(callback && typeof callback == 'function'){
|
| | | callback(model);
|
| | | }
|
| | | },error:function(e){
|
| | | var model = {
|
| | | code:0,
|
| | | data:e,
|
| | | msg:'通信失败'
|
| | | };
|
| | | if(callback && typeof callback == 'function'){
|
| | | callback(model);
|
| | | }
|
| | | } |
| | | });
|
| | | }
|
| | | |
| | | |
| | | // 电池参数
|
| | | var battCMD = GLOBAL.CMD.batt; // cmd命令
|
| | | var battPopup = GLOBAL.battInfoPopup; // 电池参数模块
|
| | | battPopup.testVal(); // 设置面板的取值范围
|
| | | $('#battInfoBtn').click(function() {
|
| | | // 获取电池信息
|
| | | 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);
|
| | | }
|
| | | });
|
| | | }
|
| | | });
|
| | |
|
| | | // 机历卡模块
|