|
@@ -98,7 +98,7 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
|
@@ -98,7 +98,7 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
98
|
var data = res.map;
|
98
|
var data = res.map;
|
99
|
var jbxx = data.jbxx;
|
99
|
var jbxx = data.jbxx;
|
100
|
var tabletop = '<table id="table-assets-base-info" class="layui-table"><tbody>';
|
100
|
var tabletop = '<table id="table-assets-base-info" class="layui-table"><tbody>';
|
101
|
- 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>'
|
101
|
+ 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>'
|
102
|
var tablebottom = "</tbody></table>";
|
102
|
var tablebottom = "</tbody></table>";
|
103
|
var tableContent = '';
|
103
|
var tableContent = '';
|
104
|
// 将数组转换为二位数组
|
104
|
// 将数组转换为二位数组
|
|
@@ -148,12 +148,15 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
|
@@ -148,12 +148,15 @@ layui.define(['admin', 'table', 'common','sessions','commonDetail'], function (e |
148
|
}
|
148
|
}
|
149
|
}
|
149
|
}
|
150
|
|
150
|
|
151
|
- td += '<td style="width: 30%" data-idx="' + idx + '" data-type="value" data-source="' + dataSource + '" data-propgroup="' + v.propGroup + '" ' +
|
151
|
+ td += '<td class="layui-td-value" style="width: 30%" data-idx="' + idx + '" data-type="value" data-source="' + dataSource + '" data-propgroup="' + v.propGroup + '" ' +
|
152
|
'data-propkey="' + v.propKey + '" data-sort="' + v.sort + '" data-parentpropkey="' + v.parentPropKey + '" ' +
|
152
|
'data-propkey="' + v.propKey + '" data-sort="' + v.sort + '" data-parentpropkey="' + v.parentPropKey + '" ' +
|
153
|
'data-id="' + v.id + '" data-dataresource="' + v.dataResource + '">' + val + '</td>';
|
153
|
'data-id="' + v.id + '" data-dataresource="' + v.dataResource + '">' + val + '</td>';
|
154
|
});
|
154
|
});
|
155
|
tableContent += '<tr>' + td + '</tr>';
|
155
|
tableContent += '<tr>' + td + '</tr>';
|
156
|
});
|
156
|
});
|
|
|
157
|
+ if (jbxx.length == 0){
|
|
|
158
|
+ tableContent = '<tr style="background-color: white;"> <td class="none" colspan="4" style="text-align: center;color: #999;background-color: white">无数据</td> </tr>';
|
|
|
159
|
+ }
|
157
|
$("#hostminicomputer_property").html(tabletop+ tableTh+ tableContent + tablebottom);
|
160
|
$("#hostminicomputer_property").html(tabletop+ tableTh+ tableContent + tablebottom);
|
158
|
$(".layui-td-title").css("backgroundColor", "#F1F6F9")
|
161
|
$(".layui-td-title").css("backgroundColor", "#F1F6F9")
|
159
|
if (data.data && data.data.length > 0) {//有分区信息
|
162
|
if (data.data && data.data.length > 0) {//有分区信息
|