...
|
...
|
@@ -307,6 +307,46 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
}
|
|
|
|
|
|
}
|
|
|
//start lsq 资源视图搜索条件太多,增加展开/收起的功能 2022-06-27
|
|
|
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-27
|
|
|
}
|
|
|
});
|
|
|
if (data.length > 0) {
|
...
|
...
|
@@ -708,7 +748,11 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//lsq 资源视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchResIndex').unbind('click').on('click', function () {
|
|
|
reloadTable();
|
|
|
return false;
|
|
|
})
|
|
|
//资源详细信息
|
|
|
function renderDetail(resId, resType) {
|
|
|
$('#resIndexContent').hide();
|
...
|
...
|
@@ -820,6 +864,11 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
//lsq 资源视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchResTreeTable').unbind('click').on('click', function () {
|
|
|
renderTreeTable(curTreeNode.data.id);
|
|
|
return false;
|
|
|
})
|
|
|
//选择资源状态
|
|
|
form.on('select(treetable_resStatus)', function (data) {
|
|
|
renderTreeTable(curTreeNode.data.id);
|
...
|
...
|
@@ -1722,7 +1771,6 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
return {getData: getCheckData};
|
|
|
});
|
|
|
}); |
...
|
...
|
|