| | |
| | |
|
| | | $('#echarts_menu .batt-mon-search').click(function() {
|
| | | var batt = getBatt();
|
| | | window.open('eleMonomer.jsp?stationId='+batt.StationId+'&battgroupId='+BattGroupId+'&battmon_num='+battmon_num);
|
| | | |
| | | var url = skipUrl("eleMonomer.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId,battmon_num);
|
| | | //console.info(url);
|
| | | window.open(url);
|
| | | //window.open('eleMonomer.jsp?stationId='+batt.StationId+'&battgroupId='+BattGroupId+'&battmon_num='+battmon_num);
|
| | | });
|
| | |
|
| | | $('#echarts_menu .batt-attention').click(function() {
|
| | |
| | | //跳转到指定的电池组统计分析查询
|
| | | function targetBattReport(){
|
| | | var batt = getBatt();
|
| | | window.open("eleAnalyse.jsp?battgroupId="+BattGroupId+"&stationId="+batt.StationId);
|
| | | var url = skipUrl("eleAnalyse.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
|
| | | //console.info(url);
|
| | | window.open(url);
|
| | | //window.open("eleAnalyse.jsp?battgroupId="+BattGroupId+"&stationId="+batt.StationId);
|
| | | }
|
| | | // 使用jquery实现左导航的显示和隐藏
|
| | | $(document).ready(function(){
|
| | |
| | | $('#monLineGraphPopup .control-popupClose .fa-file-text-o').click(function() {
|
| | | var batt = getBatt();
|
| | | var type = getPopupTabNum(getPopupTab());
|
| | | window.open('eleMonomer.jsp?stationId='+batt.StationId+'&battgroupId='+BattGroupId+'&battmon_num='+battmon_num+'&test_type='+type);
|
| | | |
| | | var url = skipUrl("eleMonomer.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId,battmon_num);
|
| | | url += '&test_type='+type;
|
| | | //console.info(url);
|
| | | window.open(url);
|
| | | //window.open('eleMonomer.jsp?stationId='+batt.StationId+'&battgroupId='+BattGroupId+'&battmon_num='+battmon_num+'&test_type='+type);
|
| | | });
|
| | |
|
| | | // 点击选项卡更新图表
|
| | |
| | | // 系统参数设置
|
| | | $(function() {
|
| | | var sysCMD = GLOBAL.CMD.sys;
|
| | | |
| | | // 点击读取
|
| | | $('#sysSet_read').click(function() {
|
| | | var batt = getBatt();
|
| | | var temp = {
|
| | | dev_id:batt.FBSDeviceId
|
| | | };
|
| | | searchSysData(temp, true);
|
| | | });
|
| | | |
| | | // 点击设置系统参数
|
| | | $('#sysSet').click(function() {
|
| | | var batt = getBatt();
|
| | |
| | | layer.prompt({title: '输入重启口令', formType: 1}, function(pass, index){
|
| | | var _pass = hex_md5(pass);
|
| | | if(_pass == resetPwd) {
|
| | | // 关闭口令面板
|
| | | layer.close(index);
|
| | | // 构造重启命名
|
| | | var batt = getBatt();
|
| | | var temp = {
|
| | | dev_id: batt.FBSDeviceId,
|
| | | cmd: sysCMD.restart
|
| | | };
|
| | | |
| | | /* console.log(temp);
|
| | | layer.msg('功能开发中...');
|
| | | return; */
|
| | | // 重启
|
| | | restartSys(temp);
|
| | | }else {
|
| | | layer.msg('口令输入错误');
|
| | | }
|
| | |
| | |
|
| | |
|
| | | // 查询设备的系统参数
|
| | | function searchSysData(temp) {
|
| | | function searchSysData(temp, showSU) {
|
| | | // 开启等待框
|
| | | var load = layer.load(1);
|
| | | // 请求后台
|
| | |
| | | if(rs.code == 1){
|
| | | var data = rs.data[0];
|
| | | setSysSetData(data);
|
| | | if(showSU) {
|
| | | noContent.showNoContent('读取成功', true);
|
| | | }
|
| | | }else{
|
| | | noContent.showNoContent('查询失败!');
|
| | | }
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | // 重启设备
|
| | | function restartSys(temp) {
|
| | | // 开启等待框
|
| | | var load = layer.load(1);
|
| | | // 请求后台
|
| | | $.ajax({
|
| | | type: "post",
|
| | | url: "Fbs9100_sysparamAction_action_update",
|
| | | async: true,
|
| | | dataType: 'json',
|
| | | data: "json = " + JSON.stringify(temp),
|
| | | success: function(result) {
|
| | | var rs = JSON.parse(result.result);
|
| | | console.info(rs);
|
| | | if(rs.code == 1){
|
| | | noContent.showNoContent('发送重启命令成功', true);
|
| | | }else{
|
| | | noContent.showNoContent('发送重启命令失败!');
|
| | | }
|
| | | |
| | | // 关闭等待
|
| | | layer.close(load);
|
| | | },
|
| | | error: function() {
|
| | | noContent.showNoContent('发送重启命令失败!');
|
| | | // 关闭等待
|
| | | layer.close(load);
|
| | | }
|
| | | });
|
| | | |
| | | }
|
| | | |
| | | |
| | | |
| | | // 根据数据设置面板信息
|
| | | function setSysSetData(data) {
|
| | | $('#sysSet_dev_id').val(data.dev_id); // 设备ID
|