Authored by XuHaoJie

青海-域视图-左侧树修改

... ... @@ -92,11 +92,12 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'treeTable'
}
}).done(function (res) {
let list = [];
if (res && res.data && resType.indexOf('VIRTUALIZATION') !== -1) {
list = res.data.filter(e => e.resType !== 'VIRTUALIZATION_VMWARE_CLUSTER' && e.resType !== 'VIRTUALIZATION_VMWARE_PHYSICSHOST')
} else {
list = res.data;
}
// if (res && res.data && resType.indexOf('VIRTUALIZATION') !== -1) {
// list = res.data.filter(e => e.resType !== 'VIRTUALIZATION_VMWARE_CLUSTER' && e.resType !== 'VIRTUALIZATION_VMWARE_PHYSICSHOST')
// } else {
//
// }
list = res.data;
laytpl($('#domainIndexTpl').html()).render({list: list}, function (html) {
domainIndexTable.html(html);
});
... ...