| | |
| | | </table>
|
| | | </td>
|
| | | <td>
|
| | | <table>
|
| | | <table id="alarm-type-list">
|
| | | <tr>
|
| | | <input type="hidden" name="bmd.mainf.usr_id" value="0" class="119001"/> <!-- 在线电压 -->
|
| | | <td><input type="checkbox" checked="checked" name="bmd.mainf.usr_id" value="119001" class="119001"/><s:text name="On-line_voltage"/></td> <!-- 在线电压 -->
|
| | | <td><input type="checkbox" checked="checked" name="bmd.mainf.fault_type_id" value="119002" class="119002"/><s:text name="Group_voltage"/></td> <!-- 组端电压 -->
|
| | | <td><input type="checkbox" checked="checked" name="bmd.mainf.fault_level" value="119003" class="119003"/><s:text name="Charging_current"/></td> <!-- 充电电流 -->
|
| | | <td><input type="checkbox" checked="checked" name="bmd.mainf.record_uid" value="119004" class="119004"><s:text name="Discharge_current"/></td> <!-- 放电电流 -->
|
| | |
| | | }; //分页信息
|
| | | //页面加载后初始化内容
|
| | | $(document).ready(function(){
|
| | | setUserName();
|
| | | var pre_warntype = getQueryString("warntype")?parseInt(getQueryString("warntype")):-1;
|
| | | if(pre_warntype >= 0){
|
| | | var alarmtypelist = $('#alarm-type-list input[type=checkbox]');
|
| | | alarmtypelist.prop('checked',false);
|
| | | alarmtypelist.eq(pre_warntype).prop('checked',true);
|
| | | /* switch(pre_warntype){
|
| | | case 0:{
|
| | | |
| | | }
|
| | | } */
|
| | | initAlarmParam();
|
| | | }
|
| | | |
| | | |
| | | //初始化页面的高度
|
| | | var screenHeight=$(window).height(); //获取可视化窗口高度
|
| | | var bodyHeight=$('body').height(); //获取页面高度
|
| | |
| | |
|
| | | //当点击多选框时根据是否选中设置不同的值
|
| | | $('#search_form input[type="checkbox"]').click(function(){
|
| | | initAlarmParam();
|
| | | searchAlarm(); |
| | | });
|
| | |
|
| | | //初始化告警参数
|
| | | function initAlarmParam(){
|
| | | //console.info(111111);
|
| | | $('#search_form input[type="checkbox"]').each(function(){
|
| | | if(this.checked==true){
|
| | |
| | | $('#low_alm_value').attr('value',$('#low_alm_value').attr('class'));
|
| | | }
|
| | | });
|
| | | searchAlarm(); |
| | | });
|
| | | |
| | | }
|
| | |
|
| | |
|
| | | //当点击查询时触发查询事件
|
| | |
| | | $.post("Battalarm_dataAction!serchByCondition",$('#search_form').serialize(),function(data){
|
| | | data=data.result;
|
| | | data=eval("("+data+")");
|
| | | console.info(data);
|
| | | //console.info(data);
|
| | | var pagecurr=parseInt($('#pageCurr').attr('value'));
|
| | | var pagesize=parseInt($('#pageSize').attr('value'));
|
| | | if(data.code==1 && data.data.length>0){
|
| | |
| | | eleform.submit();
|
| | | }
|
| | |
|
| | | |
| | | var isNewLoad = true;
|
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | |
| | | var pre_province = getQueryString("province");
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | |
| | | $option.attr("value", "");
|
| | | }else{
|
| | | $option.text(data.data[i-1]);
|
| | | $option.attr("value",data.data[i-1]); |
| | | $option.attr("value",data.data[i-1]);
|
| | | if(pre_province == data.data[i-1] && isNewLoad){
|
| | | $option.attr('selected',true);
|
| | | } |
| | | }
|
| | | $select.append($option);
|
| | | }
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_city = getQueryString("city");
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var tmp = getOptionsData(__data.StationName2, __data.StationName2, __data);
|
| | | if(pre_city == __data.StationName2 && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName2, __data.StationName2, __data,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | | // 根据数据生成下拉列表
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_county = getQueryString("county");
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | |
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | if(pre_county == __data.StationName5 && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_home = getQueryString('home');
|
| | | //console.info(pre_home);
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr);
|
| | | if(pre_home == __data.StationName && isNewLoad){
|
| | | tmp = getOptionsData(__data.StationName3, __data.StationName3, __data, _attr,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | | }else{
|
| | | $("#station_name").text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | |
| | | findserchByBattGroupNamebystationname();
|
| | | });
|
| | | }
|
| | |
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_battid = getQueryString("battid");
|
| | | //var station_name1=$("#station_name1 option:selected").val();
|
| | | //var station_name=$("#station_name option:selected").val();
|
| | |
|
| | |
| | | };
|
| | | var txt = _data.BattGroupName+'-'+_data.MonCount+"<s:text name='Section'/>";
|
| | | var tmp = getOptionsData(txt, _data.BattGroupId, _data, _attr);
|
| | | if(pre_battid == _data.BattGroupId && isNewLoad){
|
| | | tmp = getOptionsData(txt, _data.BattGroupId, _data, _attr,{},true);
|
| | | }
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | | }else{
|
| | | $("#battgroup_name").text('').html('<option>暂无可测蓄电池组</option>');
|
| | | }
|
| | | |
| | | isNewLoad = false;
|
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|