优化弹出层显示在顶层窗口
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user