Authored by 王涛

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

【无】首页应用点击后相对应的元素背景为active



See merge request !948
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 type="text/html"> 53 type="text/html">
54 <ul class="layui-nav layui-layout-left" style="left:50px;"><!--//lsq 由于增加侧边伸缩按钮,左边距从0更改为50 2022-03-13--> 54 <ul class="layui-nav layui-layout-left" style="left:50px;"><!--//lsq 由于增加侧边伸缩按钮,左边距从0更改为50 2022-03-13-->
55 55
56 - <li class="layui-nav-item active" data-restype="biz"> 56 + <li class="layui-nav-item active" layadmin-event="changeActive" data-restype="biz">
57 <a href="javascript:;" lay-href="/">应用</a> 57 <a href="javascript:;" lay-href="/">应用</a>
58 </li> 58 </li>
59 </ul> 59 </ul>
@@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
69 <li class="layui-nav-item" data-restype="{{item.resType}}" data-resnum="{{item.resNum}}" 69 <li class="layui-nav-item" data-restype="{{item.resType}}" data-resnum="{{item.resNum}}"
70 lay-tips="资源总数:{{item.resNum }} <br>严重告警:{{item.serious}}<br>重要告警:{{item.important}}<br>一般告警:{{item.normal}}" 70 lay-tips="资源总数:{{item.resNum }} <br>严重告警:{{item.serious}}<br>重要告警:{{item.important}}<br>一般告警:{{item.normal}}"
71 data-serious="{{item.serious}}" data-important="{{item.important}}" 71 data-serious="{{item.serious}}" data-important="{{item.important}}"
72 - data-normal="{{item.normal}}" lay-filter="layadmin-app"> 72 + data-normal="{{item.normal}}" lay-filter="layadmin-app" layadmin-event="changeActive">
73 <!--lsq 右上角点击跳转到活动告警 2022-08-31--> 73 <!--lsq 右上角点击跳转到活动告警 2022-08-31-->
74 <a href="javascript:;" lay-href="{{ '/biz/list/restype=' + item.resType }}">{{item.resTypeName}} 74 <a href="javascript:;" lay-href="{{ '/biz/list/restype=' + item.resType }}">{{item.resTypeName}}
75 {{# if(alarmCount!=0){ }} 75 {{# if(alarmCount!=0){ }}
@@ -400,6 +400,11 @@ layui.define(['view'], function (exports) { @@ -400,6 +400,11 @@ layui.define(['view'], function (exports) {
400 window.resizeEventFn(); 400 window.resizeEventFn();
401 }, 500); 401 }, 500);
402 } 402 }
  403 + //lsq 首页左侧应用点击后样式 2022-09-01
  404 + ,changeActive:function (othis) {
  405 + $('.layui-layout-left .layui-nav-item').removeClass("active");
  406 + othis.addClass("active");
  407 + }
403 408
404 //刷新 409 //刷新
405 , refresh: function () { 410 , refresh: function () {