...
|
...
|
@@ -67,7 +67,11 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//lsq 资源视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchBizIndex').unbind('click').on('click', function () {
|
|
|
reloadTable();
|
|
|
return false;
|
|
|
})
|
|
|
var loading = layer.load(2);
|
|
|
|
|
|
// 树收缩事件
|
...
|
...
|
@@ -237,6 +241,47 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//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
|
|
|
}
|
|
|
});
|
|
|
$("#bizTotal").html(res.count);
|
...
|
...
|
@@ -795,6 +840,11 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
//lsq 业务视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchBizTreeTable').unbind('click').on('click', function () {
|
|
|
renderTreeTable(busId, curTreeNode.data.id);
|
|
|
return false;
|
|
|
})
|
|
|
//选择资源状态
|
|
|
form.on('select(biz_treetable_resStatus)', function (data) {
|
|
|
renderTreeTable(busId, curTreeNode.data.id);
|
...
|
...
|
|