...
|
...
|
@@ -59,7 +59,10 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'treeTable' |
|
|
reloadTable();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//lsq 域视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchDomainIndex').unbind('click').on('click', function () {
|
|
|
reloadTable();
|
|
|
})
|
|
|
var loading = layer.load(2);
|
|
|
|
|
|
//this
|
...
|
...
|
@@ -228,6 +231,46 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'treeTable' |
|
|
if ($.isFunction(fun)) {
|
|
|
fun.call(this, data, node.data, options);
|
|
|
}
|
|
|
//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
|
|
|
}
|
|
|
});
|
|
|
loadParamSelect();
|
...
|
...
|
@@ -1320,6 +1363,10 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'treeTable' |
|
|
renderTreeTable(domainId, curTreeNode.data.id)
|
|
|
}
|
|
|
});
|
|
|
//lsq 域视图页增加搜索按钮 2022-06-27
|
|
|
$('#searchDomainTreeTable').unbind('click').on('click', function () {
|
|
|
renderTreeTable(domainId, curTreeNode.data.id);
|
|
|
})
|
|
|
//选择资源状态
|
|
|
form.on('select(domain_treetable_resStatus)', function (data) {
|
|
|
renderTreeTable(domainId, curTreeNode.data.id);
|
...
|
...
|
|