Merge branch 'monitor-web-yuanjp' into 'master'
修改例行维护跳转没数据的问题 See merge request !29
Showing
2 changed files
with
20 additions
and
6 deletions
@@ -9,12 +9,8 @@ | @@ -9,12 +9,8 @@ | ||
9 | var router = layui.router(); | 9 | var router = layui.router(); |
10 | type =router.search.id; | 10 | type =router.search.id; |
11 | if(type){ | 11 | if(type){ |
12 | - if(type == 'gzgl'){ | ||
13 | - $('li[lay-id="/iframe/insp/doc"] span').html('故障管理'); | ||
14 | - }else if(type == 'jkjc'){ | 12 | + if(type == 'jkjc'){ |
15 | $('li[lay-id="/iframe/insp/doc"] span').html('健康检查'); | 13 | $('li[lay-id="/iframe/insp/doc"] span').html('健康检查'); |
16 | - }else if(type== 'lxwh'){ | ||
17 | - $('li[lay-id="/iframe/insp/doc"] span').html('例行维护'); | ||
18 | }else if(type== 'fxbg'){ | 14 | }else if(type== 'fxbg'){ |
19 | $('li[lay-id="/iframe/insp/doc"] span').html('分析报告'); | 15 | $('li[lay-id="/iframe/insp/doc"] span').html('分析报告'); |
20 | } | 16 | } |
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#/monitor/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 == 'yxjk'){ | ||
13 | + $('li[lay-id="/iframe/insp/monitor"] span').html('运行监控'); | ||
14 | + }else if(type== 'lxwh'){ | ||
15 | + $('li[lay-id="/iframe/insp/monitor"] span').html('例行维护'); | ||
16 | + } | ||
17 | + } | ||
18 | + | ||
19 | + }) | ||
20 | + }} | ||
21 | + <iframe src="{{sessionStorage.getItem('domainInspectionURI')}}/start/index.html#/monitor/index/show=0/reportType={{type}}/access_token={{localStorage.getItem('access_token')}}" frameborder="0" class="layadmin-iframe"></iframe> | ||
4 | </script> | 22 | </script> |
-
Please register or login to post a comment