Authored by 赵鹏军

Merge branch 'monitor-web-yuanjp' into 'master'

修改例行维护跳转没数据的问题



See merge request !29
... ... @@ -9,12 +9,8 @@
var router = layui.router();
type =router.search.id;
if(type){
if(type == 'gzgl'){
$('li[lay-id="/iframe/insp/doc"] span').html('故障管理');
}else if(type == 'jkjc'){
if(type == 'jkjc'){
$('li[lay-id="/iframe/insp/doc"] span').html('健康检查');
}else if(type== 'lxwh'){
$('li[lay-id="/iframe/insp/doc"] span').html('例行维护');
}else if(type== 'fxbg'){
$('li[lay-id="/iframe/insp/doc"] span').html('分析报告');
}
... ...
<title>运行监控</title>
<script type="text/html" template>
<iframe src="{{sessionStorage.getItem('domainInspectionURI')}}/start/index.html#/monitor/index/show=0/access_token={{localStorage.getItem('access_token')}}" frameborder="0" class="layadmin-iframe"></iframe>
{{#
var type = "";
var a = "";
layui.use(['sessions','common','admin'], function () {
var $ = layui.$;
var common = layui.common;
var router = layui.router();
type =router.search.id;
if(type){
if(type == 'yxjk'){
$('li[lay-id="/iframe/insp/monitor"] span').html('运行监控');
}else if(type== 'lxwh'){
$('li[lay-id="/iframe/insp/monitor"] span').html('例行维护');
}
}
})
}}
<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>
</script>
... ...