...
|
...
|
@@ -48,10 +48,34 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func |
|
|
histogramECharts(res.map.business, 'count_notice_send_business', '业务子系统告警发送统计');
|
|
|
//初始化人员告警发送告警统计
|
|
|
histogramECharts(res.map.user, 'count_notice_send_user', '人员告警发送统计');
|
|
|
|
|
|
$("#businessMore").unbind('click').on('click',function (){
|
|
|
queryData('业务子系统告警发送统计',res.map.business)
|
|
|
})
|
|
|
$("#userMore").unbind('click').on('click',function (){
|
|
|
queryData('人员告警发送统计',res.map.user)
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
//lsq 弹框打开更多 2022-06-21
|
|
|
function queryData(title,data){
|
|
|
let html=`
|
|
|
<div class="pie-chart pie-chart-custom" id="more_notice" style="height: 60vh"></div>
|
|
|
`
|
|
|
layer.open({
|
|
|
type: 1
|
|
|
, title: title //不显示标题栏
|
|
|
, area: ["91%", "800px"]
|
|
|
, id: 'moreData' //设定一个id,防止重复弹出
|
|
|
, btn: ['取消']
|
|
|
, content: html
|
|
|
, success: function (layero, index) {
|
|
|
histogramECharts(data,'more_notice',title)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//初始化表格
|
|
|
function initTable() {
|
...
|
...
|
@@ -149,7 +173,8 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func |
|
|
var row = data.row;
|
|
|
//列
|
|
|
var line = data.line;
|
|
|
var myChart = echarts.init(document.getElementById(id));
|
|
|
let el=document.getElementById(id);
|
|
|
var myChart = echarts.init(el);
|
|
|
var option;
|
|
|
option = {
|
|
|
tooltip: {
|
...
|
...
|
@@ -222,6 +247,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func |
|
|
//start x轴拖动 lsq 2022-03-10
|
|
|
dataZoom: [
|
|
|
{
|
|
|
show:id=='more_notice'?true:false,
|
|
|
type: "slider",
|
|
|
realtime: true, //拖动滚动条时是否动态的更新图表数据
|
|
|
height: 25, //滚动条高度
|
...
|
...
|
|