【1427】 B7,X86详情页面增加的8个指标,详情页面展示布局优化 #1
【1443】 B1,通知查询功能优化-- 增加告警指标、通知类型的查询条件;右上方增加:今天、本周、本月、全部、自定义 #1
Showing
8 changed files
with
477 additions
and
13 deletions
@@ -501,6 +501,261 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -501,6 +501,261 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
501 | }); | 501 | }); |
502 | }); | 502 | }); |
503 | }, | 503 | }, |
504 | + /**lsq 2022-07-05 | ||
505 | + *渲染环形图及链接数 | ||
506 | + * @param targetId 环形图区域ID | ||
507 | + * @param resId 资源ID | ||
508 | + * @param kpiId 指标ID,多个指标逗号隔开 | ||
509 | + * @param kpiname 指标名称 | ||
510 | + * @param titleName 环形图中心名称 | ||
511 | + * @param linkTargetId 链接状态区域ID | ||
512 | + * @param linkKpiId 链接状态区域的指标ID,多个指标逗号隔开 | ||
513 | + * */ | ||
514 | + renderPieChartLink:function(targetId,resId,kpiId,kpiname,titleName,linkTargetId,linkKpiId,flag,isBasic,hasTotal){ | ||
515 | + let title='CPU'; | ||
516 | + let colorsArr=['#37bca6','#b4d43a','#e85228','#5a5487'] | ||
517 | + if(titleName){ | ||
518 | + title=titleName | ||
519 | + } | ||
520 | + let allKpi=kpiId; | ||
521 | + let linkKpiIdArr=[]; | ||
522 | + var cpuPieChart = null; | ||
523 | + if(linkKpiId){ | ||
524 | + allKpi+=','+linkKpiId; | ||
525 | + linkKpiIdArr=linkKpiId.split(','); | ||
526 | + } | ||
527 | + var url = "/api-web/detail/block?resId=" + resId + "&kpiId=" + allKpi + "&hasTotal=" + hasTotal; | ||
528 | + if (flag) { | ||
529 | + url += '&flag=' + flag; | ||
530 | + } | ||
531 | + if (isBasic) { | ||
532 | + url += '&isBasic=' + isBasic; | ||
533 | + } | ||
534 | + admin.req({ | ||
535 | + url: common.domainName + url | ||
536 | + }).done(function (res) { | ||
537 | + let linkStr=''; | ||
538 | + setTimeout(function () { | ||
539 | + $('#' + targetId).find('.pie-circleStr').remove(); | ||
540 | + $('#' + targetId).find('.pie-legend').remove(); | ||
541 | + if (res.data && res.data.length > 0) { | ||
542 | + var data = res.data; | ||
543 | + let linkData = []; | ||
544 | + let pieData = []; | ||
545 | + let colors = []; | ||
546 | + data.map((item, i) => { | ||
547 | + if (linkKpiIdArr.indexOf(item.id) != -1) { | ||
548 | + //链接数据 | ||
549 | + linkData.push(item); | ||
550 | + } else { | ||
551 | + //百分比数据 | ||
552 | + pieData.push(item) | ||
553 | + colors.push(common.colorsArr[i]); | ||
554 | + } | ||
555 | + }) | ||
556 | + if (pieData.length > 0) { | ||
557 | + let seriesData = []; | ||
558 | + pieData.map(item => { | ||
559 | + let valArr = item.value.split('%'); | ||
560 | + let obj = item; | ||
561 | + obj.value = valArr[0]; | ||
562 | + seriesData.push(obj) | ||
563 | + }) | ||
564 | + | ||
565 | + // setTimeout(function () { | ||
566 | + $('#' + targetId).find('.pie-circleStr').remove(); | ||
567 | + $('#' + targetId).find('.pie-legend').remove(); | ||
568 | + //生成环形图 | ||
569 | + var option = { | ||
570 | + tooltip: { | ||
571 | + trigger: 'item', | ||
572 | + formatter: function (param) { | ||
573 | + var tips = param.marker + " " + param.name + ":" + param.value + param.data.unit + "</br>"; | ||
574 | + return tips; | ||
575 | + }, | ||
576 | + axisPointer: { | ||
577 | + type: 'shadow' | ||
578 | + } | ||
579 | + }, | ||
580 | + legend: { | ||
581 | + orient: 'vertical', | ||
582 | + x: '45%', | ||
583 | + y: 'center', | ||
584 | + formatter: ' ', | ||
585 | + itemHeight: '4', | ||
586 | + textStyle: { | ||
587 | + fontsize: "12px" | ||
588 | + } | ||
589 | + }, | ||
590 | + color: colorsArr, | ||
591 | + series: [ | ||
592 | + { | ||
593 | + type: 'pie', | ||
594 | + radius: ['60%', '95%'], | ||
595 | + center: ['20%', '50%'], | ||
596 | + data: seriesData, | ||
597 | + avoidLabelOverlap: false, | ||
598 | + stillShowZeroSum: true, | ||
599 | + label: { | ||
600 | + show: false, | ||
601 | + position: 'center' | ||
602 | + }, | ||
603 | + itemStyle: { | ||
604 | + borderColor: "#ffffff", | ||
605 | + borderWidth: '3' | ||
606 | + }, | ||
607 | + hoverAnimation: false, | ||
608 | + emphasis: { | ||
609 | + scale: true, | ||
610 | + scaleSize: 10, | ||
611 | + }, | ||
612 | + labelLine: { | ||
613 | + show: false | ||
614 | + }, | ||
615 | + } | ||
616 | + ] | ||
617 | + }; | ||
618 | + if (cpuPieChart === null) { | ||
619 | + cpuPieChart = echarts.init(document.getElementById(targetId)); | ||
620 | + } else { | ||
621 | + cpuPieChart.clear(); | ||
622 | + $('#' + targetId).html(''); | ||
623 | + } | ||
624 | + cpuPieChart.setOption(option); | ||
625 | + //中间圆圈 | ||
626 | + let circleStr = `<div class="pie-circleStr"><div class="pie-circleStr-title">` + title + `</div></div>`; | ||
627 | + $('#' + targetId).append(circleStr); | ||
628 | + //右侧详细内容 | ||
629 | + let legendStr = ` <div class="pie-legend">`; | ||
630 | + pieData.map((item, i) => { | ||
631 | + let fixedVal=Number(item.value).toFixed(2); | ||
632 | + let paramName = item.name.replace('CPU', '') | ||
633 | + legendStr += `<div class="pie-legend-item"> | ||
634 | + <span class="pie-legend-icon" style="background-color: ` + colorsArr[i] + `"></span> | ||
635 | + <span class="pie-legend-label">` + paramName + `:</span> | ||
636 | + <span class="pie-legend-num" data-kpiid="` + item.id + `" | ||
637 | + data-name="` + item.name + `" data-warning="1" data-ident="1" | ||
638 | + data-trend="0" data-flag="` + item.flag + `"> | ||
639 | + <span class="pie-num-val">` + fixedVal + item.unit + `</span> | ||
640 | + <a class="detail_row_menu hide" data-id="`+item.id+`" data-kpiid="` + item.id + `" | ||
641 | + data-name="` + item.name + `" data-kpiname="` + item.name + `" data-warning="1" data-ident="1" | ||
642 | + data-trend="0" data-flag="` + item.flag + `" data-unit="` + item.unit + `" | ||
643 | + data-hidem="true" data-canca="true" data-incaing="true" data-restype="` + item.resType + `"> | ||
644 | + <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> | ||
645 | + </a></span> | ||
646 | + </div>` | ||
647 | + }) | ||
648 | + legendStr += '</div>'; | ||
649 | + $('#' + targetId).append(legendStr); | ||
650 | + $('.pie-legend-num .pie-num-val').unbind('click').click(function () { | ||
651 | + let kpiId = $(this).parent().data('kpiid'); | ||
652 | + let flag = $(this).parent().data('flag'); | ||
653 | + let warning = $(this).parent().data('warning'); | ||
654 | + let ident = $(this).parent().data('ident'); | ||
655 | + let trend = $(this).parent().data('trend'); | ||
656 | + let name = $(this).parent().data('name'); | ||
657 | + var params = { | ||
658 | + resId: resId, | ||
659 | + kpiId: kpiId, | ||
660 | + flag: flag, | ||
661 | + warning: warning, | ||
662 | + ident: ident, | ||
663 | + trend: trend, | ||
664 | + name: name | ||
665 | + }; | ||
666 | + common.openLineChart(name, params); | ||
667 | + }) | ||
668 | + //点击扇形区域,打开性能曲线图 | ||
669 | + cpuPieChart.on('click', function (params) { | ||
670 | + let data = params.data; | ||
671 | + let kpiId = data.id; | ||
672 | + let flag = data.flag; | ||
673 | + let warning = data.isWarning; | ||
674 | + let ident = 1; | ||
675 | + let trend = 0; | ||
676 | + let name = data.name; | ||
677 | + var params = { | ||
678 | + resId: resId, | ||
679 | + kpiId: kpiId, | ||
680 | + flag: flag, | ||
681 | + warning: warning, | ||
682 | + ident: ident, | ||
683 | + trend: trend, | ||
684 | + name: name | ||
685 | + }; | ||
686 | + common.openLineChart(name, params); | ||
687 | + }); | ||
688 | + //监听告警压制等操作配置 | ||
689 | + $('#' + targetId).find('.pie-legend-num').hover(function () { | ||
690 | + var $that = $(this); | ||
691 | + var $btn = $that.find(".detail_row_menu"); | ||
692 | + if ($btn.length > 0) { | ||
693 | + $(".layui-card-body").find(".detail_row_menu:not(.hide)").addClass("hide") | ||
694 | + $btn.removeClass("hide"); | ||
695 | + } | ||
696 | + }); | ||
697 | + filterSuppressMonitor(resId); | ||
698 | + | ||
699 | + // }, 300) | ||
700 | + } | ||
701 | + if (linkData.length > 0) { | ||
702 | + linkData.map(item => { | ||
703 | + linkStr += `<div class="lay-row-item lay-row-item-num"> | ||
704 | + <div class="lay-row-title-label">` + item.name + `</div> | ||
705 | + <div class="lay-row-num" data-kpiid="` + item.id + `" | ||
706 | + data-name="` + item.name + `" data-warning="1" data-ident="1" | ||
707 | + data-trend="0" data-flag="` + item.flag + `" | ||
708 | + ><span class="lay-row-num-val">` + Math.round(item.value) + `</span> | ||
709 | + <a class="detail_row_menu hide" data-id="`+item.id+`" data-kpiid="` + item.id + `" | ||
710 | + data-name="` + item.name + `" data-kpiname="` + item.name + `" data-warning="1" data-ident="1" | ||
711 | + data-trend="0" data-flag="` + item.flag + `" data-unit="` + item.unit + `" | ||
712 | + data-hidem="true" data-canca="true" data-incaing="true" data-restype="` + item.resType + `" > | ||
713 | + <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> | ||
714 | + </a></div> | ||
715 | + </div>` | ||
716 | + }) | ||
717 | + } | ||
718 | + } else { | ||
719 | + linkStr = ''; | ||
720 | + } | ||
721 | + $("#"+linkTargetId).html(linkStr); | ||
722 | + | ||
723 | + //监听编辑状态下的复选框事件 | ||
724 | + getCheckedBoxData(); | ||
725 | + //监听告警压制等操作配置 | ||
726 | + $('#' + linkTargetId).find('.lay-row-item-num .lay-row-num').hover(function () { | ||
727 | + var $that = $(this); | ||
728 | + var $btn = $that.find(".detail_row_menu"); | ||
729 | + if ($btn.length > 0) { | ||
730 | + $(".layui-card-body").find(".detail_row_menu:not(.hide)").addClass("hide") | ||
731 | + $btn.removeClass("hide"); | ||
732 | + } | ||
733 | + }); | ||
734 | + //监听过滤压制等事件 | ||
735 | + filterSuppressMonitor(resId); | ||
736 | + //链接数值下探 ,打开性能曲线 | ||
737 | + $(".lay-row-item-num .lay-row-num .lay-row-num-val").unbind('click').click(function () { | ||
738 | + let kpiId=$(this).parent().data('kpiid'); | ||
739 | + let flag=$(this).parent().data('flag'); | ||
740 | + let warning=$(this).parent().data('warning'); | ||
741 | + let ident=$(this).parent().data('ident'); | ||
742 | + let trend=$(this).parent().data('trend'); | ||
743 | + let name=$(this).parent().data('name'); | ||
744 | + var params = { | ||
745 | + resId: resId, | ||
746 | + kpiId: kpiId, | ||
747 | + flag: flag, | ||
748 | + warning: warning, | ||
749 | + ident: ident, | ||
750 | + trend: trend, | ||
751 | + name: name | ||
752 | + }; | ||
753 | + common.openLineChart(name, params); | ||
754 | + }) | ||
755 | + | ||
756 | + }) | ||
757 | + }) | ||
758 | + }, | ||
504 | /** | 759 | /** |
505 | * 渲染饼状图 | 760 | * 渲染饼状图 |
506 | * @param targetId 饼状图区域ID | 761 | * @param targetId 饼状图区域ID |
@@ -34,6 +34,9 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | @@ -34,6 +34,9 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | ||
34 | var diskkpi = "KPI9D22EAB6,KPI5CA7AA50,KPI98183B26,KPI66BD013F,KPI3E6ED38B,KPI97373ED0,KPI95378FE0"; | 34 | var diskkpi = "KPI9D22EAB6,KPI5CA7AA50,KPI98183B26,KPI66BD013F,KPI3E6ED38B,KPI97373ED0,KPI95378FE0"; |
35 | // ogg信息 | 35 | // ogg信息 |
36 | var oggkpi = "KPI95C50C7C,KPIEC53A8C4,KPI03937134,KPI1A122D84,KPI16282DF0"; | 36 | var oggkpi = "KPI95C50C7C,KPIEC53A8C4,KPI03937134,KPI1A122D84,KPI16282DF0"; |
37 | + //lsq cpu百分比 2022-07-04 | ||
38 | + var cpupiekpi = "KPI1E378242,KPI41B4C1B4,KPI6AC0FB43,KPI6F620E2B"; | ||
39 | + var linkKpi = "KPI7C714058,KPID152C818,KPIA2EA1646,KPI780EFE90"; | ||
37 | if (os === 'windows'){ | 40 | if (os === 'windows'){ |
38 | $($("#x86server_filesysMore").parents(".lay-row-item")).hide(); | 41 | $($("#x86server_filesysMore").parents(".lay-row-item")).hide(); |
39 | $($("#x86server_inodeMore").parents(".lay-row-item")).hide(); | 42 | $($("#x86server_inodeMore").parents(".lay-row-item")).hide(); |
@@ -79,6 +82,8 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | @@ -79,6 +82,8 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | ||
79 | commonDetail.renderLineCharat("x86server_cpu_linechart", resId, "KPI7054BC34", "CPU使用率", "cpu"); | 82 | commonDetail.renderLineCharat("x86server_cpu_linechart", resId, "KPI7054BC34", "CPU使用率", "cpu"); |
80 | //内存使用率走势(12小时) | 83 | //内存使用率走势(12小时) |
81 | commonDetail.renderLineCharat("x86server_memery_linechart", resId, "KPI31CB8D97", "内存使用率", "mem"); | 84 | commonDetail.renderLineCharat("x86server_memery_linechart", resId, "KPI31CB8D97", "内存使用率", "mem"); |
85 | + //lsq cpu百分比 2022-07-04 | ||
86 | + commonDetail.renderPieChartLink("x86server_cpupie",resId,cpupiekpi,"CPU百分比",'CPU','x86server_linkdata',linkKpi); | ||
82 | 87 | ||
83 | if (os === 'windows') { | 88 | if (os === 'windows') { |
84 | //磁盘使用情况 | 89 | //磁盘使用情况 |
@@ -33,7 +33,10 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | @@ -33,7 +33,10 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | ||
33 | var portDetTableKpiId='KPI39C76443,KPIC6A062EC,KPI5212EE93,KPIDCBEA93D'; | 33 | var portDetTableKpiId='KPI39C76443,KPIC6A062EC,KPI5212EE93,KPIDCBEA93D'; |
34 | // ogg信息 | 34 | // ogg信息 |
35 | var oggkpi = "KPI95C50C7C,KPIEC53A8C4,KPI03937134,KPI1A122D84,KPI16282DF0"; | 35 | var oggkpi = "KPI95C50C7C,KPIEC53A8C4,KPI03937134,KPI1A122D84,KPI16282DF0"; |
36 | - | 36 | + |
37 | + //lsq cpu百分比 2022-07-04 | ||
38 | + var cpupiekpi = "KPI1E378242,KPI41B4C1B4,KPI6AC0FB43,KPI6F620E2B"; | ||
39 | + var linkKpi = "KPI7C714058,KPID152C818,KPIA2EA1646,KPI780EFE90"; | ||
37 | x86virtual(); | 40 | x86virtual(); |
38 | function x86virtual(){ | 41 | function x86virtual(){ |
39 | //资源状态 | 42 | //资源状态 |
@@ -52,6 +55,8 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | @@ -52,6 +55,8 @@ layui.define(['commonDetail','common', 'admin'], function (exports) { | ||
52 | commonDetail.renderLineCharat("x86virtual_cpu_linechart",resId,"KPI7054BC34","CPU使用率","cpu"); | 55 | commonDetail.renderLineCharat("x86virtual_cpu_linechart",resId,"KPI7054BC34","CPU使用率","cpu"); |
53 | //内存使用率走势(12小时) | 56 | //内存使用率走势(12小时) |
54 | commonDetail.renderLineCharat("x86virtual_memery_linechart",resId,"KPI31CB8D97","内存使用率","mem"); | 57 | commonDetail.renderLineCharat("x86virtual_memery_linechart",resId,"KPI31CB8D97","内存使用率","mem"); |
58 | + //lsq cpu百分比 2022-07-04 | ||
59 | + commonDetail.renderPieChartLink("x86virtual_cpupie",resId,cpupiekpi,"CPU百分比",'CPU','x86virtual_linkdata',linkKpi); | ||
55 | 60 | ||
56 | //磁盘IO读速率 | 61 | //磁盘IO读速率 |
57 | commonDetail.renderLineCharat("x86virtual_disk_ioread_linechart",resId,"KPI97373ED0","磁盘IO读速率","disk", null, 'KPI9D22EAB6'); | 62 | commonDetail.renderLineCharat("x86virtual_disk_ioread_linechart",resId,"KPI97373ED0","磁盘IO读速率","disk", null, 'KPI9D22EAB6'); |
@@ -23,7 +23,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -23,7 +23,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
23 | var noticeUserChart = echarts.init(document.getElementById('notice_chart_user')); | 23 | var noticeUserChart = echarts.init(document.getElementById('notice_chart_user')); |
24 | var noticeTypeChart = echarts.init(document.getElementById('notice_chart_type')); | 24 | var noticeTypeChart = echarts.init(document.getElementById('notice_chart_type')); |
25 | // var noticeUserChartNew = echarts.init(document.getElementById('notice_chart_user_new')); | 25 | // var noticeUserChartNew = echarts.init(document.getElementById('notice_chart_user_new')); |
26 | - | 26 | + // lsq 告警指标 2022-07-05 |
27 | + var alarmKpi= ''; | ||
27 | //回车搜索 | 28 | //回车搜索 |
28 | $('#notice_search_keyword').keydown(function (e) { | 29 | $('#notice_search_keyword').keydown(function (e) { |
29 | if (e.keyCode === 13) { | 30 | if (e.keyCode === 13) { |
@@ -56,7 +57,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -56,7 +57,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
56 | busId: busId, | 57 | busId: busId, |
57 | resType: resType, | 58 | resType: resType, |
58 | usernames:userNames, | 59 | usernames:userNames, |
59 | - isSend: $('#notice_search_isSend').val() | 60 | + isSend: $('#notice_search_isSend').val(), |
61 | + alarmKpi: $("#noticeAlarmKpiSearchBox").val(), | ||
62 | + way:$('#noticeWaySearchBox').val() | ||
60 | } | 63 | } |
61 | , height: 'full-380' | 64 | , height: 'full-380' |
62 | , page: { | 65 | , page: { |
@@ -284,7 +287,51 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -284,7 +287,51 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
284 | 287 | ||
285 | } | 288 | } |
286 | }); | 289 | }); |
287 | - | 290 | + // lsq 告警指标下拉列表 2022-07-05 |
291 | + $.ajax({ | ||
292 | + url: common.domainName + '/api-web/manage/kpi/findKpiInAlarm?access_token='+accessToken+'&tableName=b_alarm', | ||
293 | + type: "get", | ||
294 | + success:function (res) { | ||
295 | + var kpis = res.data; | ||
296 | + var html = '<option value="">=指标名称=</option>' | ||
297 | + $.each(kpis,function (i,e) { | ||
298 | + html+='<option value="'+e.kpiId+'">'+e.kpiName+'</option>' | ||
299 | + }) | ||
300 | + $("#noticeAlarmKpiSearchBox").html(''); | ||
301 | + $("#noticeAlarmKpiSearchBox").append(html); | ||
302 | + form.render(); | ||
303 | + } | ||
304 | + }) | ||
305 | + //lsq 通知方式下拉列表 2022-07-07 | ||
306 | + $.ajax({ | ||
307 | + url: domainName + '/api-web/manage/ddic/findSucDdics/notice_type?access_token='+accessToken, | ||
308 | + type: "POST", | ||
309 | + success:function (res) { | ||
310 | + var ways = res.data; | ||
311 | + var html = '<option value="">=通知方式=</option>' | ||
312 | + $.each(ways,function (i,e) { | ||
313 | + html+='<option value="'+e.ddicCode+'">'+e.ddicName+'</option>' | ||
314 | + }) | ||
315 | + $("#noticeWaySearchBox").html(''); | ||
316 | + $("#noticeWaySearchBox").append(html); | ||
317 | + form.render(); | ||
318 | + } | ||
319 | + }) | ||
320 | + //lsq 快速检查字典数据 2022-07-05 | ||
321 | + $.ajax({ | ||
322 | + url: domainName + '/api-web/manage/ddic/findSucDdics/quick_search?access_token='+accessToken, | ||
323 | + type: "POST", | ||
324 | + success:function (res) { | ||
325 | + var quickSearchs = res.data; | ||
326 | + var html = '' | ||
327 | + $.each(quickSearchs,function (i,e) { | ||
328 | + html+=' <span data-code="'+e.ddicCode+'">'+e.ddicName+'</span>' | ||
329 | + }) | ||
330 | + $("#quick_search").html(''); | ||
331 | + $("#quick_search").append(html); | ||
332 | + form.render(); | ||
333 | + } | ||
334 | + }) | ||
288 | //刷新表格 | 335 | //刷新表格 |
289 | function reloadTable() { | 336 | function reloadTable() { |
290 | noticeTable.reload({ | 337 | noticeTable.reload({ |
@@ -295,7 +342,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -295,7 +342,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
295 | resType: resType, | 342 | resType: resType, |
296 | isSend: $('#notice_search_isSend').val(), | 343 | isSend: $('#notice_search_isSend').val(), |
297 | usernames:userNames, | 344 | usernames:userNames, |
298 | - page: 1 | 345 | + page: 1, |
346 | + alarmKpi: $("#noticeAlarmKpiSearchBox").val(), | ||
347 | + way:$('#noticeWaySearchBox').val() | ||
299 | } | 348 | } |
300 | }); | 349 | }); |
301 | } | 350 | } |
@@ -529,7 +578,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -529,7 +578,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
529 | keyword: $('#notice_search_keyword').val(), | 578 | keyword: $('#notice_search_keyword').val(), |
530 | busId: busId, | 579 | busId: busId, |
531 | resType: resType, | 580 | resType: resType, |
532 | - isSend: $('#notice_search_isSend').val() | 581 | + isSend: $('#notice_search_isSend').val(), |
582 | + alarmKpi: $("#noticeAlarmKpiSearchBox").val(), | ||
583 | + way:$('#noticeWaySearchBox').val() | ||
533 | }; | 584 | }; |
534 | 585 | ||
535 | $.ajax({ | 586 | $.ajax({ |
@@ -583,7 +634,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | @@ -583,7 +634,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' | ||
583 | keyword: $('#notice_search_keyword').val(), | 634 | keyword: $('#notice_search_keyword').val(), |
584 | busId: busId, | 635 | busId: busId, |
585 | resType: resType, | 636 | resType: resType, |
586 | - isSend: $('#notice_search_isSend').val() | 637 | + isSend: $('#notice_search_isSend').val(), |
638 | + alarmKpi: $("#noticeAlarmKpiSearchBox").val(), | ||
639 | + way:$('#noticeWaySearchBox').val() | ||
587 | }; | 640 | }; |
588 | var noticeTypeChartNew = echarts.init(document.getElementById('notice_chart_type_new')); | 641 | var noticeTypeChartNew = echarts.init(document.getElementById('notice_chart_type_new')); |
589 | $.ajax({ | 642 | $.ajax({ |
@@ -8039,4 +8039,88 @@ form[lay-filter="activewarning-form"] .layui-inline { | @@ -8039,4 +8039,88 @@ form[lay-filter="activewarning-form"] .layui-inline { | ||
8039 | text-overflow: ellipsis; | 8039 | text-overflow: ellipsis; |
8040 | white-space: nowrap; | 8040 | white-space: nowrap; |
8041 | 8041 | ||
8042 | +} | ||
8043 | +/*lsq x86新增指标在详情页下的样式 2022-07-04*/ | ||
8044 | +.template .lay-row-item-num { | ||
8045 | + background-color: #f8f8f8; | ||
8046 | + display: flex; | ||
8047 | + justify-content: space-around; | ||
8048 | + align-items: center; | ||
8049 | + min-height: 64px; | ||
8050 | +} | ||
8051 | +.template .lay-row-item-num .lay-row-num{ | ||
8052 | + text-decoration: underline; | ||
8053 | + font-size: 32px; | ||
8054 | + cursor: pointer; | ||
8055 | +} | ||
8056 | +.cpupie_chart{ | ||
8057 | + width:100%; | ||
8058 | +} | ||
8059 | +.cpupie_chart div:first-child{ | ||
8060 | + z-index: 99; | ||
8061 | +} | ||
8062 | +.pie-circleStr{ | ||
8063 | + position: absolute; | ||
8064 | + top: 0; | ||
8065 | + left: 0; | ||
8066 | + right: 60%; | ||
8067 | + bottom: 0px; | ||
8068 | + display: flex; | ||
8069 | + align-items: center; | ||
8070 | + justify-content: center; | ||
8071 | + font-size: 16px; | ||
8072 | + z-index: 9; | ||
8073 | +} | ||
8074 | +.pie-circleStr-title{ | ||
8075 | + border: 1px solid #CCCCCC; | ||
8076 | + height: 55px; | ||
8077 | + width: 55px; | ||
8078 | + border-radius: 50%; | ||
8079 | + display: flex; | ||
8080 | + justify-content: center; | ||
8081 | + align-items: center; | ||
8082 | +} | ||
8083 | +.pie-legend{ | ||
8084 | + position: absolute; | ||
8085 | + top: 0; | ||
8086 | + right: 0; | ||
8087 | + left: 55%; | ||
8088 | + height: 115px; | ||
8089 | + display: flex; | ||
8090 | + flex-flow: column; | ||
8091 | + justify-content: center; | ||
8092 | + z-index: 100; | ||
8093 | +} | ||
8094 | +.pie-legend-item{ | ||
8095 | + display:flex; | ||
8096 | + align-items: center; | ||
8097 | + font-size: 12px; | ||
8098 | + line-height: 23px; | ||
8099 | +} | ||
8100 | +.pie-legend-icon{ | ||
8101 | + width:20px; | ||
8102 | + height:4px; | ||
8103 | + margin-right: 3px; | ||
8104 | + display: none; | ||
8105 | +} | ||
8106 | +.pie-legend-num{ | ||
8107 | + cursor: pointer; | ||
8108 | + color:#1e9fff; | ||
8109 | + text-decoration: underline; | ||
8110 | +} | ||
8111 | +/*lsq 通知查询搜索栏 2022-07-05*/ | ||
8112 | +.search_button_group{ | ||
8113 | + display: flex; | ||
8114 | + justify-content: space-between; | ||
8115 | + padding:6px; | ||
8116 | +} | ||
8117 | +.card_header_search_button{ | ||
8118 | + width:330px; | ||
8119 | +} | ||
8120 | +.quick_search span{ | ||
8121 | + background-color: #1e9fff; | ||
8122 | + border-radius: 8px; | ||
8123 | + padding: 5px; | ||
8124 | + color: #fff; | ||
8125 | + cursor: pointer; | ||
8042 | } | 8126 | } |
@@ -17,9 +17,9 @@ | @@ -17,9 +17,9 @@ | ||
17 | <div class="page-panel"> | 17 | <div class="page-panel"> |
18 | <div class="main"> | 18 | <div class="main"> |
19 | <div class="layui-card" style="overflow: hidden"> | 19 | <div class="layui-card" style="overflow: hidden"> |
20 | - <div class="layui-card-header"> | 20 | + <div class="layui-card-header" style=" padding: 0 3px;"> |
21 | <div class="layui-status search_panel"> | 21 | <div class="layui-status search_panel"> |
22 | - <form class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="notice_search_form"> | 22 | + <form style="padding:5px 0 0 0;" class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="notice_search_form"> |
23 | <div class="layui-form-item"> | 23 | <div class="layui-form-item"> |
24 | <div class="layui-inline"> | 24 | <div class="layui-inline"> |
25 | <div class="layui-input-inline layui-input-inline--long"> | 25 | <div class="layui-input-inline layui-input-inline--long"> |
@@ -45,21 +45,52 @@ | @@ -45,21 +45,52 @@ | ||
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
47 | <!--发送状态--> | 47 | <!--发送状态--> |
48 | - <div class="layui-inline"> | ||
49 | - <div class="layui-input-inline layui-input-inline--long"> | 48 | + <!--<div class="layui-inline"> |
49 | + <div class="layui-input-inline layui-input-inline--long"> | ||
50 | <select id="notice_search_isSend" lay-filter="notice_search_isSend"> | 50 | <select id="notice_search_isSend" lay-filter="notice_search_isSend"> |
51 | <option value="1">已发送</option> | 51 | <option value="1">已发送</option> |
52 | <option value="">待发送</option> | 52 | <option value="">待发送</option> |
53 | </select> | 53 | </select> |
54 | </div> | 54 | </div> |
55 | + </div>--> | ||
56 | + <!--lsq 告警指标 2022-07-05--> | ||
57 | + <div class="layui-inline"> | ||
58 | + <div class="layui-input-inline"> | ||
59 | + <select name="alarmKpi" lay-filter="alarmKpiSearch" lay-search="" id="noticeAlarmKpiSearchBox"> | ||
60 | + </select> | ||
61 | + </div> | ||
55 | </div> | 62 | </div> |
63 | + <!--lsq 通知方式 2022-07-05--> | ||
56 | <div class="layui-inline"> | 64 | <div class="layui-inline"> |
57 | - <button id="noticeSearchQueryBtn" type="button" class="layui-btn layui-btn-normal" ><i | 65 | + <div class="layui-input-inline"> |
66 | + <select name="way" lay-filter="noticeWaySearch" llay-search="" id="noticeWaySearchBox"> | ||
67 | + </select> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="layui-inline"> | ||
71 | + <!-- <button id="noticeSearchQueryBtn" type="button" class="layui-btn layui-btn-normal" ><i | ||
58 | class="layui-icon layui-icon-search"></i>查询 | 72 | class="layui-icon layui-icon-search"></i>查询 |
59 | - </button> | 73 | + </button>--> |
60 | </div> | 74 | </div> |
61 | </div> | 75 | </div> |
62 | </form> | 76 | </form> |
77 | + | ||
78 | + </div> | ||
79 | + <div class="search_button_group"> | ||
80 | + <div class="quick_search" id="quick_search"> | ||
81 | + <span>ip</span> | ||
82 | + <span>ip1</span> | ||
83 | + </div> | ||
84 | + | ||
85 | + <div class="layui-card-header card_header_search_button" > | ||
86 | + <div class="layui-btn-group time-group" id="noticeCount_time_button_id" style="float: right;"> | ||
87 | + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" data-period="all">全部</button> | ||
88 | + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm active" data-period="today">今天</button> | ||
89 | + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" data-period="week">本周</button> | ||
90 | + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" data-period="month">本月</button> | ||
91 | + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" data-period="custom">自定义</button> | ||
92 | + </div> | ||
93 | + </div> | ||
63 | </div> | 94 | </div> |
64 | </div> | 95 | </div> |
65 | <div style="display: flex" class="layui-card-echart"> | 96 | <div style="display: flex" class="layui-card-echart"> |
@@ -63,6 +63,12 @@ | @@ -63,6 +63,12 @@ | ||
63 | 63 | ||
64 | <div class="lay-row"> | 64 | <div class="lay-row"> |
65 | <div class="lay-row-item"> | 65 | <div class="lay-row-item"> |
66 | + <h5 class="lay-row-title">CPU百分比 | ||
67 | + </h5> | ||
68 | + <div id="x86server_cpupie" class="pie-wrap dasboard cpupie_chart"> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="lay-row-item"> | ||
66 | <h5 class="lay-row-title">CPU使用率 | 72 | <h5 class="lay-row-title">CPU使用率 |
67 | <a class="detail_row_menu hide"> | 73 | <a class="detail_row_menu hide"> |
68 | <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> | 74 | <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> |
@@ -62,6 +62,12 @@ | @@ -62,6 +62,12 @@ | ||
62 | </div> | 62 | </div> |
63 | <div class="lay-row"> | 63 | <div class="lay-row"> |
64 | <div class="lay-row-item"> | 64 | <div class="lay-row-item"> |
65 | + <h5 class="lay-row-title">CPU百分比 | ||
66 | + </h5> | ||
67 | + <div id="x86virtual_cpupie" class="pie-wrap dasboard cpupie_chart"> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="lay-row-item"> | ||
65 | <h5 class="lay-row-title">CPU使用率 | 71 | <h5 class="lay-row-title">CPU使用率 |
66 | <a class="detail_row_menu hide"> | 72 | <a class="detail_row_menu hide"> |
67 | <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> | 73 | <img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png"> |
@@ -106,6 +112,25 @@ | @@ -106,6 +112,25 @@ | ||
106 | </ul> | 112 | </ul> |
107 | </div> | 113 | </div> |
108 | </div> | 114 | </div> |
115 | + <!--lsq x86新增的指标信息 2022-07-04--> | ||
116 | + <div class="lay-row" id="x86virtual_linkdata"> | ||
117 | + <!--<div class="lay-row-item lay-row-item-num"> | ||
118 | + <div class="lay-row-title-label">总链接数</div> | ||
119 | + <div class="lay-row-num">23</div> | ||
120 | + </div> | ||
121 | + <div class="lay-row-item lay-row-item-num"> | ||
122 | + <div class="lay-row-title-label">保持状态链接数</div> | ||
123 | + <div class="lay-row-num"></div> | ||
124 | + </div> | ||
125 | + <div class="lay-row-item lay-row-item-num"> | ||
126 | + <div class="lay-row-title-label">time_wait状态链接数</div> | ||
127 | + <div class="lay-row-num"></div> | ||
128 | + </div> | ||
129 | + <div class="lay-row-item lay-row-item-num"> | ||
130 | + <div class="lay-row-title-label">close_wait状态链接数</div> | ||
131 | + <div class="lay-row-num"></div> | ||
132 | + </div>--> | ||
133 | + </div> | ||
109 | <div class="lay-row"> | 134 | <div class="lay-row"> |
110 | <div class="lay-row-item"> | 135 | <div class="lay-row-item"> |
111 | <h5 class="lay-row-title">文件系统<span id="x86virtual_filesysDownload" class="layui-table-link" style="margin-left: 10px;">下载</span><span id="x86virtual_filesysMore" class="layui-table-link">更多</span></h5> | 136 | <h5 class="lay-row-title">文件系统<span id="x86virtual_filesysDownload" class="layui-table-link" style="margin-left: 10px;">下载</span><span id="x86virtual_filesysMore" class="layui-table-link">更多</span></h5> |
-
Please register or login to post a comment