Showing
1 changed file
with
4 additions
and
0 deletions
@@ -334,6 +334,10 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' | @@ -334,6 +334,10 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' | ||
334 | //点击告警数字,跳转至告警页面 | 334 | //点击告警数字,跳转至告警页面 |
335 | $("#indexbizhealth [data-index-banner-item='resType'] .index-banner-item-tips ").unbind('click').on("click", function () { | 335 | $("#indexbizhealth [data-index-banner-item='resType'] .index-banner-item-tips ").unbind('click').on("click", function () { |
336 | var restype = $(this).data('restype'); | 336 | var restype = $(this).data('restype'); |
337 | + //不以资源类型不包括父节点的资源类型 包括阿里云、华为云 | ||
338 | + if("ALI_CLOUD_PLAT"== restype || "HUAWEI_CLOUD_PLAT" == restype){ | ||
339 | + restype =restype.substring(0,restype.lastIndexOf("_")); | ||
340 | + } | ||
337 | var alink = document.createElement('a'); | 341 | var alink = document.createElement('a'); |
338 | alink.setAttribute("lay-href", "/alarm/activewarning/restype=" + restype); | 342 | alink.setAttribute("lay-href", "/alarm/activewarning/restype=" + restype); |
339 | document.body.appendChild(alink); | 343 | document.body.appendChild(alink); |
-
Please register or login to post a comment