Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
| | |
| | |
|
| | | ################### ex-battinfo.jsp ##################################
|
| | | Approval_station_install=\u57fa\u7ad9\u5b89\u88c5\u5ba1\u6279
|
| | |
|
| | |
|
| | | ################## batch-set-curr.jsp ##############################
|
| | | Bulk_nuclear_cap_test = \u6279\u91cf\u6838\u5bb9\u6d4b\u8bd5
|
| | |
|
| | | ################## batt-station-update1.jsp #########################
|
| | | BTSEquipment_upgrades = BTS\u8bbe\u5907\u5347\u7ea7 |
| | |
| | | <meta http-equiv="expires" content="0">
|
| | | <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
| | | <meta http-equiv="description" content="This is my page">
|
| | | <title>批量设置信息</title>
|
| | | <title>批量核容测试</title>
|
| | | <link rel="stylesheet" type="text/css" href="pages/css/base.css">
|
| | | <link rel="stylesheet" type="text/css" href="jqueryui/jquery-ui.css">
|
| | | <link rel="stylesheet" type="text/css" href="src/css/layui.css">
|
| | |
| | | <div class="layui-page-container">
|
| | | <!-- 条件筛选 -->
|
| | | <div class="layui-page-filter">
|
| | | <div class="page-filter-header layui-page-filter-fweight">批量设置信息</div>
|
| | | <div class="page-filter-header layui-page-filter-fweight">批量核容测试</div>
|
| | | <div class="page-filter-content">
|
| | | <table>
|
| | | <tr class="layui-page-filter-tbl-header layui-page-filter-fweight">
|
| | |
| | | <div class="layui-form" lay-filter="countyFilter">
|
| | | <div class="layui-form-item">
|
| | | <div class="layui-input-block">
|
| | | <select name="county" id="county" lay-filter="county">
|
| | | <select name="county" id="county" lay-filter="county" lay-search="">
|
| | | <option value="">请选择区/县</option>
|
| | | </select>
|
| | | </div>
|
| | |
| | | <button class="layui-btn layui-btn-sm mrl8" id="batchAdd"><i class="fa fa-plus mrr8"></i>添加电池组</button>
|
| | | <button class="layui-btn layui-btn-sm" id="batchSetCurr">批量设置放电参数</button>
|
| | | <button class="layui-btn layui-btn-sm" id="startTest">批量启动测试</button>
|
| | | <button class="layui-btn layui-btn-sm" id="lookSetCurr">查询放电参数</button>
|
| | | </div>
|
| | | </div>
|
| | | <!-- 表格内容 -->
|
| | |
| | | <td><input id="distime" type="text" value="600"><i class="fa fa-frown-o error-img" title="数据格式错误"></i></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <th><s:text name="Discharging"/><s:text name="Hourly_rate"/>(0~300%)<!-- 放电小时率 --></th>
|
| | | <th>放电电流百分比(0~300%)<!-- 放电小时率 --></th>
|
| | | <th>放电容量百分比(0~300%)</th>
|
| | | </tr>
|
| | | <tr>
|
| | |
| | | <!-- 存储set-curr.html的信息 -->
|
| | | <div id="setCurrIframe"></div>
|
| | | <div id="setCurrBtn"></div>
|
| | | <!-- 设备工作状态 -->
|
| | | <script type="text/html" id="devStatus">
|
| | | {{# if(d.devStatus) { }}
|
| | | {{d.devStatus}}
|
| | | {{# }else{ }}
|
| | | 状态:???,告警:???,组端电压(V):???,电流(A):???,容量(AH):???
|
| | | {{# } }}
|
| | | </script>
|
| | | <!-- 已测时长 -->
|
| | | <script type="text/html" id="testTime">
|
| | | {{# if(d.testTime) { }}
|
| | | {{d.testTime}}
|
| | | {{# }else{ }}
|
| | | 00:00:00
|
| | | {{# } }}
|
| | | </script>
|
| | | <!-- 通信计数signalNum -->
|
| | | <script type="text/html" id="signalNum">
|
| | | {{# if(d.signalNum) { }}
|
| | | {{d.signalNum}}
|
| | | {{# }else{ }}
|
| | | ???
|
| | | {{# } }}
|
| | | </script>
|
| | | <script type="text/html" id="setStatus">
|
| | | {{# if(d.setCurr == 1){ }}
|
| | | <button class="layui-btn layui-btn-sm">设置放电参数成功</button>
|
| | | <button class="layui-btn layui-btn-sm">设置成功</button>
|
| | | {{# }else if(d.setCurr == 2){ }}
|
| | | <button class="layui-btn layui-btn-sm layui-btn-danger">设置放电参数失败</button>
|
| | | <button class="layui-btn layui-btn-sm layui-btn-danger">设置失败</button>
|
| | | {{# }else { }}
|
| | | <button class="layui-btn layui-btn-sm layui-btn-normal">未设置放电参数</button>
|
| | | <button class="layui-btn layui-btn-sm layui-btn-normal">未设置</button>
|
| | | {{# } }}
|
| | | </script>
|
| | | <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
|
| | |
| | | ,cellMinWidth: 80
|
| | | ,cols: [[
|
| | | {type:'checkbox',fixed: 'left'}
|
| | | ,{field:'FBSDeviceId', title:'设备ID', align:'center', width: 160}
|
| | | ,{field:'StationName', title:'机房名称', align:'center', width: 470}
|
| | | ,{field:'FBSDeviceName', title:'FBS设备名称', align:'center', width: 160}
|
| | | ,{field:'GroupIndexInFBSDevice', title:'FBS设备索引', align:'center', width: 160}
|
| | | ,{field:'StationName9', title:'设备版本号', align:'center', width: 160}
|
| | | ,{field:'BattGroupId', title:'电池组ID', align:'center', width: 160}
|
| | | ,{field:'BattGroupName', title:'电池组名称', align:'center', width: 160}
|
| | | ,{field:'devStatus', title:'设备状态', templet: '#devStatus', align:'center', width: 600}
|
| | | ,{field:'testTime', title:'已测时长', templet: '#testTime', align:'center', width: 140}
|
| | | ,{field:'signalNum', title:'通信计数', templet: '#signalNum', align:'center', width: 140}
|
| | | ,{field:'StationName9', title:'设备版本号', align:'center', width: 160}
|
| | | ,{field:'MonCount', title:'单体数量', align:'center', width: 100}
|
| | | ,{field:'MonCapStd', title:'标称容量', align:'center', width: 100}
|
| | | ,{field:'MonVolStd', title:'标称单体电压', align:'center', width: 140}
|
| | | ,{field:'MonResStd', title:'标称单体内阻', align:'center', width: 140}
|
| | | ,{field:'MonSerStd', title:'标称单体电导', align:'center', width: 140}
|
| | | ,{field:'Load_curr', title:'负载电流', align:'center', width: 140}
|
| | | ,{field:'DisCurrMax', title:'最大核容电流', align:'center', width: 140}
|
| | | ,{field:'doThings', fixed: 'right', title: '设置状态', toolbar: '#setStatus', align: 'center', width: 160}
|
| | | ]]
|
| | | ,data:[]
|
| | | ,limit: 20
|
| | | ,page: true
|
| | | ,limit: 10000
|
| | | ,page: false
|
| | | ,height: 'full-252'
|
| | | };
|
| | |
|
| | |
| | | }else {
|
| | | layer.msg('没有可设置的电池组!');
|
| | | }
|
| | | |
| | | console.log(data);
|
| | | tOptions.data = data;
|
| | | // 生成表格数据
|
| | | table.render(tOptions);
|
| | | updateDevStatus();
|
| | | }
|
| | | ,complete:function() {
|
| | | layer.close(load);
|
| | |
| | |
|
| | | // 请求设置参数
|
| | | function ajaxSetParam(param) {
|
| | | console.log(param);
|
| | | var load = layer.load(1);
|
| | | // 请求后台
|
| | | $.ajax({
|
| | |
| | | ,data: 'json='+JSON.stringify(param)
|
| | | ,dataType: 'json'
|
| | | ,success: function(res) {
|
| | | console.log(res);
|
| | | var rs = JSON.parse(res.result);
|
| | | if(rs.code == 1) {
|
| | | layer.msg('设置完成!');
|
| | |
| | | var rsList = [];
|
| | | for(var i=0; i<data.length; i++) {
|
| | | var _data = data[i];
|
| | | rsList.push(_data);
|
| | | }
|
| | | |
| | | var trIndex = getSetCurrIndex(data, tOptions.data);
|
| | | // 被设置参数的机房
|
| | | for(var i=0; i<trIndex.length; i++) {
|
| | | var _data = data[i];
|
| | | var _trIndex = trIndex[i];
|
| | | var _temp = {'doThings':''};
|
| | | if(_data.num==1) {
|
| | | _temp.setCurr = 1;
|
| | | }else {
|
| | | _temp.setCurr = 2;
|
| | | }
|
| | | rsList.push(_data);
|
| | | layuiTbl.updateTr(i, _temp);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | // 构造批量设置放电参数的方法
|
| | | function getSetCurrParam(data, ratio) {
|
| | | //console.log(data);
|
| | | var rs = [];
|
| | | for(var i=0; i<data.length; i++) {
|
| | | var _data = data[i];
|
| | |
| | | var temp= {
|
| | | num: 0
|
| | | ,dev_id: _data.FBSDeviceId // 设备id
|
| | | ,op_cmd: setParamCmd // 设置参数命令
|
| | | ,op_cmd: setParamCmd // 设置参数命令
|
| | | ,TestCmd: ratio.testType // 测试类型
|
| | | ,HourRate: ratio.hourrate // 小时率
|
| | | ,DisCurr: disCurr // 放电电流
|
| | |
| | | ,OnlineLowAction: ratio.OnlineVolLowAction // 在线电压低处理
|
| | | ,ChargeCurrSet: chargeCurr // 充电电流
|
| | | ,DCVolHighLimit: ratio.DCVolHighLimit // 升压上限
|
| | | ,BattGroupNum: _data.MonCount // 电池个数
|
| | | ,BattGroupNum: _data.GroupIndexInFBSDevice+1 // 电池组的索引
|
| | | ,StationName: _data.StationName // 机房名称
|
| | | }
|
| | |
|
| | | rs.push(temp);
|
| | |
| | | setBTSPopupStatus($(this).attr('id'), $(this).val());
|
| | | });
|
| | |
|
| | | // 显示已经修改的参数
|
| | | $('#lookSetCurr').click(function() {
|
| | | var rsList = $('#setCurrIframe').data('setCurr');
|
| | | |
| | | if(rsList.length == 0) {
|
| | | layer.msg('暂无查看内容,请先设置放电参数!');
|
| | | return;
|
| | | }
|
| | | |
| | | // 显示面板
|
| | | layer.open({
|
| | | type: 2
|
| | | ,area: ['1200px', '500px']
|
| | | ,resize: false
|
| | | ,content: 'iframe/setcurr.html'
|
| | | });
|
| | | });
|
| | | |
| | | // 启动测试
|
| | | $('#startTest').click(function() {
|
| | | var rsList = $('#setCurrIframe').data('setCurr');
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | // 是否确定启动
|
| | | layer.confirm('是否确定启动测试', {icon: 3, title: '系统提示'}, function(index) {
|
| | | var param = getStartTestParam(rsList);
|
| | | // 启动测试
|
| | | ajaxStartTest(param);
|
| | | // 显示面板
|
| | | layer.open({
|
| | | type: 2
|
| | | ,area: ['1200px', '500px']
|
| | | ,resize: false
|
| | | ,maxmin: true
|
| | | ,fixed: true
|
| | | ,content: 'iframe/setcurr.html'
|
| | | });
|
| | |
|
| | | });
|
| | | |
| | | // 构造启动测试的参数
|
| | | function getStartTestParam(param) {
|
| | | for(var i=0; i<param.length; i++) {
|
| | | param[i].op_cmd = startTest;
|
| | | param[i].num = 0;
|
| | | }
|
| | | |
| | | return param;
|
| | | }
|
| | | |
| | | // 启动测试请求
|
| | | function ajaxStartTest(param) {
|
| | | var load = layer.load(1)
|
| | | |
| | | // 请求后台
|
| | | $.ajax({
|
| | | type: 'post'
|
| | | ,async: true
|
| | | ,url: 'Fbs9100_setparamAction_action_updatePro_dis'
|
| | | ,data: 'json='+JSON.stringify(param)
|
| | | ,dataType: 'json'
|
| | | ,success: function(res) {
|
| | | var rs = JSON.parse(res.result);
|
| | | if(rs.code == 1) {
|
| | | var data = rs.data;
|
| | | console.log(data)
|
| | | layer.msg('启动成功');
|
| | | }else {
|
| | | layer.msg('启动失败');
|
| | | }
|
| | | }
|
| | | ,complete: function() {
|
| | | layer.close(load);
|
| | | }
|
| | | });
|
| | | |
| | | |
| | | }
|
| | |
|
| | | // 初始化设置参数的按钮
|
| | | var BTSBtn = {
|
| | |
| | | BTSBtn.active();
|
| | | }
|
| | | }
|
| | | |
| | | // 获取设置放电参数的下标
|
| | | function getSetCurrIndex(setData, allData) {
|
| | | var rs = [];
|
| | | // 遍历setData
|
| | | for(var i=0; i<setData.length; i++) {
|
| | | var _setData = setData[i];
|
| | | var setDevId = _setData.dev_id;
|
| | | // 遍历allData
|
| | | for(var k=0; k<allData.length; k++) {
|
| | | var _allData = allData[i];
|
| | | var allDevId = _allData.FBSDeviceId;
|
| | | if(setDevId == allDevId) {
|
| | | rs.push(k);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | | |
| | | return rs;
|
| | | }
|
| | | |
| | | // 更新设备状态
|
| | | var BTS9100 = GLOBAL.BTS9100;
|
| | | var workStates = BTS9100.workstates;
|
| | | var alarmStates = BTS9100.alarmstates;
|
| | | function updateDevStatus() {
|
| | | var battlist = tOptions.data;
|
| | | clearInterval(updateDevStatus.timer);
|
| | | if(battlist.length > 0){
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "Fbs9100_setparamAction_action_serchByInfo", |
| | | async:true, |
| | | dataType:'text',
|
| | | data:"json="+JSON.stringify(battlist),
|
| | | dataType: 'json', |
| | | success: function(res){ |
| | | var rs = JSON.parse(res.result);
|
| | | if(rs.code == 1) {
|
| | | var data = rs.data;
|
| | | // console.log(data);
|
| | | for(var i=0; i<data.length; i++) {
|
| | | var obj = data[i];
|
| | | if(obj.fstate.num > 0){
|
| | | var str = '';
|
| | | var index = obj.fstate.dev_workstate;
|
| | | // 内阻测试(工作状态为0, 内阻测试不为0)
|
| | | if(obj.fstate.dev_workstate ==0 && obj.fstate.dev_res_test_state != 0) {
|
| | | index = 3;
|
| | | }
|
| | | // 设置文本值
|
| | | str = "状态:" + workStates[index]+
|
| | | ",告警:"+alarmStates[obj.fstate.dev_alarmstate]+
|
| | | ",组端电压(V):"+obj.fstate.dev_captest_groupvol+
|
| | | ",电流(A):"+obj.fstate.dev_captest_curr+
|
| | | ",容量(AH):"+obj.fstate.dev_captest_cap;
|
| | | if(index == 3){
|
| | | str = "状态:"+workStates[index]+
|
| | | ",组号:"+obj.fstate.dev_testgroupnum+
|
| | | ",当前单体编号:"+(obj.fstate.dev_restest_monindex+1)+
|
| | | ",被测单体总数:"+obj.fstate.dev_restest_moncount;
|
| | | }
|
| | | var temp = {
|
| | | devStatus: str // 设备状态
|
| | | ,testTime: formatSeconds(obj.fstate.dev_captest_timelong) // 测试时长
|
| | | ,signalNum: obj.fstate.dev_commcount
|
| | | }
|
| | | layuiTbl.updateTr(i, temp);
|
| | | }
|
| | | }
|
| | | }
|
| | | updateDevStatus.timer = setTimeout(updateDevStatus, 4000);
|
| | | }, |
| | | });
|
| | | }
|
| | | } |
| | | |
| | | });
|
| | | </script>
|
| | | </body>
|
| | |
| | | <meta http-equiv="expires" content="0">
|
| | | <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
| | | <meta http-equiv="description" content="This is my page">
|
| | | <title>机房站点升级功能</title>
|
| | | <title>BTS设备升级</title>
|
| | | <link rel="stylesheet" type="text/css" href="pages/css/base.css">
|
| | | <link rel="stylesheet" type="text/css" href="jqueryui/jquery-ui.css">
|
| | | <link rel="stylesheet" type="text/css" href="src/css/layui.css">
|
| | |
| | | case 119026:return "基站掉站告警";
|
| | | case 119027:return "基站开门告警";
|
| | | case 119028:return "设备高温告警";
|
| | | case 119032:return "设备SD卡故障";
|
| | | case 119033:return "采集线告警";
|
| | | }
|
| | | }
|
| | | return "通信故障";
|
| | |
| | | <option value="119026">基站掉站告警</option>
|
| | | <option value="119027">基站开门告警</option>
|
| | | <option value ="119028">设备高温告警</option>
|
| | | <option value ="119032">设备SD卡故障</option>
|
| | | <option value ="119033">采集线告警</option>
|
| | |
|
| | | </select>
|
| | | </td>
|
| | |
| | | case 119026:return "基站掉站告警";
|
| | | case 119027:return "基站开门告警";
|
| | | case 119028:return "设备高温告警";
|
| | | case 119032:return "设备SD卡故障";
|
| | | case 119033:return "采集线告警";
|
| | | }
|
| | | }
|
| | | return "通信故障";
|
| | |
| | | <link rel="stylesheet" type="text/css" href="../pages/css/mylayui.css">
|
| | | </head>
|
| | | <body>
|
| | | <table id="pageTbl" lay-filter="pageTbl"></table>
|
| | | <div class="layui-page-container">
|
| | | <!-- 页面主题内容 -->
|
| | | <div class="layui-page-content" style="position: relative;">
|
| | | <div class="layui-tbl-filter">
|
| | | <div class="layui-form layui-form-pane" lay-filter="tblFilter">
|
| | | <button class="layui-btn layui-btn-sm" id="startTest">批量启动测试</button>
|
| | | </div>
|
| | | </div>
|
| | | <table id="pageTbl" lay-filter="pageTbl"></table>
|
| | | </div>
|
| | | </div>
|
| | | <script type="text/html" id="OnlineLowActionText">
|
| | | {{# if(d.OnlineLowAction == 0){ }}
|
| | | 停止测试
|
| | | {{# }else { }}
|
| | | 继续测试
|
| | | {{# } }}
|
| | | </script>
|
| | | <script type="text/html" id="setStatus">
|
| | | {{# if(d.setCurr == 1){ }}
|
| | | <button class="layui-btn layui-btn-sm">设置成功</button>
|
| | | {{# }else if(d.setCurr == 2){ }}
|
| | | <button class="layui-btn layui-btn-sm layui-btn-danger">设置失败</button>
|
| | | {{# }else { }}
|
| | | <button class="layui-btn layui-btn-sm layui-btn-normal">未设置</button>
|
| | | {{# } }}
|
| | | </script>
|
| | | <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
|
| | | <script type="text/javascript" src="../js/base.js"></script>
|
| | | <script type="text/javascript" src="../src/layui.js"></script>
|
| | | <script type="text/javascript" src="../pages/js/common.js"></script>
|
| | | <script type="text/javascript" src="../pages/js/mylayui.js"></script>
|
| | | <script type="text/javascript">
|
| | | layui.use(['form', 'laytpl', 'jquery', 'element', 'laydate', 'table'], function() {
|
| | |
| | | // 表格模块
|
| | | var tOptions = {
|
| | | elem: '#pageTbl'
|
| | | ,toolbar: false
|
| | | ,toolbar: true
|
| | | ,defaultToolbar: []
|
| | | ,cellMinWidth: 80
|
| | | ,cols: [[
|
| | | {field:'dev_id', title:'设备ID', align:'center', width: 140}
|
| | | ,{field:'BattGroupNum', title:'单体数量', align:'center', width: 140}
|
| | | ,{field:'HourRate', title:'放电小时率', align:'center', width: 160}
|
| | | ,{field:'DisCurr', title:'放电电流', align:'center', width: 160}
|
| | | ,{field:'DisCap', title:'放电电容', align:'center', width: 160}
|
| | | ,{field:'DisTime', title:'放电时长', align:'center', width: 160}
|
| | | ,{field:'GroupVol_Low', title:'组端电压下限', align:'center', width: 220}
|
| | | ,{field:'MonomerVol_Low', title:'单体电压下限', align:'center', width: 220}
|
| | | {type:'checkbox',fixed: 'left'}
|
| | | ,{field:'dev_id', title:'设备ID', align:'center', width: 140}
|
| | | ,{field:'StationName', title:'机房名称', align:'center', width: 480}
|
| | | ,{field:'BattGroupNum', title:'电池组索引', align:'center', width: 140}
|
| | | ,{field:'DisCurr', title:'放电电流(A)', align:'center', width: 160}
|
| | | ,{field:'DisCap', title:'放电容量(AH)', align:'center', width: 160}
|
| | | ,{field:'DisTime', title:'放电时长(分钟)', align:'center', width: 160}
|
| | | ,{field:'GroupVol_Low', title:'组端电压下限(V)', align:'center', width: 220}
|
| | | ,{field:'MonomerVol_Low', title:'单体电压下限(V)', align:'center', width: 220}
|
| | | ,{field:'MonomerLowCount', title:'单体数量下限', align:'center', width: 220}
|
| | | ,{field:'MonomerTmp_High', title:'温度上限', align:'center', width: 140}
|
| | | ,{field:'OnlineLowAction', title:'在线电压低处理', align:'center', width: 240}
|
| | | ,{field:'ChargeCurrSet', title:'充电电流', align:'center', width: 140}
|
| | | ,{field:'DCVolHighLimit', title:'升压上限', align:'center', width: 140}
|
| | | ,{field:'MonomerTmp_High', title:'温度上限(℃)', align:'center', width: 140}
|
| | | ,{field:'OnlineLowAction', title:'在线电压低处理', templet: '#OnlineLowActionText', align:'center', width: 240}
|
| | | ,{field:'ChargeCurrSet', title:'充电电流(A)', align:'center', width: 140}
|
| | | ,{field:'DCVolHighLimit', title:'升压上限(V)', align:'center', width: 140}
|
| | | ,{field:'doThings', fixed: 'right', title: '设置状态', toolbar: '#setStatus', align: 'center', width: 140}
|
| | | ]]
|
| | | ,data: []
|
| | | ,limit: 20
|
| | | ,page: true
|
| | | ,limit: 10000
|
| | | ,page: false
|
| | | ,height: 'full-11'
|
| | | };
|
| | | for(var i=0; i<setCurr.length; i++) {
|
| | | tOptions.data.push(setCurr[i]);
|
| | | var _setCurr = setCurr[i];
|
| | | if(_setCurr.num==1) {
|
| | | _setCurr.setCurr = 1;
|
| | | }else {
|
| | | _setCurr.setCurr = 2;
|
| | | }
|
| | | tOptions.data.push(_setCurr);
|
| | | }
|
| | | // 渲染表格
|
| | | table.render(tOptions);
|
| | | |
| | | var btsCmd = GLOBAL.CMD.BTS; // 获取BTS的CMD
|
| | | var startTest = btsCmd.start; // 获取BTS启动测试的CMD
|
| | | |
| | | // 点击启动测试
|
| | | $('#startTest').click(function() {
|
| | | var checkStatus = table.checkStatus('pageTbl');
|
| | | var data = checkStatus.data;
|
| | | if(data.length == 0) {
|
| | | layer.msg('请选择要启动的机房');
|
| | | return;
|
| | | }
|
| | | |
| | | // 是否确定启动
|
| | | layer.confirm('是否确定启动测试', {icon: 3, title: '系统提示'}, function(index) {
|
| | | var param = getStartTestParam(data);
|
| | | |
| | | // 启动测试
|
| | | ajaxStartTest(param);
|
| | | });
|
| | | });
|
| | | |
| | | // 构造启动测试的参数
|
| | | function getStartTestParam(param) {
|
| | | for(var i=0; i<param.length; i++) {
|
| | | param[i].op_cmd = startTest;
|
| | | param[i].num = 0;
|
| | | }
|
| | | |
| | | return param;
|
| | | }
|
| | | |
| | | // 启动测试请求
|
| | | function ajaxStartTest(param) {
|
| | | var load = layer.load(1)
|
| | | |
| | | // 请求后台
|
| | | $.ajax({
|
| | | type: 'post'
|
| | | ,async: true
|
| | | ,url: 'Fbs9100_setparamAction_action_updatePro_dis'
|
| | | ,data: 'json='+JSON.stringify(param)
|
| | | ,dataType: 'json'
|
| | | ,success: function(res) {
|
| | | var rs = JSON.parse(res.result);
|
| | | if(rs.code == 1) {
|
| | | var data = rs.data;
|
| | | layer.msg('启动成功');
|
| | | }else {
|
| | | layer.msg('启动失败');
|
| | | }
|
| | | }
|
| | | ,complete: function() {
|
| | | layer.close(load);
|
| | | }
|
| | | });
|
| | | |
| | | |
| | | }
|
| | | |
| | | });
|
| | | </script>
|
| | | </body>
|
| | |
| | |
|
| | | //电池放电测试
|
| | | {permit_item_name:'batt_test_op_permit',num:58}, //电池放电测试
|
| | | {permit_item_name:'batt_test_op_permit',num:81}, //批量电池放电测试
|
| | |
|
| | | {permit_item_name:'batt_discharge_model_permit',num:59}, //设备充放电模块参数
|
| | | {permit_item_name:'batt_discharge_model_permit',num:63}, //电池信息配置
|
| | |
| | | {permit_item_name:'batt_discharge_model_permit',num:64}, //用户密码重置
|
| | | {permit_item_name:'batt_discharge_model_permit',num:65}, //班组管理
|
| | | {permit_item_name:'batt_discharge_model_permit',num:71}, //电池组配组管理
|
| | | {permit_item_name:'batt_discharge_model_permit',num:82}, //基站安装审批
|
| | | {permit_item_name:'batt_discharge_model_permit',num:83}, //BTS设备升级
|
| | |
|
| | | {permit_item_name:'batt_alm_param_query_permit',num:31}, // 电池告警参数设置
|
| | | {permit_item_name:'batt_alm_param_query_permit',num:66} // 设备告警参数设置
|
| | |
| | | white-space: nowrap;
|
| | | }
|
| | | .uncheck{
|
| | | background-color: #dddddde0!important;
|
| | | background-color: #ddd!important;
|
| | | color: #000!important;
|
| | | }
|
| | | .ui-btn-icon-right {
|
| | | padding-right: 8.5em;
|
| | | }
|
| | | .hbg{
|
| | | background-color:#ddd9;
|
| | | background-color:#ddd;
|
| | | }
|
| | | #battdata {
|
| | | background-color:#dddddd54
|
| | | background-color:#eee;
|
| | | }
|
| | | .ui-select .ui-btn select{
|
| | | width:77%;
|
| | |
| | | <input type="hidden" id="DisCurrMax" class="unable" data-mini="true" />
|
| | |
|
| | | <tr>
|
| | | <td>基站电话号码</td>
|
| | | <td>*基站电话号码</td>
|
| | | <td>
|
| | | <input type="text" id="station_phone" class="unable" data-mini="true" />
|
| | | </td>
|
| | |
| | |
|
| | | function battnumber(){
|
| | | var selected=''
|
| | | for(var i=1;i<=temp.length;i++){
|
| | | selected+= '<option '+'value='+i+'>'+"电池组"+i+'</option>'; |
| | | console.info(temp);
|
| | | if(temp.length>0){
|
| | | for(var i=0;i<temp.length;i++){
|
| | | selected+= '<option '+'value='+i+'>'+temp[i].binf.BattGroupName+'</option>'; |
| | | }
|
| | | return $('#newbattnum').html(selected); |
| | | }
|
| | | return $('#newbattnum').html(selected); |
| | | }
|
| | |
|
| | | function creatBattView(index){
|
| | | var count=index+1
|
| | | ,battTitle='<div>'+'<h1 class="hbg">'+'电池组'+count+'</h1>'+
|
| | | ,battTitle='<div>'+'<h1 class="hbg">'+temp[index].binf.BattGroupName+'</h1>'+
|
| | | '<table class="layout-set">'+'<tbody>'/*+'<tr>'+'<td>'+'电池品牌'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal" >'+'<select '+'id='+'battproducer'+index+' class="unable" '+'>'
|
| | | ,battBrand=selectedIndex(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>'*/
|
| | | ,battBrand='<tr>'+'<td>'+'电池品牌'+'</td>'+'<td>'+'<input type="text" '+' class="unable" '+'id='+'battproducer'+index+' data-mini="true"'+'value='+'电池品牌'+count+' />'+'</td>'+'</tr>'
|
| | |
| | | var arr = temp;
|
| | |
|
| | | function setcookieCreat(i){
|
| | | var index=Math.ceil(i-1);
|
| | | arrdata = temp[index].binf;
|
| | | console.info(temp);
|
| | | console.info(i)
|
| | | //var index=Math.ceil(i-1);
|
| | | arrdata = temp[i].binf;
|
| | | //console.info(index);
|
| | | //console.info(temp);
|
| | | console.info(arrdata);
|
| | |
| | | //setTimes($("#startTestrecord"),'2000-01-01');
|
| | | //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
|
| | |
|
| | | installstartdata(temp);
|
| | | |
| | | installstartdata(temp);
|
| | | diubao();
|
| | | timeer = window.setTimeout(function() {
|
| | | diubao(); |
| | | }, 4000); //丢包率,通信计数,4秒刷新1次。
|
| | | //4秒刷新一次页面
|
| | | });
|
| | |
|
| | | function applyendyanshou(arr){ //申请验收
|
| | |
| | | });
|
| | |
|
| | | }
|
| | | // 设置浮充电压阀值/设置离线电压阀值 //
|
| | | // 设置浮充电压阀值/设置离线电压阀值 //
|
| | | function setFloatAndoutLine(index) {
|
| | | var monvolstd = "#MonVolStd"+index;
|
| | | var MonCount = "#MonCount" +index;
|
| | |
| | | //setTimes($("#startTestrecord"),data.productDate);
|
| | | //setTimes($("#endTestrecord"),data.useDate);
|
| | | document.getElementById("install_user").value = data.install_user;
|
| | | document.getElementById("tongxunnumber").value = getCookienumber(data.StationId);
|
| | | document.getElementById("diubaonumber").value = getCookiediubao(data.StationId)
|
| | | |
| | |
|
| | | for(var i=0;i<temp.length;i++){
|
| | | data=temp[i];
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | function diubao(){
|
| | | if(temp.length>0){
|
| | | data=temp[0].binf;
|
| | | document.getElementById("tongxunnumber").value = getCookienumber(data.StationId);
|
| | | document.getElementById("diubaonumber").value = getCookiediubao(data.StationId);
|
| | | } |
| | | }
|
| | | function getCookienumber(id){//输入ID,返回通讯计数。数据从缓存获取。
|
| | | //var a = getnumber();
|
| | | var a = getnumber();
|
| | | //console.info(a);
|
| | | if(getCookie("numberget")){
|
| | | var number = getCookie("numberget");
|
| | |
| | | }
|
| | | return 0;
|
| | | }
|
| | | function getnumber(){ //向获取所有通讯计数并存入缓存
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: 'Battinf_applyAction!devCommNum',
|
| | | data: null,
|
| | | dataType: 'json',
|
| | | success:function(data) {
|
| | | data = JSON.parse(data.result);
|
| | | if(data.code==1){
|
| | | console.info(data.data);
|
| | | var json =JSON.stringify(data.data);
|
| | | setCookie("numberget",json);
|
| | | //return data.data; |
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | function getCookiediubao(id){ //丢包率
|
| | | if(getCookie("numberget")){
|
| | | var number = getCookie("numberget");
|
| | |
| | | white-space: nowrap;
|
| | | }
|
| | | .uncheck{
|
| | | background-color: #dddddd38!important;
|
| | | color: #bdbdbdc4!important;
|
| | | background-color: #ddd!important;
|
| | | color: #000!important;
|
| | | }
|
| | | .ui-btn-icon-right {
|
| | | padding-right: 8.5em;
|
| | | }
|
| | | .hbg{
|
| | | background-color:#ddd9;
|
| | | background-color:#ddd;
|
| | | }
|
| | | #battdata {
|
| | | background-color:#dddddd54
|
| | | background-color:#eee;
|
| | | }
|
| | | .ui-select .ui-btn select{
|
| | | width:77%;
|
| | |
| | | <tr>
|
| | | <td>机房名称</td>
|
| | | <td>
|
| | | <input type="text" id="homeName" data-mini="true">
|
| | | |
| | | <textarea id="homeName" class="unable" data-mini="true"></textarea> |
| | | </td>
|
| | | </tr>
|
| | |
|
| | |
| | |
|
| | |
|
| | | <input type="hidden" id="StationIp" data-mini="true" />
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <input type="hidden" id="FbsDeviceIp_YM" class="unable" data-mini="true" value="456"/>
|
| | | |
| | | <input type="hidden" id="FbsDeviceIp_WG" class="unable" data-mini="true" value="456"/>
|
| | | |
| | | <input type="hidden" id="FBSDeviceName" data-mini="true" />
|
| | | |
| | | |
| | |
|
| | | |
| | | |
| | | |
| | | <input type="hidden" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" />
|
| | | |
| | | |
| | | |
| | | <input type="hidden" id="FloatVolLevel" data-mini="true" />
|
| | | |
| | | |
| | | |
| | | |
| | | <input type="hidden" id="OfflineVolLevel" class="unable" data-mini="true" />
|
| | | |
| | | |
| | |
|
| | | <input type="hidden" id="BattFloatCurrent" class="unable" data-mini="true" />
|
| | |
|
| | |
| | | <label for="twentyfour">24个</label>
|
| | | <input type="radio" name="battnum" id="twentyfour" value="24">
|
| | | </fieldset>
|
| | | |
| | | |
| | | |
| | | |
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | |
| | |
|
| | |
|
| | | <tr>
|
| | | <td>基站电话号码</td>
|
| | | <td>*基站电话号码</td>
|
| | | <td>
|
| | | <input type="text" id="station_phone" data-mini="true" />
|
| | | </td>
|
| | |
| | |
|
| | | });
|
| | |
|
| | | |
| | | |
| | | |
| | |
|
| | | $(function () {
|
| | | //setTimes($("#startTestrecord"),'2000-01-01');
|
| | | //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
|
| | |
| | | function getUpdateArr(){
|
| | | mon=$('#MonVolStd').val();
|
| | |
|
| | | |
| | | var arr = new Array();
|
| | |
|
| | | for(var i=0;i<temp.length;i++){
|
| | |
| | | });
|
| | |
|
| | | function nullOrn(){
|
| | | console.info($("#homeName").val());
|
| | | console.info($("#station_phone").val());
|
| | | if($("#homeName").val!=""&&$("#station_phone").val()!=""&&$("#install_user").val()!=""){
|
| | | return true;
|
| | | }else{
|
| | | alert("请填写*内容");
|
| | | }
|
| | | }
|
| | |
|
| | | function editBatt(){//
|
| | |
| | | padding-right: 8.5em;
|
| | | }
|
| | | .hbg{
|
| | | background-color:#ddd9;
|
| | | background-color:#ddd;
|
| | | }
|
| | | #battdata {
|
| | | background-color:#dddddd54
|
| | | background-color:#eee;
|
| | | }
|
| | | .ui-select .ui-btn select{
|
| | | width:77%;
|
| | |
| | |
|
| | | </td>
|
| | | </tr>
|
| | | |
| | | |
| | | |
| | | <input type="hidden" id="StationName4" data-mini="true" />
|
| | |
|
| | | |
| | | <input type="hidden" id="StationIp" data-mini="true" />
|
| | | |
| | | <input type="hidden" id="StationIp" data-mini="true" /> |
| | |
|
| | | <input type="hidden" id="FbsDeviceIp_YM" class="unable" data-mini="true" value="456"/>
|
| | | |
| | | <input type="hidden" id="FbsDeviceIp_WG" class="unable" data-mini="true" value="456"/>
|
| | | |
| | | <input type="hidden" id="FBSDeviceName" data-mini="true" />
|
| | |
|
| | | |
| | | <input type="hidden" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" />
|
| | |
|
| | | |
| | | <input type="hidden" id="FloatVolLevel" data-mini="true" />
|
| | |
|
| | | |
| | | |
| | | <input type="hidden" id="OfflineVolLevel" class="unable" data-mini="true" />
|
| | | |
| | | |
| | |
|
| | | <input type="hidden" id="BattFloatCurrent" class="unable" data-mini="true" />
|
| | |
|
| | |
| | | </tr> -->
|
| | |
|
| | | <input type="hidden" id="MonResStd" data-mini="true" />
|
| | | |
| | | <input type="hidden" id="MonSerStd" data-mini="true" />
|
| | | |
| | | <input type="hidden" id="MonVolLowToAvg" data-mini="true" />
|
| | |
|
| | | <tr>
|
| | |
| | | </tr>
|
| | |
|
| | | <input id="startTestrecord" type="hidden" name="appDate" class="appDatefir" value="2000-01-01 00:00:00" />
|
| | | |
| | | <input id="endTestrecord" type="hidden" name="appDate" class="appDatesec" value="2017-01-01 00:00:00" />
|
| | |
|
| | | <tr>
|
| | |
| | | ,battTitle='<div>'+'<h1 class="hbg">'+'电池组'+count+'</h1>'+
|
| | | '<table class="layout-set">'+'<tbody>'+'<tr>'+'<td>'+'电池品牌'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal">'+'<select '+'id='+'battproducer'+index+'>'
|
| | | ,battBrand=selectedIndex(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>'
|
| | | ,battType='<tr>'+'<td>'+'电池型号'+'</td>'+'<td>'+'<input type="text" '+'id='+'batttype'+index+' data-mini="true"'+'value='+'电池型号'+count+' />'+'</td>'+'</tr>' |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ,battType='<tr>'+'<td>'+'电池型号'+'</td>'+'<td>'+'<input type="text" '+'id='+'batttype'+index+' data-mini="true"'+'value='+'电池型号'+count+' />'+'</td>'+'</tr>' |
| | |
|
| | | ,battNum='<tr>'+'<td>'+'*单体数量'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal">'+'<select '+ 'id='+'MonCount'+index+'>'
|
| | | ,battNumOpt=selectedNum(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>' |
| | | |
| | | |
| | | |
| | | ,battNumOpt=selectedNum(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>' |
| | |
|
| | | ,MonVolStd='<tr>'+'<td>'+'*标称单体电压(V)'+'</td>'+'<td>'+'<input type="text" '+'id='+'MonVolStd'+index+' data-mini="true"'+' class="unable" '+'/>'+'</td>'+'</tr>'
|
| | | ,nomCap='<tr>'+'<td>'+'*标称容量(AH)'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" >'+'<select '+'id='+'MonCapStd'+index+' data-mini="true"'+'>'+creatMonCapOpt()+'</select>'
|
| | |
| | | function selectedIndex(index){
|
| | | var selected='',
|
| | | i=0;
|
| | | selected+= '<option '+'value='+'理士'+'>'+'理士'+'</option>';
|
| | | selected+= '<option '+'value='+'圣阳'+'>'+'圣阳'+'</option>';
|
| | | selected+= '<option '+'value='+'双登'+'>'+'双登'+'</option>';
|
| | | selected+= '<option '+'value='+'SENRY'+'>'+'SENRY'+'</option>';
|
| | | selected+= '<option '+'value='+'南都'+'>'+'南都'+'</option>';
|
| | | selected+= '<option '+'value='+'爱默生'+'>'+'爱默生'+'</option>';
|
| | | selected+= '<option '+'value='+'科士达'+'>'+'科士达'+'</option>';
|
| | | selected+= '<option '+'value='+'银泰'+'>'+' 银泰'+'</option>';
|
| | | selected+= '<option '+'value='+'丰日'+'>'+' 丰日'+'</option>';
|
| | | selected+= '<option '+'value='+'中兴能派'+'>'+' 中兴能派'+'</option>';
|
| | | selected+= '<option '+'value='+'光宇'+'>'+' 光宇'+'</option>'; |
| | | selected+= '<option '+'value='+'艾诺斯华达'+'>'+'艾诺斯华达'+'</option>';
|
| | | selected+= '<option '+'value='+'雄韬'+'>'+' 雄韬'+'</option>';
|
| | | selected+= '<option '+'value='+'风帆'+'>'+' 风帆'+'</option>';
|
| | | selected+= '<option '+'value='+'文隆'+'>'+' 文隆'+'</option>';
|
| | | selected+= '<option '+'value='+'风帆'+'>'+' 风帆'+'</option>';
|
| | | selected+= '<option '+'value='+'中山'+'>'+' 中山'+'</option>';
|
| | | selected+= '<option '+'value='+'美的'+'>'+' 美的'+'</option>';
|
| | | selected+= '<option '+'value='+'朗达'+'>'+' 朗达'+'</option>';
|
| | | selected+= '<option '+'value='+'理士'+'>'+'理士'+'</option>';
|
| | | selected+= '<option '+'value='+'圣阳'+'>'+'圣阳'+'</option>';
|
| | | selected+= '<option '+'value='+'双登'+'>'+'双登'+'</option>';
|
| | | selected+= '<option '+'value='+'SENRY'+'>'+'SENRY'+'</option>';
|
| | | selected+= '<option '+'value='+'南都'+'>'+'南都'+'</option>';
|
| | | selected+= '<option '+'value='+'爱默生'+'>'+'爱默生'+'</option>';
|
| | | selected+= '<option '+'value='+'科士达'+'>'+'科士达'+'</option>';
|
| | | selected+= '<option '+'value='+'银泰'+'>'+' 银泰'+'</option>';
|
| | | selected+= '<option '+'value='+'丰日'+'>'+' 丰日'+'</option>';
|
| | | selected+= '<option '+'value='+'中兴能派'+'>'+' 中兴能派'+'</option>';
|
| | | selected+= '<option '+'value='+'光宇'+'>'+' 光宇'+'</option>'; |
| | | selected+= '<option '+'value='+'艾诺斯华达'+'>'+'艾诺斯华达'+'</option>';
|
| | | selected+= '<option '+'value='+'雄韬'+'>'+' 雄韬'+'</option>';
|
| | | selected+= '<option '+'value='+'风帆'+'>'+' 风帆'+'</option>';
|
| | | selected+= '<option '+'value='+'文隆'+'>'+' 文隆'+'</option>';
|
| | | selected+= '<option '+'value='+'风帆'+'>'+' 风帆'+'</option>';
|
| | | selected+= '<option '+'value='+'中山'+'>'+' 中山'+'</option>';
|
| | | selected+= '<option '+'value='+'美的'+'>'+' 美的'+'</option>';
|
| | | selected+= '<option '+'value='+'朗达'+'>'+' 朗达'+'</option>';
|
| | | return selected;
|
| | | }
|
| | | var temp = getCookie("eleparm");
|
| | |
| | | //setFloatAndoutLine();
|
| | | }
|
| | |
|
| | |
|
| | | function getUpdateArr(){
|
| | | mon=$('#MonVolStd').val();
|
| | | var moncount = 0;
|
| | |
| | | });
|
| | |
|
| | | function nullOrn(){
|
| | | // if($("#BattFloatCurrent").val()&&$("#MonCapStd").val()){
|
| | | return true;
|
| | | //}else{
|
| | | //alert("*项为必填项,不能为空,请重新输入");
|
| | | //return false;
|
| | | // } |
| | | |
| | | console.info($("#homeName").val());
|
| | | console.info($("#station_phone").val());
|
| | | if($("#homeName").val!=""&&$("#station_phone").val()!=""&&$("#install_user").val()!=""){
|
| | | return true; |
| | | }else{
|
| | | alert("请填写*内容");
|
| | | }
|
| | | }
|
| | |
|
| | | function addBattnew(){//新建电池组,添加到申请
|
| | |
| | |
|
| | |
|
| | |
|
| | | function creatMonCapOpt(suoyin){
|
| | | |
| | | var k,optionStr='',allString;
|
| | | |
| | | function creatMonCapOpt(suoyin){ |
| | | var k,optionStr='',allString |
| | | for(var i=1;i<11;i++){
|
| | | |
| | | k=i*50;
|
| | | |
| | | k=i*50; |
| | | //optionStr+='<option'+' value='+k+'>'+k+'</option>';
|
| | | optionStr+='<option'+' value='+k+'>'+k+'</option>';
|
| | | |
| | | |
| | | |
| | | }
|
| | | return allString=optionStr+'<option'+' selected = selected '+' value='+1000+'>'+1000+'</option>';
|
| | | |
| | | |
| | | |
| | | }
|
| | |
|
| | | function getRadioValue(na){
|
| | |
| | | if($(this).find("option:selected").val()==4){$(vol).val(12);}
|
| | | if($(this).find("option:selected").val()==24){$(vol).val(2);}
|
| | | })
|
| | | })(u)
|
| | | |
| | | })(u) |
| | | }
|
| | | }
|
| | | setchangedMonVolStd(suoyin);
|
| | |
| | | for(var i=0;i<index;i++){
|
| | | var s='#MonVolStd'+i;
|
| | | $(s).val(12);
|
| | | }
|
| | | |
| | | } |
| | | }
|
| | |
|
| | | /* 操作成功
|
| | |
| | | white-space: nowrap;
|
| | | }
|
| | | .uncheck{
|
| | | background-color: #dddddde0!important;
|
| | | background-color: #ddd!important;
|
| | | color: #000!important;
|
| | | }
|
| | | .ui-btn-icon-right {
|
| | | padding-right: 8.5em;
|
| | | }
|
| | | .hbg{
|
| | | background-color:#ddd9;
|
| | | background-color:#ddd;
|
| | | }
|
| | | #battdata {
|
| | | background-color:#dddddd54
|
| | | background-color:#eee;
|
| | | }
|
| | | .ui-select .ui-btn select{
|
| | | width:77%;
|
| | |
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="control.html" class="ui-btn ui-corner-all ui-shadow ui-icon-arrow-l ui-btn-icon-left" target="_top" style="padding-bottom:0.7em; padding-top:0.7em;">返回</a>
|
| | | <h1>电导</h1> |
| | | <h1 id="biaoti">电导</h1> |
| | | <div data-role="collapsible" data-type="horizontal" class="ui-btn-right" style="padding-bottom:-0.7em; padding-top:-0.7em;" >
|
| | | <h1 id="alwaysRight">更多</h1>
|
| | | <div class="clear" ></div>
|
| | |
| | | <div data-role="main" class="ui-content">
|
| | |
|
| | | <div class="ui-grid-b">
|
| | | <div class="ui-block-a">MAX <span class="max"> </span></div>
|
| | | <div class="ui-block-b">MIN <span class="min"> </span></div>
|
| | | <div class="ui-block-c">AVG <span class="avg"> </span></div>
|
| | | <div class="ui-block-a">最大值 <span class="max"> </span></div>
|
| | | <div class="ui-block-b">最小值 <span class="min"> </span></div>
|
| | | <div class="ui-block-c">平均值 <span class="avg"> </span></div>
|
| | | </div>
|
| | | <table data-role="table" class="ui-responsive" data-mode="">
|
| | | <thead>
|
| | |
| | | function findtmp(){
|
| | | var temp=getCookie("batt");
|
| | | if(temp.length>0){
|
| | | var batt=eval("("+temp+")"); |
| | | var batt=eval("("+temp+")");
|
| | | $("#biaoti").text("电导("+batt.BattGroupName+")");//标题添加电池组编号 |
| | | $.ajax({
|
| | | url : "Batt_rtdataAction_serchByCondition",
|
| | | async: true,
|
| | |
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a id= "return" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">返回</a>
|
| | | <h1>实时—检测数据</h1>
|
| | | <h1 id="biaoti">实时—检测数据</h1>
|
| | | </div>
|
| | |
|
| | | <div data-role="content">
|
| | |
| | | </li> -->
|
| | | </ul>
|
| | | <div data-role="collapsible" data-collapsed="false">
|
| | | <h1>电池组状态</h1>
|
| | | <h1 id="zhuangtai">电池组状态</h1>
|
| | | <div class="tbl-container"></div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | }else{
|
| | | arrTd.push("------");
|
| | | }
|
| | | |
| | | $("#zhuangtai").find("a").text("电池组状态("+batt.BattGroupName+")");
|
| | | createTbl(tbl, arrTh, arrTd);
|
| | | window.clearTimeout(timeer);
|
| | | timeer = window.setTimeout(function() {
|
| | |
| | | case 119026:return "基站掉站告警";
|
| | | case 119027:return "基站开门告警";
|
| | | case 119028:return "设备高温告警";
|
| | | case 119032:return "设备SD卡故障";
|
| | | case 119033:return "采集线告警";
|
| | | }
|
| | | }
|
| | | return "通信故障";
|
| | |
| | | <option value="119026">基站掉站告警</option>
|
| | | <option value="119027">基站开门告警</option>
|
| | | <option value ="119028">设备高温告警</option>
|
| | | |
| | | <option value ="119032">设备SD卡故障</option>
|
| | | <option value ="119033">采集线告警</option>
|
| | | </select>
|
| | | </div>
|
| | | <div class="fg-panel-btn">
|
| | |
| | | case 119026:return "基站掉站告警";
|
| | | case 119027:return "基站开门告警";
|
| | | case 119028:return "设备高温告警";
|
| | | case 119032:return "设备SD卡故障";
|
| | | case 119033:return "采集线告警";
|
| | | }
|
| | | }
|
| | | return "通信故障";
|
| | |
| | | </div>
|
| | | </div>
|
| | | <div class="layui-col-12 t-align-right mrt5">
|
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" id="uploadVideo">视频上传</button>
|
| | | <span style="color: #FF0000;" class="mrr4">请上传微信拍摄的视频</span><button class="layui-btn layui-btn-normal layui-btn-sm" id="uploadVideo">视频上传</button>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="control.html" class="ui-btn ui-corner-all ui-shadow ui-icon-arrow-l ui-btn-icon-left" target="_top" style="padding-bottom:0.7em; padding-top:0.7em;">返回</a>
|
| | | <h1>内阻</h1>
|
| | | <h1 id="biaoti">内阻</h1>
|
| | |
|
| | | <div data-role="collapsible" data-type="horizontal" class="ui-btn-right" style="padding-bottom:-0.7em; padding-top:-0.7em;" >
|
| | | <h1 id="alwaysRight">更多</h1>
|
| | |
| | |
|
| | | <div data-role="main" class="ui-content">
|
| | | <div class="ui-grid-b">
|
| | | <div class="ui-block-a">MAX <span class="max"> </span></div>
|
| | | <div class="ui-block-b">MIN <span class="min"> </span></div>
|
| | | <div class="ui-block-c">AVG <span class="avg"> </span></div>
|
| | | <div class="ui-block-a">最大值 <span class="max"> </span></div>
|
| | | <div class="ui-block-b">最小值 <span class="min"> </span></div>
|
| | | <div class="ui-block-c">平均值 <span class="avg"> </span></div>
|
| | | </div>
|
| | | <table data-role="table" data-mode="" class="ui-responsive" id="myTable">
|
| | | <thead>
|
| | |
| | | if(temp.length>0){
|
| | | var batt=eval("("+temp+")");
|
| | | //console.info(batt);
|
| | | $("#biaoti").text("内阻("+batt.BattGroupName+")");//标题添加电池组编号
|
| | | $.ajax({
|
| | | url : "Batt_rtdataAction_serchByCondition",
|
| | | async: true,
|
| | |
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="control.html" class="ui-btn ui-corner-all ui-shadow ui-icon-arrow-l ui-btn-icon-left" target="_top" style="padding-bottom:0.7em; padding-top:0.7em;">返回</a>
|
| | | <h1>温度</h1> |
| | | <h1 id="biaoti">温度</h1> |
| | | <div data-role="collapsible" data-type="horizontal" class="ui-btn-right" style="padding-bottom:-0.7em; padding-top:-0.7em;" >
|
| | | <h1 id="alwaysRight">更多</h1>
|
| | | <h1 class="full-width">
|
| | |
| | | <div data-role="main" class="ui-content">
|
| | |
|
| | | <div class="ui-grid-b">
|
| | | <div class="ui-block-a">MAX <span class="max"> </span></div>
|
| | | <div class="ui-block-b">MIN <span class="min"> </span></div>
|
| | | <div class="ui-block-c">AVG <span class="avg"> </span></div>
|
| | | <div class="ui-block-a">最大值 <span class="max"> </span></div>
|
| | | <div class="ui-block-b">最小值 <span class="min"> </span></div>
|
| | | <div class="ui-block-c">平均值 <span class="avg"> </span></div>
|
| | | </div>
|
| | | <table data-role="table" class="ui-responsive" data-mode="">
|
| | | <thead>
|
| | |
| | | if(temp.length>0){
|
| | | var batt=eval("("+temp+")");
|
| | | //console.info(batt);
|
| | | $("#biaoti").text("温度("+batt.BattGroupName+")");//标题添加电池组编号
|
| | | $.ajax({
|
| | | url : "Batt_rtdataAction_serchByCondition",
|
| | | async: true,
|
| | |
| | | height:1px;
|
| | | clear:both;
|
| | | }
|
| | | .ui-grid-c>.ui-block-a, .ui-grid-c>.ui-block-b, .ui-grid-c>.ui-block-c, .ui-grid-c>.ui-block-d {
|
| | | width: 20%;
|
| | | font-size: 0.9em;
|
| | | }
|
| | | .ui-grid-c>.ui-block-c, .ui-grid-c>.ui-block-d {
|
| | | width:30%;
|
| | | }
|
| | | </style>
|
| | |
|
| | |
|
| | |
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="control.html" class="ui-btn ui-corner-all ui-shadow ui-icon-arrow-l ui-btn-icon-left" target="_top" style="padding-bottom:0.7em; padding-top:0.7em;">返回</a>
|
| | | <h1>电压</h1>
|
| | | <h1 id="biaoti">电压</h1>
|
| | |
|
| | | <div data-role="collapsible" data-type="horizontal" class="ui-btn-right" style="padding-bottom:-0.7em; padding-top:-0.7em;" >
|
| | | <h1 id="alwaysRight">更多</h1>
|
| | |
| | | </div>
|
| | |
|
| | | <div data-role="main" class="ui-content">
|
| | | <div class="ui-grid-b">
|
| | | <div class="ui-block-a">MAX <span class="max"> </span></div>
|
| | | <div class="ui-block-b">MIN <span class="min"> </span></div>
|
| | | <div class="ui-block-c">AVG <span class="avg"> </span></div>
|
| | | <div class="ui-grid-c">
|
| | | <div class="ui-block-a">最大值<span class="max"> </span></div>
|
| | | <div class="ui-block-b">最小值<span class="min"> </span></div>
|
| | | <div class="ui-block-c">平均值<span class="avg"> </span></div>
|
| | | <div class="ui-block-d">累加和<span class="leijiasum"> </span></div>
|
| | | </div>
|
| | | <table data-role="table" data-mode="" class="ui-responsive" id="myTable">
|
| | | <thead>
|
| | |
| | |
|
| | | function findtmp(){
|
| | | var temp=getCookie("batt");
|
| | | console.info(temp);
|
| | | if(temp.length>0){
|
| | | var batt=eval("("+temp+")");
|
| | | $("#biaoti").text("电压("+batt.BattGroupName+")");//标题添加电池组编号
|
| | | //console.info(batt);
|
| | | $.ajax({
|
| | | url : "Batt_rtdataAction_serchByCondition",
|
| | |
| | | function createCount(datas){
|
| | | var temp=new Array();
|
| | | var sum=0;
|
| | | console.info(datas);
|
| | | for(var i=0;i<datas.length;i++){
|
| | | temp.push((datas[i].mon_vol).toFixed(3));
|
| | | sum+=parseFloat(temp[i]);
|
| | |
| | | var max=Math.max.apply(null, temp);
|
| | | var min=Math.min.apply(null, temp);
|
| | | var avg=(sum/temp.length).toFixed(3);
|
| | | |
| | | |
| | | sum=(sum).toFixed(2); |
| | | $(".max").text(max+'V');
|
| | | $(".min").text(min+'V');
|
| | | $(".avg").text(avg+'V'); |
| | | $(".avg").text(avg+'V'); |
| | | $(".leijiasum").text(sum+'V'); |
| | | }
|
| | |
|
| | | function isMax(datas,flag){
|
| | |
| | | {"taskchange_query_permit","37"}, //作业变更查询
|
| | |
|
| | | {"batt_test_op_permit","58"}, //电池放电测试
|
| | | {"batt_test_op_permit","81"}, //批量电池放电测试
|
| | |
|
| | | //超级管理员界面
|
| | | {"batt_discharge_model_permit","59"}, //设备充放电模块参数
|
| | |
| | | {"batt_discharge_model_permit","64"}, //用户密码重置
|
| | | {"batt_discharge_model_permit","65"}, //班组管理
|
| | | {"batt_discharge_model_permit","71"}, //电池组配组管理
|
| | | {"batt_discharge_model_permit","82"}, //基站安装审批
|
| | | {"batt_discharge_model_permit","83"}, //BTS设备升级
|
| | |
|
| | | {"batt_alm_param_query_permit","31"}, //告警参数设置
|
| | | {"batt_alm_param_query_permit","66"}, //设备告警参数设置
|
| | |
| | |
|
| | | ################### ex-battinfo.jsp ##################################
|
| | | Approval_station_install=\u57fa\u7ad9\u5b89\u88c5\u5ba1\u6279
|
| | |
|
| | |
|
| | | ################## batch-set-curr.jsp ##############################
|
| | | Bulk_nuclear_cap_test = \u6279\u91cf\u6838\u5bb9\u6d4b\u8bd5
|
| | |
|
| | | ################## batt-station-update1.jsp #########################
|
| | | BTSEquipment_upgrades = BTS\u8bbe\u5907\u5347\u7ea7 |