1、杭州-layout.html中,增加根据当前用户是否有daping角色判定是否展示大屏菜单
2、杭州-大屏页面调整获取业务接口(调用新增接口,获取admin权限业务)
Showing
3 changed files
with
12 additions
and
6 deletions
@@ -19,13 +19,13 @@ url: | @@ -19,13 +19,13 @@ url: | ||
19 | tingyun: http://127.0.0.1:8088 | 19 | tingyun: http://127.0.0.1:8088 |
20 | bigScreen: http://127.0.0.1:8081 | 20 | bigScreen: http://127.0.0.1:8081 |
21 | # 一体化视图 | 21 | # 一体化视图 |
22 | - ythView: http://192.168.0.69:18089 | 22 | + ythView: http://127.0.0.1:8089 |
23 | # cmdb | 23 | # cmdb |
24 | cmdbWeb: http://192.168.0.68:80 | 24 | cmdbWeb: http://192.168.0.68:80 |
25 | # 业务健康度 | 25 | # 业务健康度 |
26 | ywHealth: http://80.12.92.117:83 | 26 | ywHealth: http://80.12.92.117:83 |
27 | #流程系统路径,当ssl.enabled=true时,http要改为https,并修改流程nginx的conf文件 | 27 | #流程系统路径,当ssl.enabled=true时,http要改为https,并修改流程nginx的conf文件 |
28 | - workflow: http://192.168.0.248:8002 | 28 | + workflow: http://127.0.0.1:8002 |
29 | # 积木报表工具 | 29 | # 积木报表工具 |
30 | jimuReport: http://192.168.0.41:8085 | 30 | jimuReport: http://192.168.0.41:8085 |
31 | config: | 31 | config: |
@@ -43,9 +43,15 @@ | @@ -43,9 +43,15 @@ | ||
43 | <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i> | 43 | <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i> |
44 | </a> | 44 | </a> |
45 | </li> | 45 | </li> |
46 | - <li class="layui-nav-item" lay-tips="大屏"> | ||
47 | - <a href="javascript:;" layadmin-event="toBigScreen" ><img src="/src/style/img/icon-daping.png" style="width: 16px;height: 16px"></a> | ||
48 | - </li> | 46 | + <!--判定是否有daping角色,如果有则显示该菜单 joke add 20211203--> |
47 | + <script type="text/html" template lay-url="{{sessionStorage.getItem('domainName')}}/api-user/users/checkHasRole?roleCode=daping"> | ||
48 | + {{# if(d.count > 0){ }} | ||
49 | + <li class="layui-nav-item" lay-tips="大屏"> | ||
50 | + <a href="javascript:;" layadmin-event="toBigScreen" ><img src="/src/style/img/icon-daping.png" style="width: 16px;height: 16px"></a> | ||
51 | + </li> | ||
52 | + {{# } }} | ||
53 | + </script> | ||
54 | + | ||
49 | <script type="text/html" template lay-url="{{sessionStorage.getItem('domainName')}}/api-web/sxview/getbizListByUser?access_token={{localStorage.getItem('access_token')}}"> | 55 | <script type="text/html" template lay-url="{{sessionStorage.getItem('domainName')}}/api-web/sxview/getbizListByUser?access_token={{localStorage.getItem('access_token')}}"> |
50 | 56 | ||
51 | {{# if(d.data.length>0){ }} | 57 | {{# if(d.data.length>0){ }} |
@@ -18,7 +18,7 @@ export default { | @@ -18,7 +18,7 @@ export default { | ||
18 | return { | 18 | return { |
19 | timer:null, | 19 | timer:null, |
20 | domainName:sessionStorage.getItem('domainName'), | 20 | domainName:sessionStorage.getItem('domainName'), |
21 | - apiUrl:'/api-web/sxview/getbizListByUser?access_token=', | 21 | + apiUrl:'/api-web/sxview/getBizListForHzDp?access_token=', |
22 | checkId:0,//当前选中的tabs | 22 | checkId:0,//当前选中的tabs |
23 | listItem:1,//轮播数-总页数 | 23 | listItem:1,//轮播数-总页数 |
24 | pageSize:5,//每页显示5条数据 | 24 | pageSize:5,//每页显示5条数据 |
-
Please register or login to post a comment