...
|
...
|
@@ -228,6 +228,10 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', |
|
|
reloadTable();
|
|
|
}
|
|
|
});
|
|
|
//lsq 活动告警页增加搜索按钮 2022-06-21
|
|
|
$('#seachActiveWarning').unbind('click').on('click',function (){
|
|
|
reloadTable();
|
|
|
})
|
|
|
//选择框搜索事件
|
|
|
bindSelectEvent();
|
|
|
initDate();
|
...
|
...
|
@@ -1271,5 +1275,27 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', |
|
|
});
|
|
|
|
|
|
}
|
|
|
//start lsq 活动告警搜索条件太多,增加展开/收起的功能 2022-06-21
|
|
|
let formWidth=$('form[lay-filter="activewarning-form"] .layui-form-item').width();
|
|
|
let winWidth=$('form[lay-filter="historywarning-form"]').parent().parent('.layui-card-header').width();
|
|
|
if(formWidth+100>winWidth){
|
|
|
$('#openStow').css('display','inline-block')
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('width',(formWidth-50)+'px');
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('height','50px');
|
|
|
}else{
|
|
|
$('#openStow').css('display','none')
|
|
|
}
|
|
|
$("#openStow").unbind('click').on('click',function (){
|
|
|
if($(this).text()=='展开'){
|
|
|
$(this).text('收起')
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('width',(formWidth-50)+'px');
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('height','auto');
|
|
|
}else{
|
|
|
$(this).text('展开')
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('width',(formWidth-50)+'px');
|
|
|
$('form[lay-filter="activewarning-form"] .form-item-open-stow').css('height','50px');
|
|
|
}
|
|
|
})
|
|
|
//end lsq 2022-06-21
|
|
|
});
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|