Showing
1 changed file
with
21 additions
and
9 deletions
@@ -4900,22 +4900,34 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', | @@ -4900,22 +4900,34 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', | ||
4900 | collProtocol: collProtocol, | 4900 | collProtocol: collProtocol, |
4901 | provider: provider | 4901 | provider: provider |
4902 | }); | 4902 | }); |
4903 | - if(map.sign){ | ||
4904 | - let configAG = map.value?map.value[0]:{}; | ||
4905 | - var area= ['90%','90%']; | ||
4906 | - if(!title){ title = "信息"; } | ||
4907 | - let AJUrl = sessionStorage.getItem("ajWeb") + '/#/'+ configAG.param?configAG.param:'' +'&access_token=' + localStorage.getItem("access_token"); | 4903 | + if (map.sign && map.value.length>0) { |
4904 | + let configAG = map.value ? map.value[0] : {param:'',designPage:''}; | ||
4905 | + let designPage = configAG.designPage; | ||
4906 | + title += '<i data-id=${resId} class="iconfont detail_base_info" style="margin-left: 10px" lay-tips="暂无信息"></i>' | ||
4907 | + title += `<a class="layui-icon layui-icon-pause" id=${resId} data-opts="stop" style="display: none" lay-tips="暂停采集"></a>` | ||
4908 | + title += `<a class="layui-icon layui-icon-play" id=${resId} data-opts="start" style="display: none" lay-tips="恢复采集"></a>` | ||
4909 | + title += `<a class="layui-icon layui-icon-rate" data-id=${resId} lay-tips="加入收藏夹"></a>`; | ||
4910 | + title += `<a class="layui-icon filterList" data-id=${resId} lay-tips="指标过滤清单" style="margin-left: 10px"><i class="iconfont"></i></a>`; | ||
4911 | + title += `<a class="layui-icon res-view-relation-topo" data-id=${resId} lay-tips="查看资源关系拓扑" style="margin-left: 10px"><i class="iconfont"></i></a>`; | ||
4912 | + // if (resCategory === 'share' && hardwareFlag.endsWith("Y")) { | ||
4913 | + // title += `<a class="layui-icon res-view-assets-details" data-ip=${ip} data-name=${name} data-restype=${resType} data-id=${resId} lay-tips="资产配置信息"><i class="iconfont"></i></a>`; | ||
4914 | + // } | ||
4915 | + var area = ['90%', '90%']; | ||
4916 | + if (!title) { | ||
4917 | + title = "信息"; | ||
4918 | + } | ||
4919 | + let AJUrl = sessionStorage.getItem("ajWeb") + '/#/bigscreen/viewer?reportCode=' + designPage + configAG && configAG.param ? configAG.param : '' + '&access_token=' + localStorage.getItem("access_token"); | ||
4908 | layer.open({ | 4920 | layer.open({ |
4909 | type: 2 | 4921 | type: 2 |
4910 | - ,id:'config_aj_id' //设定一个id,防止重复弹出 | 4922 | + , id: 'config_aj_id' //设定一个id,防止重复弹出 |
4911 | , title: title | 4923 | , title: title |
4912 | , closeBtn: 1 | 4924 | , closeBtn: 1 |
4913 | , area: area | 4925 | , area: area |
4914 | - , move:false | 4926 | + , move: false |
4915 | , shadeClose: true//开启遮罩层 | 4927 | , shadeClose: true//开启遮罩层 |
4916 | - , btn:false | 4928 | + , btn: false |
4917 | , content: AJUrl | 4929 | , content: AJUrl |
4918 | - , end: function(layero, index){ | 4930 | + , end: function (layero, index) { |
4919 | layer.closeAll(); | 4931 | layer.closeAll(); |
4920 | } | 4932 | } |
4921 | }); | 4933 | }); |
-
Please register or login to post a comment