Authored by xwx

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

@@ -2148,6 +2148,42 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -2148,6 +2148,42 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
2148 } 2148 }
2149 barlinecharts.setOption(option); 2149 barlinecharts.setOption(option);
2150 }, 2150 },
  2151 + renderStoreAlarms:function (tableId,resId){
  2152 + var alarmlist = table.render({
  2153 + elem: '#' + tableId
  2154 + , url: common.domainName + '/api-web/bResultRealtimeCollector/getStore'
  2155 + , where: {
  2156 + access_token: obj.sessions.getToken().access_token,
  2157 + ResId: resId
  2158 + }
  2159 + , height: 'auto'
  2160 + , page: {
  2161 + layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
  2162 + ,theme: '#1E9FFF'
  2163 + }
  2164 + , limit: 5
  2165 + , even: true
  2166 + , cols: [[
  2167 + {
  2168 + field: 'provider', title: '存储品牌型号', align: 'center', width: 421,
  2169 + }
  2170 + , {
  2171 + field: 'model', title: '存储序列号', align: 'center',width: 421, sort: true,
  2172 + }
  2173 + , {
  2174 + field: 'lunName', title: 'lun名称', align: 'center',width: 421
  2175 + }
  2176 + , {
  2177 + field: 'lunSize', title: '大小', align: 'center', width: 421,
  2178 + }
  2179 + ]],
  2180 + done: function (res) {
  2181 + if (res.data && res.data.length > 0) {
  2182 + document.getElementById("hostminicomputerpartition_storeMessage").style.display="block"
  2183 + }
  2184 + }
  2185 + })
  2186 + },
2151 /** 2187 /**
2152 * 活动告警 2188 * 活动告警
2153 * @param tableId 2189 * @param tableId
@@ -95,6 +95,8 @@ layui.define(['commonDetail','common','sessions'], function (exports) { @@ -95,6 +95,8 @@ layui.define(['commonDetail','common','sessions'], function (exports) {
95 commonDetail.renderTable('hostminicomputerpartition_port_detection_id',false,resId,portDetTableKpiId,'端口存活侦测','port'); 95 commonDetail.renderTable('hostminicomputerpartition_port_detection_id',false,resId,portDetTableKpiId,'端口存活侦测','port');
96 //活动告警 96 //活动告警
97 commonDetail.renderActiveAlarms('hostminicomputerpartition_alarmlist',resId); 97 commonDetail.renderActiveAlarms('hostminicomputerpartition_alarmlist',resId);
  98 + //存储信息
  99 + commonDetail.renderStoreAlarms('hostminicomputerpartition_store',resId);
98 } 100 }
99 101
100 function findOracleRelationByResId() { 102 function findOracleRelationByResId() {
@@ -23,6 +23,12 @@ @@ -23,6 +23,12 @@
23 </div> 23 </div>
24 </div> 24 </div>
25 </div> 25 </div>
  26 + <div class="lay-row" id="hostminicomputerpartition_storeMessage" style="display:none;">
  27 + <div class="lay-row-item">
  28 + <h5 class="lay-row-title">存储信息</h5>
  29 + <div id="hostminicomputerpartition_store"></div>
  30 + </div>
  31 + </div>
26 <div class="lay-row"> 32 <div class="lay-row">
27 <div class="lay-row-item"> 33 <div class="lay-row-item">
28 <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> 34 <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>