...
|
...
|
@@ -80,7 +80,10 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
reloadTable(resType);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//lsq 资源页增加搜索按钮 2022-06-29
|
|
|
$('#seachResListTable').unbind('click').on('click', function () {
|
|
|
reloadTable(resType);
|
|
|
})
|
|
|
|
|
|
//选择框搜索事件
|
|
|
bindSelectEvent();
|
...
|
...
|
@@ -110,7 +113,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
collProtocolList: $("#resManageIndexForm").find("select[id='collProtocol']").val(),
|
|
|
pageName: 'reslist'
|
|
|
}
|
|
|
, height: 'full-350'
|
|
|
// , height: 'full-350'
|
|
|
//lsq 配置资源弹框的表格高度调整 2022-06-29
|
|
|
, height: 'full-250'
|
|
|
, cellMinWidth: 80
|
|
|
, page: {
|
|
|
layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
|
...
|
...
|
@@ -289,6 +294,46 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
function getAllCheckData() {
|
|
|
return resListSelectIds;
|
|
|
}
|
|
|
//start lsq 活动告警搜索条件太多,增加展开/收起的功能 2022-06-21
|
|
|
let formWidth =$('.form-item-open-stow').width();
|
|
|
let elem=$('.form-item-open-stow');
|
|
|
if(elem){
|
|
|
for(let i=0;i<elem.length;i++){
|
|
|
if($(elem[i]).width()){
|
|
|
formWidth=$(elem[i]).width();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(!formWidth){
|
|
|
formWidth= sessionStorage.getItem('formWidth');
|
|
|
}else{
|
|
|
sessionStorage.setItem('formWidth',formWidth)
|
|
|
}
|
|
|
let winWidth = $('.form-item-open-stow').parents('.layui-status').width();
|
|
|
let elemW=$('.form-item-open-stow').parents('.layui-status');
|
|
|
if(elemW){
|
|
|
for(let i=0;i<elemW.length;i++){
|
|
|
if($(elemW[i]).width()){
|
|
|
winWidth=$(elemW[i]).width();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if (formWidth + 130 > winWidth) {
|
|
|
$('.openStow').css('display', 'inline-block')
|
|
|
$('.form-item-open-stow').css('height', '50px');
|
|
|
} else {
|
|
|
$('.openStow').css('display', 'none')
|
|
|
}
|
|
|
$(".openStow").unbind('click').on('click', function () {
|
|
|
if ($(this).text() == '展开') {
|
|
|
$(this).text('收起')
|
|
|
$('.form-item-open-stow').css('height', 'auto');
|
|
|
} else {
|
|
|
$(this).text('展开')
|
|
|
$('.form-item-open-stow').css('height', '50px');
|
|
|
}
|
|
|
})
|
|
|
//end lsq 2022-06-21
|
|
|
|
|
|
return {getData: getCheckData, getAllCheckData: getAllCheckData, reloadResTable: reloadTable};
|
|
|
});
|
...
|
...
|
|