Authored by 王涛

Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'

【1390】【 告警中心】通知统计样式调整,增加查看更多,活动告警样式调整 ,#1



See merge request !678
@@ -48,7 +48,31 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func @@ -48,7 +48,31 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
48 histogramECharts(res.map.business, 'count_notice_send_business', '业务子系统告警发送统计'); 48 histogramECharts(res.map.business, 'count_notice_send_business', '业务子系统告警发送统计');
49 //初始化人员告警发送告警统计 49 //初始化人员告警发送告警统计
50 histogramECharts(res.map.user, 'count_notice_send_user', '人员告警发送统计'); 50 histogramECharts(res.map.user, 'count_notice_send_user', '人员告警发送统计');
  51 +
  52 + $("#businessMore").unbind('click').on('click',function (){
  53 + queryData('业务子系统告警发送统计',res.map.business)
  54 + })
  55 + $("#userMore").unbind('click').on('click',function (){
  56 + queryData('人员告警发送统计',res.map.user)
  57 + })
  58 + }
  59 + }
  60 + })
51 } 61 }
  62 + //lsq 弹框打开更多 2022-06-21
  63 + function queryData(title,data){
  64 + let html=`
  65 + <div class="pie-chart pie-chart-custom" id="more_notice" style="height: 60vh"></div>
  66 + `
  67 + layer.open({
  68 + type: 1
  69 + , title: title //不显示标题栏
  70 + , area: ["91%", "800px"]
  71 + , id: 'moreData' //设定一个id,防止重复弹出
  72 + , btn: ['取消']
  73 + , content: html
  74 + , success: function (layero, index) {
  75 + histogramECharts(data,'more_notice',title)
52 } 76 }
53 }) 77 })
54 } 78 }
@@ -149,7 +173,8 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func @@ -149,7 +173,8 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
149 var row = data.row; 173 var row = data.row;
150 //列 174 //列
151 var line = data.line; 175 var line = data.line;
152 - var myChart = echarts.init(document.getElementById(id)); 176 + let el=document.getElementById(id);
  177 + var myChart = echarts.init(el);
