...
|
...
|
@@ -132,6 +132,8 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' |
|
|
var bizlist = [];
|
|
|
if (data.data) {
|
|
|
bizlist = data.data;
|
|
|
<!--1-全部告警 2-严重告警 3-重要告警 4-一般告警-->
|
|
|
|
|
|
}
|
|
|
|
|
|
if (bizMap != null && bizMap.health != '3') {//不等于优
|
...
|
...
|
@@ -247,7 +249,17 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' |
|
|
$("#indexbizhealth [data-index-banner-item='type'] .index-banner-item-tips").unbind('click').on("click", function () {
|
|
|
var bizId = $(this).data('bizid');
|
|
|
var alink = document.createElement('a');
|
|
|
alink.setAttribute("lay-href", "/alarm/activewarning/bizId=" + bizId);
|
|
|
// Start 跳转到告警页面带告警级别 LSQ 2021/12/29 19:34
|
|
|
//alarmLevel 3-严重 2-重要 1-一般 4-全部-''
|
|
|
var alarmLevelSelect=$('#select-content-ul .select-list.listActive').data('val');
|
|
|
var alarmLevelVal='';
|
|
|
if(alarmLevelSelect!=4){
|
|
|
alarmLevelVal=alarmLevelSelect;
|
|
|
}else{
|
|
|
alarmLevelVal='';
|
|
|
}
|
|
|
alink.setAttribute("lay-href", "/alarm/activewarning/bizId=" + bizId+'/level='+alarmLevelVal);
|
|
|
//End LSQ 2021/12/29 19:35
|
|
|
document.body.appendChild(alink);
|
|
|
alink.click();
|
|
|
document.body.removeChild(alink);
|
...
|
...
|
@@ -322,6 +334,70 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' |
|
|
$(this).attr("lay-href", "/alarm/activewarning/restype=" + _resType + "/level=" + level);
|
|
|
// $(this).trigger();
|
|
|
});
|
|
|
// Start 告警级别默认为严重告警,点击左下角选择告警级别,页面的小红点切换不同告警的数量,item根据告警数量进行排序 LSQ 2021/12/29 19:37
|
|
|
$(".select-total").hide();
|
|
|
$(".select-important").hide();
|
|
|
$(".select-normal").hide();
|
|
|
var itemArr=$(".index-banner-item");
|
|
|
itemArr.map((index,item)=>{
|
|
|
if($(item).data('serious')=='0'){
|
|
|
$(item).find('.select-serious').hide();
|
|
|
}
|
|
|
$(item).css('order',$(item).data('serious'))
|
|
|
})
|
|
|
$("#select-content-ul li").unbind("click").on("click",function (){
|
|
|
var dataVal=$(this).data('val');
|
|
|
var dataValLabel=$(this).text();
|
|
|
$('.select-val span').text(dataValLabel);
|
|
|
$(this).addClass('listActive').siblings().removeClass("listActive");
|
|
|
if(dataVal=='4'){
|
|
|
$(".select-total").show();
|
|
|
$(".select-important").hide();
|
|
|
$(".select-normal").hide();
|
|
|
$(".select-serious").hide();
|
|
|
itemArr.map((index,item)=>{
|
|
|
if($(item).data('total')=='0'){
|
|
|
$(item).find('.select-total').hide();
|
|
|
}
|
|
|
$(item).css('order',$(item).data('total'))
|
|
|
})
|
|
|
}else if(dataVal==3){
|
|
|
$(".select-total").hide();
|
|
|
$(".select-important").hide();
|
|
|
$(".select-normal").hide();
|
|
|
$(".select-serious").show();
|
|
|
itemArr.map((index,item)=>{
|
|
|
if($(item).data('serious')=='0'){
|
|
|
$(item).find('.select-serious').hide();
|
|
|
}
|
|
|
$(item).css('order',$(item).data('serious'))
|
|
|
})
|
|
|
}else if(dataVal==2){
|
|
|
$(".select-total").hide();
|
|
|
$(".select-important").show();
|
|
|
$(".select-normal").hide();
|
|
|
$(".select-serious").hide();
|
|
|
itemArr.map((index,item)=>{
|
|
|
if($(item).data('important')=='0'){
|
|
|
$(item).find('.select-important').hide();
|
|
|
}
|
|
|
$(item).css('order',$(item).data('important'))
|
|
|
})
|
|
|
}else if(dataVal==1){
|
|
|
$(".select-total").hide();
|
|
|
$(".select-important").hide();
|
|
|
$(".select-normal").show();
|
|
|
$(".select-serious").hide();
|
|
|
itemArr.map((index,item)=>{
|
|
|
if($(item).data('normal')=='0'){
|
|
|
$(item).find('.select-normal').hide();
|
|
|
}
|
|
|
$(item).css('order',$(item).data('normal'))
|
|
|
})
|
|
|
}
|
|
|
|
|
|
})
|
|
|
//End LSQ 2021/12/29 19:38
|
|
|
|
|
|
// 点击资源数量
|
|
|
$("#indexbizhealth [data-index-banner-item='resType'] .gj-detail-info li:not([data-level])").unbind('click').on("click", function () {
|
...
|
...
|
@@ -342,8 +418,18 @@ layui.define(['common', 'swiper', 'admin','commonDetail','mxClient','sessions',' |
|
|
if("ALI_CLOUD_PLAT"== restype || "HUAWEI_CLOUD_PLAT" == restype){
|
|
|
restype =restype.substring(0,restype.lastIndexOf("_"));
|
|
|
}
|
|
|
// Start 跳转到告警页面带告警级别 LSQ 2021/12/29 19:34
|
|
|
//alarmLevel 3-严重 2-重要 1-一般 4-全部-''
|
|
|
var alarmLevelSelect=$('#select-content-ul .select-list.listActive').data('val');
|
|
|
var alarmLevelVal='';
|
|
|
if(alarmLevelSelect!=4){
|
|
|
alarmLevelVal=alarmLevelSelect;
|
|
|
}else{
|
|
|
alarmLevelVal='';
|
|
|
}
|
|
|
var alink = document.createElement('a');
|
|
|
alink.setAttribute("lay-href", "/alarm/activewarning/restype=" + restype);
|
|
|
alink.setAttribute("lay-href", "/alarm/activewarning/restype=" + restype+'/level='+alarmLevelVal);
|
|
|
//End LSQ 2021/12/29 19:42
|
|
|
document.body.appendChild(alink);
|
|
|
alink.click();
|
|
|
document.body.removeChild(alink);
|
...
|
...
|
|