Authored by xwx

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

... ... @@ -66,6 +66,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
if (activeItem) {
var resType = activeItem.resTypeCode;//res.data[0]["resTypeCode"];
activeResType = activeItem.resTypeCode;//res.data[0]["resTypeCode"];
debugger
if (resType && $.inArray(resType, treeTableResTypes) !== -1) {
renderTreeTable(bizId, resType);
} else {
... ... @@ -98,6 +99,9 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
//两种虚拟机合并成一种
//var newResType = resType === 'VIRTUALIZATION_VHOST' ? 'VIRTUALIZATION_VHOST,VIRTUALIZATION_VMWARE_VHOST' : resType;
var newResType = resType;
if (newResType.indexOf("VHOST")!= -1){
newResType="VHOST"
}
$(".biz_reslist_search").show();
$(".biz_reslist_treetable_search").hide();
$("#bizResListTableContent").show();
... ... @@ -123,6 +127,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
if (retCols) {
cols = retCols;
}
debugger
listTable = table.render({
elem: '#bizResListTable'
, url: common.domainName + '/api-web/home/res-list/' + newResType
... ...