Authored by xwx

首页卡片查看资源信息数据展示错误

@@ -66,6 +66,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm @@ -66,6 +66,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
66 if (activeItem) { 66 if (activeItem) {
67 var resType = activeItem.resTypeCode;//res.data[0]["resTypeCode"]; 67 var resType = activeItem.resTypeCode;//res.data[0]["resTypeCode"];
68 activeResType = activeItem.resTypeCode;//res.data[0]["resTypeCode"]; 68 activeResType = activeItem.resTypeCode;//res.data[0]["resTypeCode"];
  69 + debugger
69 if (resType && $.inArray(resType, treeTableResTypes) !== -1) { 70 if (resType && $.inArray(resType, treeTableResTypes) !== -1) {
70 renderTreeTable(bizId, resType); 71 renderTreeTable(bizId, resType);
71 } else { 72 } else {
@@ -98,6 +99,9 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm @@ -98,6 +99,9 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
98 //两种虚拟机合并成一种 99 //两种虚拟机合并成一种
99 //var newResType = resType === 'VIRTUALIZATION_VHOST' ? 'VIRTUALIZATION_VHOST,VIRTUALIZATION_VMWARE_VHOST' : resType; 100 //var newResType = resType === 'VIRTUALIZATION_VHOST' ? 'VIRTUALIZATION_VHOST,VIRTUALIZATION_VMWARE_VHOST' : resType;
100 var newResType = resType; 101 var newResType = resType;
  102 + if (newResType.indexOf("VHOST")!= -1){
  103 + newResType="VHOST"
  104 + }
101 $(".biz_reslist_search").show(); 105 $(".biz_reslist_search").show();
102 $(".biz_reslist_treetable_search").hide(); 106 $(".biz_reslist_treetable_search").hide();
103 $("#bizResListTableContent").show(); 107 $("#bizResListTableContent").show();
@@ -123,6 +127,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm @@ -123,6 +127,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
123 if (retCols) { 127 if (retCols) {
124 cols = retCols; 128 cols = retCols;
125 } 129 }
  130 + debugger
126 listTable = table.render({ 131 listTable = table.render({
127 elem: '#bizResListTable' 132 elem: '#bizResListTable'
128 , url: common.domainName + '/api-web/home/res-list/' + newResType 133 , url: common.domainName + '/api-web/home/res-list/' + newResType