...
|
...
|
@@ -790,10 +790,14 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', |
|
|
|
|
|
//start lsq 历史告警搜索条件太多,增加展开/收起的功能 2022-06-21
|
|
|
let formWidth=$('form[lay-filter="historywarning-form"] .layui-form-item').width();
|
|
|
let winWidth=$(window).width();
|
|
|
if(formWidth+250>winWidth){
|
|
|
let winWidth=$('form[lay-filter="historywarning-form"]').parent().parent('.layui-card-header').width();
|
|
|
if(formWidth+100>winWidth){
|
|
|
$('#openStowHis').css('display','inline-block')
|
|
|
|
|
|
$('form[lay-filter="historywarning-form"] .form-item-open-stow').css('width',(formWidth-50)+'px');
|
|
|
$('form[lay-filter="historywarning-form"] .form-item-open-stow').css('height','50px');
|
|
|
}else{
|
|
|
$('#openStowHis').css('display','none')
|
|
|
}
|
|
|
$("#openStowHis").unbind('click').on('click',function (){
|
|
|
if($(this).text()=='展开'){
|
...
|
...
|
|