...
|
...
|
@@ -19,14 +19,13 @@ layui.define(['commonDetail', 'common', 'sessions'], function (exports) { |
|
|
resId = data.resId;
|
|
|
batchNo = data.batchNo;
|
|
|
}
|
|
|
// 删除所有的子元素
|
|
|
$('#table_arr_body').empty();
|
|
|
|
|
|
findAllSnapshot();
|
|
|
|
|
|
commonDetail.bindTips();
|
|
|
|
|
|
function findAllSnapshot() {
|
|
|
// 删除所有的子元素
|
|
|
$('#table_arr_body').empty();
|
|
|
let url = common.domainName + '/api-web/snapshot/info?resId='+ resId + '&batchNo='+batchNo +'&access_token='+sessions.getToken().access_token;
|
|
|
$.ajax({
|
|
|
url: url,
|
...
|
...
|
@@ -34,11 +33,11 @@ layui.define(['commonDetail', 'common', 'sessions'], function (exports) { |
|
|
async: false,
|
|
|
success: function (res) {
|
|
|
if (res.success){
|
|
|
if (res.object.snapshotResState.length>0){
|
|
|
if (res.object.snapshotResState.length > 0){
|
|
|
commonDetail.snapshotRenderResHealth(res.object.snapshotResState);
|
|
|
}
|
|
|
commonDetail.anapshotRenderTextCols('hostminicomputerpartition_jbxx',res.object.snapshotBaseInformationList,2);
|
|
|
if (res.object.importantInformationList > 0){
|
|
|
if (res.object.importantInformationList.length > 0){
|
|
|
commonDetail.anapshotRenderTextCols('hostminicomputerpartition_sysfile',res.object.importantInformationList,2);
|
|
|
}else {
|
|
|
$("#hostminicomputerpartition_sysfile").html('<div style="text-align:center;"><span style="line-height: 150px; padding:20px;font-style:normal;">暂无数据</span></div>')
|
...
|
...
|
@@ -132,5 +131,12 @@ layui.define(['commonDetail', 'common', 'sessions'], function (exports) { |
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//定时任务
|
|
|
// var timer = setInterval(function () {
|
|
|
// findAllSnapshot()
|
|
|
// }, commonDetail.timerTime);
|
|
|
// commonDetail.detailTimer.push(timer);
|
|
|
|
|
|
});
|
|
|
}); |
...
|
...
|
|