...
|
...
|
@@ -78,6 +78,21 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
});
|
|
|
});
|
|
|
|
|
|
loadCollProtocolSelect();
|
|
|
function loadCollProtocolSelect(){
|
|
|
$.ajax({
|
|
|
url:common.domainName+'/api-web/manage/protocol/page?page=1&limit=10000&access_token=' + accessToken,
|
|
|
success:function (res) {
|
|
|
if(res && res.data){
|
|
|
res.data.forEach(function (v) {
|
|
|
var options = `<option value="${v.protocolCode}">${v.protocolName}</option>`
|
|
|
$('[lay-filter="collProtocol"]').append(options);
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//左侧树
|
|
|
function loadResTree(data) {
|
|
|
tree.render({
|
...
|
...
|
@@ -701,6 +716,9 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
form.on('select(resManageStateSelect)',function (data) {
|
|
|
reloadTable();
|
|
|
})
|
|
|
form.on('select(collProtocol)',function (data) {
|
|
|
reloadTable();
|
|
|
})
|
|
|
form.on('select(slt_res_manage_superior)',function (data) {
|
|
|
reloadTable();
|
|
|
})
|
...
|
...
|
@@ -761,8 +779,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
}
|
|
|
}
|
|
|
, {field: 'shortName', title: '别名', align: 'center', sort: true, hide: 'true'}
|
|
|
, {field: 'ip', title: 'IP地址', align: 'center',width: 140, sort: true}]
|
|
|
|
|
|
, {field: 'ip', title: 'IP地址', align: 'center',width: 140, sort: true}
|
|
|
, {field: 'collProtocol', title: '采集协议', align: 'center', sort: true}]
|
|
|
if (resType === 'HOST_X86SERVER') {
|
|
|
cols[4].title = '业务IP';
|
|
|
cols.push({field: 'manageIp', title: '管理IP', align: 'center',width: 140, sort: true});
|
...
|
...
|
@@ -826,7 +844,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
busId: $("#resManageIndexForm").find("input[name='busId']").val(),
|
|
|
state: $("#resManageIndexForm").find("select[name='state']").val(),
|
|
|
parentId: $("#resManageIndexForm").find("select[name='parentId']").val(),
|
|
|
collectionState: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
collectionstate: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
pageName:'resmanage'
|
|
|
}
|
|
|
, height: 'full-200'
|
...
|
...
|
@@ -1698,7 +1716,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
busId: bizId,
|
|
|
state: $("#resManageIndexForm").find("select[name='state']").val(),
|
|
|
parentId: $("#resManageIndexForm").find("select[name='parentId']").val(),
|
|
|
collectionState: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
collectionstate: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
collProtocolList:$("#resManageIndexForm").find("select[name='collProtocol']").val(),
|
|
|
sortKey: sortKey,
|
|
|
pageName:'resmanage'
|
|
|
|
...
|
...
|
|