...
|
...
|
@@ -98,7 +98,7 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
|
|
var data = res.map;
|
|
|
var jbxx = data.jbxx;
|
|
|
var tabletop = '<table id="table-assets-base-info" class="layui-table"><tbody>';
|
|
|
var tableTh='<thead><tr style="background-color: #d0ddec;"><th class="layui-table-cell" style="color: rgb(30,159,255);">属性</th><th class="layui-table-cell" style="color: rgb(30,159,255);">内容</th><th class="layui-table-cell"style="color: rgb(30,159,255);">属性</th><th class="layui-table-cell" style="color: rgb(30,159,255);">内容</th></tr></thead>'
|
|
|
var tableTh='<thead><tr style="background-color: #d0ddec;"><th class="layui-table-cell" style="color: rgb(30,159,255);background-color: rgb(235,245,249);">属性</th><th class="layui-table-cell" style="color: rgb(30,159,255);background-color: rgb(235,245,249);">内容</th><th class="layui-table-cell"style="color: rgb(30,159,255);background-color: rgb(235,245,249);">属性</th><th class="layui-table-cell" style="color: rgb(30,159,255);background-color: rgb(235,245,249);">内容</th></tr></thead>'
|
|
|
var tablebottom = "</tbody></table>";
|
|
|
var tableContent = '';
|
|
|
// 将数组转换为二位数组
|
...
|
...
|
@@ -148,12 +148,15 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
|
|
}
|
|
|
}
|
|
|
|
|
|
td += '<td style="width: 30%" data-idx="' + idx + '" data-type="value" data-source="' + dataSource + '" data-propgroup="' + v.propGroup + '" ' +
|
|
|
td += '<td class="layui-td-value" style="width: 30%" data-idx="' + idx + '" data-type="value" data-source="' + dataSource + '" data-propgroup="' + v.propGroup + '" ' +
|
|
|
'data-propkey="' + v.propKey + '" data-sort="' + v.sort + '" data-parentpropkey="' + v.parentPropKey + '" ' +
|
|
|
'data-id="' + v.id + '" data-dataresource="' + v.dataResource + '">' + val + '</td>';
|
|
|
});
|
|
|
tableContent += '<tr>' + td + '</tr>';
|
|
|
});
|
|
|
if (jbxx.length == 0){
|
|
|
tableContent = '<tr style="background-color: white;"> <td class="none" colspan="4" style="text-align: center;color: #999;background-color: white">无数据</td> </tr>';
|
|
|
}
|
|
|
$("#hostminicomputer_property").html(tabletop+ tableTh+ tableContent + tablebottom);
|
|
|
$(".layui-td-title").css("backgroundColor", "#F1F6F9")
|
|
|
if (data.data && data.data.length > 0) {//有分区信息
|
...
|
...
|
|