...
|
...
|
@@ -1286,24 +1286,25 @@ 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');
|
|
|
let formWidth =sessionStorage.getItem('formWidth');
|
|
|
if(!formWidth){
|
|
|
formWidth= $('.form-item-open-stow').width();
|
|
|
sessionStorage.setItem('formWidth',formWidth)
|
|
|
}
|
|
|
let winWidth = $('.form-item-open-stow').parents('.layui-card-header').width();
|
|
|
if (formWidth + 120 > winWidth) {
|
|
|
$('.openStow').css('display', 'inline-block')
|
|
|
$('.form-item-open-stow').css('height', '50px');
|
|
|
} else {
|
|
|
$('#openStow').css('display', 'none')
|
|
|
$('.openStow').css('display', 'none')
|
|
|
}
|
|
|
$("#openStow").unbind('click').on('click', function () {
|
|
|
$(".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');
|
|
|
$('.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');
|
|
|
$('.form-item-open-stow').css('height', '50px');
|
|
|
}
|
|
|
})
|
|
|
//end lsq 2022-06-21
|
...
|
...
|
|