Merge branch 'monitor-web-yuanjp' into 'master'
修改菜单跳转的bug See merge request !21
Showing
1 changed file
with
24 additions
and
1 deletions
1 | <title>文档管理</title> | 1 | <title>文档管理</title> |
2 | <script type="text/html" template> | 2 | <script type="text/html" template> |
3 | - <iframe src="{{sessionStorage.getItem('domainInspectionURI')}}/start/index.html#/document/index/show=0/access_token={{localStorage.getItem('access_token')}}" frameborder="0" class="layadmin-iframe"></iframe> | 3 | + {{# |
4 | + var type = ""; | ||
5 | + var a = ""; | ||
6 | + layui.use(['sessions','common','admin'], function () { | ||
7 | + var $ = layui.$; | ||
8 | + var common = layui.common; | ||
9 | + var router = layui.router(); | ||
10 | + type =router.search.id; | ||
11 | + if(type){ | ||
12 | + if(type == 'gzgl'){ | ||
13 | + $('li[lay-id="/iframe/insp/doc"] span').html('故障管理'); | ||
14 | + }else if(type == 'jkjc'){ | ||
15 | + $('li[lay-id="/iframe/insp/doc"] span').html('健康检查'); | ||
16 | + }else if(type= 'lxwh'){ | ||
17 | + $('li[lay-id="/iframe/insp/doc"] span').html('例行维护'); | ||
18 | + } | ||
19 | + else if(type= 'fxbg'){ | ||
20 | + $('li[lay-id="/iframe/insp/doc"] span').html('分析报告'); | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + }) | ||
25 | + }} | ||
26 | + <iframe src="{{sessionStorage.getItem('domainInspectionURI')}}/start/index.html#/document/index/show=0/id={{type}}/access_token={{localStorage.getItem('access_token')}}" frameborder="0" class="layadmin-iframe"></iframe> | ||
4 | </script> | 27 | </script> |
-
Please register or login to post a comment