优化弹出层显示在顶层窗口

This commit is contained in:
RuoYi
2021-08-30 16:26:26 +08:00
parent f68f4824cd
commit 489ab40a8c
15 changed files with 88 additions and 66 deletions

View File

@ -338,7 +338,7 @@ function scrollToTab(element) {
$('.page-tabs-content', topWindow).animate({ marginLeft: 0 - scrollVal + 'px' }, "fast");
}
//计算元素集合的总宽度
// 计算元素集合的总宽度
function calSumWidth(elements) {
var width = 0;
$(elements).each(function() {
@ -347,6 +347,14 @@ function calSumWidth(elements) {
return width;
}
// 返回当前激活的Tab页面关联的iframe的Windows对象
function activeWindow() {
var topWindow = $(window.parent.document);
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
var activeWindow = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
return activeWindow;
}
/** 密码规则范围验证 */
function checkpwd(chrtype, password) {
if (chrtype == 1) {