...
|
...
|
@@ -9,7 +9,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
var common = layui.common;
|
|
|
var commonCols = layui.commonCols;
|
|
|
var sortKey = '';
|
|
|
var fieldExpandArr=[];//获取扩展的表格字段
|
|
|
var fieldExpandArr = [];//获取扩展的表格字段
|
|
|
|
|
|
//用树表格展示的资源类型
|
|
|
var treeTableResTypes = [
|
...
|
...
|
@@ -32,7 +32,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
var parentResType = router.search.restype
|
|
|
|
|
|
var activeResType = '', listTable = null, treeListTable = null;
|
|
|
|
|
|
var parentId = 'null';
|
|
|
//绑定检索事件
|
|
|
bindSearchEvent();
|
|
|
var collProtocols = "";
|
...
|
...
|
@@ -115,8 +115,12 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
}
|
|
|
|
|
|
renderSearchCondition(resType, bizId);
|
|
|
let colResType = resType;
|
|
|
if (colResType == 'MIDDLEWARE_WEBLOGIC' && parentId == 'null') {
|
|
|
colResType = 'MIDDLEWARE_WEBLOGICCONSOLE'
|
|
|
}
|
|
|
|
|
|
var cols = commonCols.resTypeCls[resType];
|
|
|
var cols = commonCols.resTypeCls[colResType];
|
|
|
//start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
|
|
|
admin.req({
|
|
|
url: common.domainName + "/api-web/resource/expand/list?resType=" + resType
|
...
|
...
|
@@ -171,7 +175,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
resHealth: $("#biz_reslist_resStatus").val(),
|
|
|
busId: bizId,
|
|
|
colonlyId: $("#biz_reslist_res_colony").val(),
|
|
|
parentId: $("#biz_reslist_res_cluster").val(),
|
|
|
parentId: parentId,
|
|
|
linkState: $("#biz_reslist_link_state").val(),
|
|
|
state: $("#biz_reslist_state").val(),
|
|
|
// hostState: $("#biz_reslist_host_state").val(),
|
...
|
...
|
@@ -217,7 +221,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
}
|
|
|
});
|
|
|
})
|
|
|
},300)
|
|
|
}, 300)
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -292,7 +296,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
setTimeout(function (){
|
|
|
setTimeout(function () {
|
|
|
//获取配置的列
|
|
|
common.getTableCols({
|
|
|
domId: 'bizResTreeTable',
|
...
|
...
|
@@ -431,7 +435,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
layer.closeAll();
|
|
|
});
|
|
|
})
|
|
|
},300)
|
|
|
}, 300)
|
|
|
}
|
|
|
|
|
|
//获取资源统计
|
...
|
...
|
@@ -466,6 +470,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
});
|
|
|
//集群选择事件
|
|
|
form.on('select(biz_reslist_res_cluster)', function (data) {
|
|
|
parentId = $('#biz_reslist_res_cluster').val();
|
|
|
renderList(bizId, activeResType)
|
|
|
reloadTable();
|
|
|
});
|
|
|
//资源池选择事件
|
...
|
...
|
@@ -504,7 +510,6 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
$('#biz_reslist_keyword').val('');
|
|
|
$('#biz_reslist_resStatus').val('');
|
|
|
$('#biz_reslist_res_colony').val('');
|
|
|
$('#biz_reslist_res_cluster').val('null');
|
|
|
$("#aliyun_plantform").val('');
|
|
|
if (collProtocols) {
|
|
|
xmSelect.get('#collProtocolSelect', true).setValue([]);
|
...
|
...
|
@@ -530,8 +535,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
$("#biz_reslist_res_cluster_id").show();
|
|
|
} else if (resType == 'MIDDLEWARE_WEBLOGIC') {
|
|
|
searchType = 'MIDDLEWARE_WEBLOGIC';
|
|
|
optons = "<option value=''>=全部服务=</option>"
|
|
|
optons += "<option value='null'>=全部控制台=</option>"
|
|
|
optons = "<option value='null'>=全部控制台=</option>"
|
|
|
optons += "<option value=''>全部服务</option>"
|
|
|
targetId = 'biz_reslist_res_cluster';
|
|
|
$("#biz_reslist_res_cluster_id").show();
|
|
|
} else {
|
...
|
...
|
@@ -663,7 +668,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm |
|
|
resHealth: $("#biz_reslist_resStatus").val(),
|
|
|
busId: bizId,
|
|
|
colonlyId: $("#biz_reslist_res_colony").val(),
|
|
|
parentId: $("#biz_reslist_res_cluster").val(),
|
|
|
parentId: parentId,
|
|
|
sortKey: sortKey,
|
|
|
state: $("#biz_reslist_state").val(),
|
|
|
linkState: $("#biz_reslist_link_state").val(),
|
...
|
...
|
|