| | |
| | | </table>
|
| | | </td>
|
| | | <td>
|
| | | <table>
|
| | | <table id="alarm-type-list">
|
| | | <tr>
|
| | | <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> <!-- 组端电压 -->
|
| | |
| | | }; //分页信息
|
| | | //页面加载后初始化内容
|
| | | $(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){
|
| | |
| | | filterLoad = layer.load();
|
| | | }
|
| | | var pre_home = getQueryString('home');
|
| | | console.info(pre_home);
|
| | | //console.info(pre_home);
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|