Authored by 王涛

Merge branch 'master-500-dev-xwx' into 'master-500-dev'

快照详情页资源状态优化



See merge request !766
@@ -33,7 +33,7 @@ layui.define(['commonDetail', 'common', 'sessions'], function (exports) { @@ -33,7 +33,7 @@ layui.define(['commonDetail', 'common', 'sessions'], function (exports) {
33 async: false, 33 async: false,
34 success: function (res) { 34 success: function (res) {
35 if (res.success){ 35 if (res.success){
36 - if (res.object.snapshotResState != null && res.object.snapshotResState.length > 0){ 36 + if (res.object.snapshotResState){
37 commonDetail.snapshotRenderResHealth(res.object.snapshotResState); 37 commonDetail.snapshotRenderResHealth(res.object.snapshotResState);
38 } 38 }
39 commonDetail.anapshotRenderTextCols('hostminicomputerpartition_jbxx',res.object.snapshotBaseInformationList,2); 39 commonDetail.anapshotRenderTextCols('hostminicomputerpartition_jbxx',res.object.snapshotBaseInformationList,2);