Authored by xwx

杭州-小型机分区-增加存储信息模块

... ... @@ -2148,6 +2148,42 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
}
barlinecharts.setOption(option);
},
renderStoreAlarms:function (tableId,resId){
var alarmlist = table.render({
elem: '#' + tableId
, url: common.domainName + '/api-web/bResultRealtimeCollector/getStore'
, where: {
access_token: obj.sessions.getToken().access_token,
ResId: resId
}
, height: 'auto'
, page: {
layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
,theme: '#1E9FFF'
}
, limit: 5
, even: true
, cols: [[
{
field: 'provider', title: '存储品牌型号', align: 'center', width: 421,
}
, {
field: 'model', title: '存储序列号', align: 'center',width: 421, sort: true,
}
, {
field: 'lunName', title: 'lun名称', align: 'center',width: 421
}
, {
field: 'lunSize', title: '大小', align: 'center', width: 421,
}
]],
done: function (res) {
if (res.data && res.data.length > 0) {
document.getElementById("hostminicomputerpartition_storeMessage").style.display="block"
}
}
})
},
/**
* 活动告警
* @param tableId
... ...
... ... @@ -95,6 +95,8 @@ layui.define(['commonDetail','common','sessions'], function (exports) {
commonDetail.renderTable('hostminicomputerpartition_port_detection_id',false,resId,portDetTableKpiId,'端口存活侦测','port');
//活动告警
commonDetail.renderActiveAlarms('hostminicomputerpartition_alarmlist',resId);
//存储信息
commonDetail.renderStoreAlarms('hostminicomputerpartition_store',resId);
}
function findOracleRelationByResId() {
... ...
... ... @@ -23,6 +23,12 @@
</div>
</div>
</div>
<div class="lay-row" id="hostminicomputerpartition_storeMessage" style="display:none;">
<div class="lay-row-item">
<h5 class="lay-row-title">存储信息</h5>
<div id="hostminicomputerpartition_store"></div>
</div>
</div>
<div class="lay-row">
<div class="lay-row-item">
<h5 class="lay-row-title">文件系统<span id="hostminicomputerpartition_sysfileDownload" class="layui-table-link" style="margin-left: 10px;">下载</span><span id="hostminicomputerpartition_sysfileMore" class="layui-table-link">更多</span></h5>
... ...