Authored by XuHaoJie

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

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