153 var option; 178 var option;
154 option = { 179 option = {
155 tooltip: { 180 tooltip: {
@@ -222,6 +247,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func @@ -222,6 +247,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
222 //start x轴拖动 lsq 2022-03-10 247 //start x轴拖动 lsq 2022-03-10
223 dataZoom: [ 248 dataZoom: [
224 { 249 {
  250 + show:id=='more_notice'?true:false,
225 type: "slider", 251 type: "slider",
226 realtime: true, //拖动滚动条时是否动态的更新图表数据 252 realtime: true, //拖动滚动条时是否动态的更新图表数据
227 height: 25, //滚动条高度 253 height: 25, //滚动条高度
@@ -2625,6 +2625,7 @@ grayColor{ @@ -2625,6 +2625,7 @@ grayColor{
2625 } 2625 }
2626 2626
2627 .page-panel .main .layui-card .layui-card-header { 2627 .page-panel .main .layui-card .layui-card-header {
  2628 + padding:0 3px;
2628 height: auto; 2629 height: auto;
2629 } 2630 }
2630 2631
@@ -3653,6 +3654,8 @@ grayColor{ @@ -3653,6 +3654,8 @@ grayColor{
3653 -webkit-box-sizing: border-box; 3654 -webkit-box-sizing: border-box;
3654 box-sizing: border-box; 3655 box-sizing: border-box;
3655 background-color: #f1f1f1; 3656 background-color: #f1f1f1;
  3657 + /*lsq 活动告警列表卡片样式调整 2022-06-21*/
  3658 + min-height: 74px;
3656 } 3659 }
3657 3660
3658 .warn-count-item { 3661 .warn-count-item {
@@ -7820,6 +7823,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { @@ -7820,6 +7823,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now {
7820 7823
7821 #inline-condition-duration .duration-desc, #his_inline-condition-duration .duration-desc { 7824 #inline-condition-duration .duration-desc, #his_inline-condition-duration .duration-desc {
7822 float: left; 7825 float: left;
  7826 + /*lsq 告警中心搜索条件栏样式 2022-06-21*/
  7827 + line-height: 38px;
7823 } 7828 }
7824 7829
7825 7830
@@ -7839,6 +7844,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { @@ -7839,6 +7844,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now {
7839 7844
7840 form[lay-filter="activewarning-form"] .layui-inline { 7845 form[lay-filter="activewarning-form"] .layui-inline {
7841 margin-right: 5px; 7846 margin-right: 5px;
  7847 + /*lsq 告警中心搜索条件栏样式 2022-06-21*/
  7848 + margin-top:5px;
7842 } 7849 }
7843 7850
7844 .div-link-state-list .layui-badge-dot { 7851 .div-link-state-list .layui-badge-dot {
@@ -18,11 +18,17 @@ @@ -18,11 +18,17 @@
18 <div class="layui-card-body noticeCount-ECharts" id="count_notice_send"> 18 <div class="layui-card-body noticeCount-ECharts" id="count_notice_send">
19 <div class="layui-noticeCount-ECharts"> 19 <div class="layui-noticeCount-ECharts">
20 <div> 20 <div>
21 - <h5 class="lay-row-title" style="color: #666;">业务子系统告警发送统计</h5> 21 + <h5 class="lay-row-title">
  22 + 业务子系统告警发送统计
  23 + <span id="businessMore">查看更多</span>
  24 +
  25 + </h5>
22 <div class="pie-chart pie-chart-custom" id="count_notice_send_business" style="height: 30vh"></div> 26 <div class="pie-chart pie-chart-custom" id="count_notice_send_business" style="height: 30vh"></div>
23 </div> 27 </div>
24 <div> 28 <div>
25 - <h5 class="lay-row-title" style="color: #666;">人员告警发送统计</h5> 29 + <h5 class="lay-row-title">人员告警发送统计
  30 + <span id="userMore">查看更多</span>
  31 + </h5>
26 <div class="pie-chart pie-chart-custom" id="count_notice_send_user" style="height: 30vh"></div> 32 <div class="pie-chart pie-chart-custom" id="count_notice_send_user" style="height: 30vh"></div>
27 </div> 33 </div>
28 </div> 34 </div>
@@ -35,9 +41,9 @@ @@ -35,9 +41,9 @@
35 </div> 41 </div>
36 </div> 42 </div>
37 <div class="layui-card-body noticeCount-table" id="table_notice_send_year" style="margin-top: 5px"> 43 <div class="layui-card-body noticeCount-table" id="table_notice_send_year" style="margin-top: 5px">
38 - <h5 class="lay-row-title" style="font-weight: bold;color: #666;">业务子系统年统计</h5> 44 + <h5 class="lay-row-title">业务子系统年统计</h5>
39 <table lay-filter="table_notice_send_business" id="table_notice_send_business"></table> 45 <table lay-filter="table_notice_send_business" id="table_notice_send_business"></table>
40 - <h5 class="lay-row-title" style="font-weight: bold;background-color: #FFF;color: #666;">人员年统计</h5> 46 + <h5 class="lay-row-title" >人员年统计</h5>
41 <table lay-filter="table_notice_send_user" id="table_notice_send_user" ></table> 47 <table lay-filter="table_notice_send_user" id="table_notice_send_user" ></table>
42 48
43 </div> 49 </div>
@@ -46,7 +52,15 @@ @@ -46,7 +52,15 @@
46 </div> 52 </div>
47 </div> 53 </div>
48 </article> 54 </article>
49 - 55 +<style>
  56 + .layui-card-body .lay-row-title {
  57 + font-size: 14px;
  58 + line-height: 2;
  59 + padding: 2px 10px;
  60 + background: #f6f6f6;
  61 + margin: 0px 3px;
  62 + }
  63 +</style>
50 <script> 64 <script>
51 layui.use('noticeCountIndex', function (fn) { 65 layui.use('noticeCountIndex', function (fn) {
52 fn(); 66 fn();