Authored by 王涛

Merge branch 'master-v32-xwx' into 'master'

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



See merge request !17
@@ -3084,13 +3084,13 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -3084,13 +3084,13 @@ 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 - }) 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 }, 3094 },
3095 yes:function (index) { 3095 yes:function (index) {
3096 layer.close(index); 3096 layer.close(index);
@@ -3177,15 +3177,22 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -3177,15 +3177,22 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
3177 } 3177 }
3178 var $content = $(`#${targetId}`).clone(); 3178 var $content = $(`#${targetId}`).clone();
3179 $content.find('[lay-tips]').removeAttr('lay-tips'); 3179 $content.find('[lay-tips]').removeAttr('lay-tips');
3180 -  
3181 - detailTips = layer.tips($content.removeClass('hide').prop("outerHTML"), that,{id: 'base-info-tips', area:[w, 'auto'],time:0, tips: [direction], tipsMore: true}); 3180 + // detailTips = layer.tips($content.removeClass('hide').prop("outerHTML"), that,{id: 'base-info-tips', area:[w, 'auto'],time:0, tips: [direction], tipsMore: true});
  3181 + //xwx update 资源视图基本信息弹出框bug修改 2021-10-22 --start
  3182 + detailTips = layer.tips($content.removeClass('hide').prop("outerHTML"), that,{
  3183 + id: 'base-info-tips',
  3184 + area:[w, 'auto'],
  3185 + time:0,
  3186 + tips: [direction],
  3187 + tipsMore: true,
  3188 + //添加遮罩层 默认透明度为0.3
  3189 + shade: [0.1, '#00000000'],
  3190 + //是否点击遮罩关闭
  3191 + shadeClose: true
  3192 + });
  3193 + //xwx update 资源视图基本信息弹出框bug修改 2021-10-22 --end
3182 window.detailTips = detailTips; 3194 window.detailTips = detailTips;
3183 }); 3195 });
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 () { 3196 // ,function () {
3190 // layer.close(detailTips); 3197 // layer.close(detailTips);
3191 // } 3198 // }