Authored by xwx

杭州-首页-增加CMDB入口

... ... @@ -673,6 +673,16 @@ layui.define(['view'], function(exports){
, toDZSWJScreen: function () {
window.open(window.location.origin + '/vue3/index.html#/zj/dp?access_token=' + localStorage.getItem("access_token"));
}
// xwx add 首页增加CMDB入口 2021-11-21
, toCMDB: function () {
var roles=sessionStorage.getItem('roles');
if (roles=='zichanyw' || roles=='zichanAdmin'){
window.open(sessionStorage.getItem("CMDB"));
}else{
layer.msg('当前用户没有权限', {icon: 0, time: 3000});
}
}
//向右滚动页面标签
, leftPage: function () {
... ...
... ... @@ -74,6 +74,7 @@
<dd layadmin-event="toDZSWJScreen" style="text-align: left;"><a><img src="/src/style/img/icon-dianzishuiwuju.png" style="width: 16px;height: 16px">&nbsp;&nbsp;电子税务大屏</a></dd>
<dd layadmin-event="toYTHViewScreen" style="text-align: left;"><a><img src="/src/style/img/icon-yitihuadaping.png" style="width: 16px;height: 16px">&nbsp;&nbsp;一体化视图</a></dd>
<dd layadmin-event="toBiZhEalZhSYS" style="text-align: left;"><a><img src="/src/style/img/icon-YWJKD.png" style="width: 16px;height: 16px">&nbsp;&nbsp;业务健康度</a></dd>
<dd layadmin-event="toCMDB" style="text-align: left;"><a><img src="/src/style/img/icon-YWJKD.png" style="width: 16px;height: 16px">&nbsp;&nbsp;CMDB</a></dd>
</dl>
</script>
</li>
... ...
... ... @@ -42,6 +42,7 @@
sessionStorage.setItem('ythView', res1[0].ythView);
//xwx add 读取业务健康度页面IP地址 2021-10-25 start
sessionStorage.setItem('ywHealth', res1[0].ywHealth);
sessionStorage.setItem('CMDB', res1[0].CMDB);
//xwx add 读取业务健康度页面IP地址 2021-10-25 end
sessionStorage.setItem('workflow', res1[0].workflow);
sessionStorage.setItem('mp3', res2[0].mp3);
... ...