Authored by xwx

杭州-资源视图-资源视图基本信息弹出框bug修改

@@ -3084,13 +3084,6 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -3084,13 +3084,6 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
3084 common.openWin(url, name, params,null,null,null,['80%', '80%']); 3084 common.openWin(url, name, params,null,null,null,['80%', '80%']);
3085 }); 3085 });
3086 3086
3087 - //点击空白,关闭悬浮提示页  
3088 - $(document).on('click',function (event) {  
3089 - var _con = $('.layui-layer-tips'); // 设置目标区域  
3090 - if(!_con.is(event.target) && _con.has(event.target).length === 0){  
3091 - layer.close(detailTips);  
3092 - }  
3093 - })  
3094 }, 3087 },
3095 yes:function (index) { 3088 yes:function (index) {
3096 layer.close(index); 3089 layer.close(index);
@@ -3178,14 +3171,19 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -3178,14 +3171,19 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
3178 var $content = $(`#${targetId}`).clone(); 3171 var $content = $(`#${targetId}`).clone();
3179 $content.find('[lay-tips]').removeAttr('lay-tips'); 3172 $content.find('[lay-tips]').removeAttr('lay-tips');
3180 3173
3181 - detailTips = layer.tips($content.removeClass('hide').prop("outerHTML"), that,{id: 'base-info-tips', area:[w, 'auto'],time:0, tips: [direction], tipsMore: true}); 3174 + //xwx update 资源视图基本信息弹出框bug修改 2021-10-22 --start
  3175 + detailTips = layer.tips($content.removeClass('hide').prop("outerHTML"), that,{
  3176 + id: 'base-info-tips',
  3177 + area:[w, 'auto'],
  3178 + time:0,
  3179 + tips: [direction],
  3180 + tipsMore: true,
  3181 + shade: [0.1, '#00000000'],
  3182 + shadeClose: true
  3183 + });
  3184 + //xwx update 资源视图基本信息弹出框bug修改 2021-10-22 --end
3182 window.detailTips = detailTips; 3185 window.detailTips = detailTips;
3183 }); 3186 });
3184 - //xwx 2021/10/18 资源视图详情页基本信息悬浮提示无法关闭 --start  
3185 - $(".detail_base_info").mouseleave(function () {  
3186 - layer.close(detailTips);  
3187 - })  
3188 - //xwx 2021/10/18 资源视图详情页基本信息悬浮提示无法关闭 --end  
3189 // ,function () { 3187 // ,function () {
3190 // layer.close(detailTips); 3188 // layer.close(detailTips);
3191 // } 3189 // }