js调整
|
|
@ -197,6 +197,8 @@ public class ShiroConfig
|
||||||
filterChainDefinitionMap.put("/fonts/**", "anon");
|
filterChainDefinitionMap.put("/fonts/**", "anon");
|
||||||
filterChainDefinitionMap.put("/img/**", "anon");
|
filterChainDefinitionMap.put("/img/**", "anon");
|
||||||
filterChainDefinitionMap.put("/js/**", "anon");
|
filterChainDefinitionMap.put("/js/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/ajax/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/ruoyi/**", "anon");
|
||||||
filterChainDefinitionMap.put("/druid/**", "anon");
|
filterChainDefinitionMap.put("/druid/**", "anon");
|
||||||
// 不需要拦截的访问
|
// 不需要拦截的访问
|
||||||
filterChainDefinitionMap.put("/login", "anon");
|
filterChainDefinitionMap.put("/login", "anon");
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 309 B |
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
//计算元素集合的总宽度
|
//计算元素集合的总宽度
|
||||||
function calSumWidth(elements) {
|
function calSumWidth(elements) {
|
||||||
|
|
@ -8,9 +7,11 @@ $(function () {
|
||||||
});
|
});
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
//滚动到指定选项卡
|
//滚动到指定选项卡
|
||||||
function scrollToTab(element) {
|
function scrollToTab(element) {
|
||||||
var marginLeftVal = calSumWidth($(element).prevAll()), marginRightVal = calSumWidth($(element).nextAll());
|
var marginLeftVal = calSumWidth($(element).prevAll()),
|
||||||
|
marginRightVal = calSumWidth($(element).nextAll());
|
||||||
// 可视区域非tab宽度
|
// 可视区域非tab宽度
|
||||||
var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".J_menuTabs"));
|
var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".J_menuTabs"));
|
||||||
//可视区域tab宽度
|
//可视区域tab宽度
|
||||||
|
|
@ -33,8 +34,10 @@ $(function () {
|
||||||
}
|
}
|
||||||
$('.page-tabs-content').animate({
|
$('.page-tabs-content').animate({
|
||||||
marginLeft: 0 - scrollVal + 'px'
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
}, "fast");
|
},
|
||||||
|
"fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
//查看左侧隐藏的选项卡
|
//查看左侧隐藏的选项卡
|
||||||
function scrollTabLeft() {
|
function scrollTabLeft() {
|
||||||
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
||||||
|
|
@ -64,8 +67,10 @@ $(function () {
|
||||||
}
|
}
|
||||||
$('.page-tabs-content').animate({
|
$('.page-tabs-content').animate({
|
||||||
marginLeft: 0 - scrollVal + 'px'
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
}, "fast");
|
},
|
||||||
|
"fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
//查看右侧隐藏的选项卡
|
//查看右侧隐藏的选项卡
|
||||||
function scrollTabRight() {
|
function scrollTabRight() {
|
||||||
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
||||||
|
|
@ -93,7 +98,8 @@ $(function () {
|
||||||
if (scrollVal > 0) {
|
if (scrollVal > 0) {
|
||||||
$('.page-tabs-content').animate({
|
$('.page-tabs-content').animate({
|
||||||
marginLeft: 0 - scrollVal + 'px'
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
}, "fast");
|
},
|
||||||
|
"fast");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -141,13 +147,6 @@ $(function () {
|
||||||
var str1 = '<iframe class="J_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" seamless></iframe>';
|
var str1 = '<iframe class="J_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" seamless></iframe>';
|
||||||
$('.J_mainContent').find('iframe.J_iframe').hide().parents('.J_mainContent').append(str1);
|
$('.J_mainContent').find('iframe.J_iframe').hide().parents('.J_mainContent').append(str1);
|
||||||
|
|
||||||
//显示loading提示
|
|
||||||
// var loading = layer.load();
|
|
||||||
//
|
|
||||||
// $('.J_mainContent iframe:visible').load(function () {
|
|
||||||
// //iframe加载完成后隐藏loading提示
|
|
||||||
// layer.close(loading);
|
|
||||||
// });
|
|
||||||
// 添加选项卡
|
// 添加选项卡
|
||||||
$('.J_menuTabs .page-tabs-content').append(str);
|
$('.J_menuTabs .page-tabs-content').append(str);
|
||||||
scrollToTab($('.J_menuTab.active'));
|
scrollToTab($('.J_menuTab.active'));
|
||||||
|
|
@ -182,7 +181,8 @@ $(function () {
|
||||||
if (marginLeftVal < 0) {
|
if (marginLeftVal < 0) {
|
||||||
$('.page-tabs-content').animate({
|
$('.page-tabs-content').animate({
|
||||||
marginLeft: (marginLeftVal + currentWidth) + 'px'
|
marginLeft: (marginLeftVal + currentWidth) + 'px'
|
||||||
}, "fast");
|
},
|
||||||
|
"fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 移除当前选项卡
|
// 移除当前选项卡
|
||||||
|
|
@ -255,7 +255,6 @@ $(function () {
|
||||||
}
|
}
|
||||||
$('.J_tabShowActive').on('click', showActiveTab);
|
$('.J_tabShowActive').on('click', showActiveTab);
|
||||||
|
|
||||||
|
|
||||||
// 点击选项卡菜单
|
// 点击选项卡菜单
|
||||||
function activeTab() {
|
function activeTab() {
|
||||||
if (!$(this).hasClass('active')) {
|
if (!$(this).hasClass('active')) {
|
||||||
|
|
@ -278,12 +277,6 @@ $(function () {
|
||||||
function refreshTab() {
|
function refreshTab() {
|
||||||
var target = $('.J_iframe[data-id="' + $(this).data('id') + '"]');
|
var target = $('.J_iframe[data-id="' + $(this).data('id') + '"]');
|
||||||
var url = target.attr('src');
|
var url = target.attr('src');
|
||||||
// //显示loading提示
|
|
||||||
// var loading = layer.load();
|
|
||||||
// target.attr('src', url).load(function () {
|
|
||||||
// //关闭loading提示
|
|
||||||
// layer.close(loading);
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.J_menuTabs').on('dblclick', '.J_menuTab', refreshTab);
|
$('.J_menuTabs').on('dblclick', '.J_menuTab', refreshTab);
|
||||||
|
|
@ -295,7 +288,8 @@ $(function () {
|
||||||
$('.J_tabRight').on('click', scrollTabRight);
|
$('.J_tabRight').on('click', scrollTabRight);
|
||||||
|
|
||||||
// 关闭全部
|
// 关闭全部
|
||||||
$('.J_tabCloseAll').on('click', function () {
|
$('.J_tabCloseAll').on('click',
|
||||||
|
function() {
|
||||||
$('.page-tabs-content').children("[data-id]").not(":first").each(function() {
|
$('.page-tabs-content').children("[data-id]").not(":first").each(function() {
|
||||||
$('.J_iframe[data-id="' + $(this).data('id') + '"]').remove();
|
$('.J_iframe[data-id="' + $(this).data('id') + '"]').remove();
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
|
@ -306,5 +300,4 @@ $(function () {
|
||||||
});
|
});
|
||||||
$('.page-tabs-content').css("margin-left", "0");
|
$('.page-tabs-content').css("margin-left", "0");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -0,0 +1,378 @@
|
||||||
|
/**
|
||||||
|
* 菜单处理
|
||||||
|
*/
|
||||||
|
$(function() {
|
||||||
|
// MetsiMenu
|
||||||
|
$('#side-menu').metisMenu();
|
||||||
|
|
||||||
|
//固定菜单栏
|
||||||
|
$(function() {
|
||||||
|
$('.sidebar-collapse').slimScroll({
|
||||||
|
height: '100%',
|
||||||
|
railOpacity: 0.9,
|
||||||
|
alwaysVisible: false
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// 菜单切换
|
||||||
|
$('.navbar-minimalize').click(function() {
|
||||||
|
$("body").toggleClass("mini-navbar");
|
||||||
|
SmoothlyMenu();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#side-menu>li').click(function() {
|
||||||
|
if ($('body').hasClass('mini-navbar')) {
|
||||||
|
NavToggle();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#side-menu>li li a').click(function() {
|
||||||
|
if ($(window).width() < 769) {
|
||||||
|
NavToggle();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.nav-close').click(NavToggle);
|
||||||
|
|
||||||
|
//ios浏览器兼容性处理
|
||||||
|
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||||
|
$('#content-main').css('overflow-y', 'auto');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).bind("load resize",
|
||||||
|
function() {
|
||||||
|
if ($(this).width() < 769) {
|
||||||
|
$('body').addClass('mini-navbar');
|
||||||
|
$('.navbar-static-side').fadeIn();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function NavToggle() {
|
||||||
|
$('.navbar-minimalize').trigger('click');
|
||||||
|
}
|
||||||
|
|
||||||
|
function SmoothlyMenu() {
|
||||||
|
if (!$('body').hasClass('mini-navbar')) {
|
||||||
|
$('#side-menu').hide();
|
||||||
|
setTimeout(function() {
|
||||||
|
$('#side-menu').fadeIn(500);
|
||||||
|
},
|
||||||
|
100);
|
||||||
|
} else if ($('body').hasClass('fixed-sidebar')) {
|
||||||
|
$('#side-menu').hide();
|
||||||
|
setTimeout(function() {
|
||||||
|
$('#side-menu').fadeIn(500);
|
||||||
|
},
|
||||||
|
300);
|
||||||
|
} else {
|
||||||
|
$('#side-menu').removeAttr('style');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* iframe处理
|
||||||
|
*/
|
||||||
|
$(function() {
|
||||||
|
//计算元素集合的总宽度
|
||||||
|
function calSumWidth(elements) {
|
||||||
|
var width = 0;
|
||||||
|
$(elements).each(function() {
|
||||||
|
width += $(this).outerWidth(true);
|
||||||
|
});
|
||||||
|
return width;
|
||||||
|
}
|
||||||
|
|
||||||
|
//滚动到指定选项卡
|
||||||
|
function scrollToTab(element) {
|
||||||
|
var marginLeftVal = calSumWidth($(element).prevAll()),
|
||||||
|
marginRightVal = calSumWidth($(element).nextAll());
|
||||||
|
// 可视区域非tab宽度
|
||||||
|
var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".J_menuTabs"));
|
||||||
|
//可视区域tab宽度
|
||||||
|
var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth;
|
||||||
|
//实际滚动宽度
|
||||||
|
var scrollVal = 0;
|
||||||
|
if ($(".page-tabs-content").outerWidth() < visibleWidth) {
|
||||||
|
scrollVal = 0;
|
||||||
|
} else if (marginRightVal <= (visibleWidth - $(element).outerWidth(true) - $(element).next().outerWidth(true))) {
|
||||||
|
if ((visibleWidth - $(element).next().outerWidth(true)) > marginRightVal) {
|
||||||
|
scrollVal = marginLeftVal;
|
||||||
|
var tabElement = element;
|
||||||
|
while ((scrollVal - $(tabElement).outerWidth()) > ($(".page-tabs-content").outerWidth() - visibleWidth)) {
|
||||||
|
scrollVal -= $(tabElement).prev().outerWidth();
|
||||||
|
tabElement = $(tabElement).prev();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (marginLeftVal > (visibleWidth - $(element).outerWidth(true) - $(element).prev().outerWidth(true))) {
|
||||||
|
scrollVal = marginLeftVal - $(element).prev().outerWidth(true);
|
||||||
|
}
|
||||||
|
$('.page-tabs-content').animate({
|
||||||
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
|
},
|
||||||
|
"fast");
|
||||||
|
}
|
||||||
|
|
||||||
|
//查看左侧隐藏的选项卡
|
||||||
|
function scrollTabLeft() {
|
||||||
|
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
||||||
|
// 可视区域非tab宽度
|
||||||
|
var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".J_menuTabs"));
|
||||||
|
//可视区域tab宽度
|
||||||
|
var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth;
|
||||||
|
//实际滚动宽度
|
||||||
|
var scrollVal = 0;
|
||||||
|
if ($(".page-tabs-content").width() < visibleWidth) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
var tabElement = $(".J_menuTab:first");
|
||||||
|
var offsetVal = 0;
|
||||||
|
while ((offsetVal + $(tabElement).outerWidth(true)) <= marginLeftVal) { //找到离当前tab最近的元素
|
||||||
|
offsetVal += $(tabElement).outerWidth(true);
|
||||||
|
tabElement = $(tabElement).next();
|
||||||
|
}
|
||||||
|
offsetVal = 0;
|
||||||
|
if (calSumWidth($(tabElement).prevAll()) > visibleWidth) {
|
||||||
|
while ((offsetVal + $(tabElement).outerWidth(true)) < (visibleWidth) && tabElement.length > 0) {
|
||||||
|
offsetVal += $(tabElement).outerWidth(true);
|
||||||
|
tabElement = $(tabElement).prev();
|
||||||
|
}
|
||||||
|
scrollVal = calSumWidth($(tabElement).prevAll());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$('.page-tabs-content').animate({
|
||||||
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
|
},
|
||||||
|
"fast");
|
||||||
|
}
|
||||||
|
|
||||||
|
//查看右侧隐藏的选项卡
|
||||||
|
function scrollTabRight() {
|
||||||
|
var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left')));
|
||||||
|
// 可视区域非tab宽度
|
||||||
|
var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".J_menuTabs"));
|
||||||
|
//可视区域tab宽度
|
||||||
|
var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth;
|
||||||
|
//实际滚动宽度
|
||||||
|
var scrollVal = 0;
|
||||||
|
if ($(".page-tabs-content").width() < visibleWidth) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
var tabElement = $(".J_menuTab:first");
|
||||||
|
var offsetVal = 0;
|
||||||
|
while ((offsetVal + $(tabElement).outerWidth(true)) <= marginLeftVal) { //找到离当前tab最近的元素
|
||||||
|
offsetVal += $(tabElement).outerWidth(true);
|
||||||
|
tabElement = $(tabElement).next();
|
||||||
|
}
|
||||||
|
offsetVal = 0;
|
||||||
|
while ((offsetVal + $(tabElement).outerWidth(true)) < (visibleWidth) && tabElement.length > 0) {
|
||||||
|
offsetVal += $(tabElement).outerWidth(true);
|
||||||
|
tabElement = $(tabElement).next();
|
||||||
|
}
|
||||||
|
scrollVal = calSumWidth($(tabElement).prevAll());
|
||||||
|
if (scrollVal > 0) {
|
||||||
|
$('.page-tabs-content').animate({
|
||||||
|
marginLeft: 0 - scrollVal + 'px'
|
||||||
|
},
|
||||||
|
"fast");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//通过遍历给菜单项加上data-index属性
|
||||||
|
$(".J_menuItem").each(function(index) {
|
||||||
|
if (!$(this).attr('data-index')) {
|
||||||
|
$(this).attr('data-index', index);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function menuItem() {
|
||||||
|
// 获取标识数据
|
||||||
|
var dataUrl = $(this).attr('href'),
|
||||||
|
dataIndex = $(this).data('index'),
|
||||||
|
menuName = $.trim($(this).text()),
|
||||||
|
flag = true;
|
||||||
|
if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false;
|
||||||
|
|
||||||
|
// 选项卡菜单已存在
|
||||||
|
$('.J_menuTab').each(function() {
|
||||||
|
if ($(this).data('id') == dataUrl) {
|
||||||
|
if (!$(this).hasClass('active')) {
|
||||||
|
$(this).addClass('active').siblings('.J_menuTab').removeClass('active');
|
||||||
|
scrollToTab(this);
|
||||||
|
// 显示tab对应的内容区
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == dataUrl) {
|
||||||
|
$(this).show().siblings('.J_iframe').hide();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
flag = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 选项卡菜单不存在
|
||||||
|
if (flag) {
|
||||||
|
var str = '<a href="javascript:;" class="active J_menuTab" data-id="' + dataUrl + '">' + menuName + ' <i class="fa fa-times-circle"></i></a>';
|
||||||
|
$('.J_menuTab').removeClass('active');
|
||||||
|
|
||||||
|
// 添加选项卡对应的iframe
|
||||||
|
var str1 = '<iframe class="J_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" seamless></iframe>';
|
||||||
|
$('.J_mainContent').find('iframe.J_iframe').hide().parents('.J_mainContent').append(str1);
|
||||||
|
|
||||||
|
// 添加选项卡
|
||||||
|
$('.J_menuTabs .page-tabs-content').append(str);
|
||||||
|
scrollToTab($('.J_menuTab.active'));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.J_menuItem').on('click', menuItem);
|
||||||
|
|
||||||
|
// 关闭选项卡菜单
|
||||||
|
function closeTab() {
|
||||||
|
var closeTabId = $(this).parents('.J_menuTab').data('id');
|
||||||
|
var currentWidth = $(this).parents('.J_menuTab').width();
|
||||||
|
|
||||||
|
// 当前元素处于活动状态
|
||||||
|
if ($(this).parents('.J_menuTab').hasClass('active')) {
|
||||||
|
|
||||||
|
// 当前元素后面有同辈元素,使后面的一个元素处于活动状态
|
||||||
|
if ($(this).parents('.J_menuTab').next('.J_menuTab').size()) {
|
||||||
|
|
||||||
|
var activeId = $(this).parents('.J_menuTab').next('.J_menuTab:eq(0)').data('id');
|
||||||
|
$(this).parents('.J_menuTab').next('.J_menuTab:eq(0)').addClass('active');
|
||||||
|
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == activeId) {
|
||||||
|
$(this).show().siblings('.J_iframe').hide();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var marginLeftVal = parseInt($('.page-tabs-content').css('margin-left'));
|
||||||
|
if (marginLeftVal < 0) {
|
||||||
|
$('.page-tabs-content').animate({
|
||||||
|
marginLeft: (marginLeftVal + currentWidth) + 'px'
|
||||||
|
},
|
||||||
|
"fast");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 移除当前选项卡
|
||||||
|
$(this).parents('.J_menuTab').remove();
|
||||||
|
|
||||||
|
// 移除tab对应的内容区
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == closeTabId) {
|
||||||
|
$(this).remove();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当前元素后面没有同辈元素,使当前元素的上一个元素处于活动状态
|
||||||
|
if ($(this).parents('.J_menuTab').prev('.J_menuTab').size()) {
|
||||||
|
var activeId = $(this).parents('.J_menuTab').prev('.J_menuTab:last').data('id');
|
||||||
|
$(this).parents('.J_menuTab').prev('.J_menuTab:last').addClass('active');
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == activeId) {
|
||||||
|
$(this).show().siblings('.J_iframe').hide();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 移除当前选项卡
|
||||||
|
$(this).parents('.J_menuTab').remove();
|
||||||
|
|
||||||
|
// 移除tab对应的内容区
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == closeTabId) {
|
||||||
|
$(this).remove();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 当前元素不处于活动状态
|
||||||
|
else {
|
||||||
|
// 移除当前选项卡
|
||||||
|
$(this).parents('.J_menuTab').remove();
|
||||||
|
|
||||||
|
// 移除相应tab对应的内容区
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == closeTabId) {
|
||||||
|
$(this).remove();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
scrollToTab($('.J_menuTab.active'));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.J_menuTabs').on('click', '.J_menuTab i', closeTab);
|
||||||
|
|
||||||
|
//关闭其他选项卡
|
||||||
|
function closeOtherTabs() {
|
||||||
|
$('.page-tabs-content').children("[data-id]").not(":first").not(".active").each(function() {
|
||||||
|
$('.J_iframe[data-id="' + $(this).data('id') + '"]').remove();
|
||||||
|
$(this).remove();
|
||||||
|
});
|
||||||
|
$('.page-tabs-content').css("margin-left", "0");
|
||||||
|
}
|
||||||
|
$('.J_tabCloseOther').on('click', closeOtherTabs);
|
||||||
|
|
||||||
|
//滚动到已激活的选项卡
|
||||||
|
function showActiveTab() {
|
||||||
|
scrollToTab($('.J_menuTab.active'));
|
||||||
|
}
|
||||||
|
$('.J_tabShowActive').on('click', showActiveTab);
|
||||||
|
|
||||||
|
// 点击选项卡菜单
|
||||||
|
function activeTab() {
|
||||||
|
if (!$(this).hasClass('active')) {
|
||||||
|
var currentId = $(this).data('id');
|
||||||
|
// 显示tab对应的内容区
|
||||||
|
$('.J_mainContent .J_iframe').each(function() {
|
||||||
|
if ($(this).data('id') == currentId) {
|
||||||
|
$(this).show().siblings('.J_iframe').hide();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$(this).addClass('active').siblings('.J_menuTab').removeClass('active');
|
||||||
|
scrollToTab(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.J_menuTabs').on('click', '.J_menuTab', activeTab);
|
||||||
|
|
||||||
|
//刷新iframe
|
||||||
|
function refreshTab() {
|
||||||
|
var target = $('.J_iframe[data-id="' + $(this).data('id') + '"]');
|
||||||
|
var url = target.attr('src');
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.J_menuTabs').on('dblclick', '.J_menuTab', refreshTab);
|
||||||
|
|
||||||
|
// 左移按扭
|
||||||
|
$('.J_tabLeft').on('click', scrollTabLeft);
|
||||||
|
|
||||||
|
// 右移按扭
|
||||||
|
$('.J_tabRight').on('click', scrollTabRight);
|
||||||
|
|
||||||
|
// 关闭全部
|
||||||
|
$('.J_tabCloseAll').on('click',
|
||||||
|
function() {
|
||||||
|
$('.page-tabs-content').children("[data-id]").not(":first").each(function() {
|
||||||
|
$('.J_iframe[data-id="' + $(this).data('id') + '"]').remove();
|
||||||
|
$(this).remove();
|
||||||
|
});
|
||||||
|
$('.page-tabs-content').children("[data-id]:first").each(function() {
|
||||||
|
$('.J_iframe[data-id="' + $(this).data('id') + '"]').show();
|
||||||
|
$(this).addClass("active");
|
||||||
|
});
|
||||||
|
$('.page-tabs-content').css("margin-left", "0");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -5,21 +5,21 @@
|
||||||
<meta name="keywords" content="">
|
<meta name="keywords" content="">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
<link href="css/bootstrap.min.css?v=3.3.6" th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.css?v=4.4.0" th:href="@{/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
|
<link href="/css/font-awesome.css" rel="stylesheet">
|
||||||
<!-- bootstrap-table 表格插件样式 -->
|
<!-- bootstrap-table 表格插件样式 -->
|
||||||
<link href="/ajax/libs/bootstrap-table/bootstrap-table.min.css" th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
|
<link href="/ajax/libs/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
|
||||||
<link href="/css/plugins/jsTree/style.min.css" rel="stylesheet">
|
<link href="/css/plugins/jsTree/style.min.css" rel="stylesheet">
|
||||||
<link href="/css/plugins/jqTreeGrid/jquery.treegrid.css" rel="stylesheet">
|
<link href="/css/plugins/jqTreeGrid/jquery.treegrid.css" rel="stylesheet">
|
||||||
<!--summernote css -->
|
<!--summernote css -->
|
||||||
<link href="/css/plugins/summernote/summernote-0.8.8.css" rel="stylesheet">
|
<link href="/css/plugins/summernote/summernote-0.8.8.css" rel="stylesheet">
|
||||||
<link href="css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet">
|
<link href="css/animate.css" rel="stylesheet">
|
||||||
<link href="/css/plugins/chosen/chosen.css" rel="stylesheet">
|
<link href="/css/plugins/chosen/chosen.css" rel="stylesheet">
|
||||||
<link href="/css/style.css?v=4.1.0" th:href="@{/css/style.css?v=4.1.0}" rel="stylesheet">
|
<link href="/css/style.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<div th:fragment="footer">
|
<div th:fragment="footer">
|
||||||
<script src="/js/jquery.min.js?v=2.1.4"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<!-- bootstrap-table 表格插件 -->
|
<!-- bootstrap-table 表格插件 -->
|
||||||
<script src="/ajax/libs/bootstrap-table/bootstrap-table.min.js"></script>
|
<script src="/ajax/libs/bootstrap-table/bootstrap-table.min.js"></script>
|
||||||
|
|
@ -28,15 +28,15 @@
|
||||||
<script src="/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
|
<script src="/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
|
||||||
<script src="/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
|
<script src="/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
|
||||||
|
|
||||||
<script src="/js/plugins/validate/jquery.validate.min.js"></script>
|
<script src="/ajax/libs/validate/jquery.validate.min.js"></script>
|
||||||
<script src="/js/plugins/validate/messages_zh.min.js"></script>
|
<script src="/ajax/libs/validate/messages_zh.min.js"></script>
|
||||||
<script src="/js/plugins/jsTree/jstree.min.js"></script>
|
<script src="/js/plugins/jsTree/jstree.min.js"></script>
|
||||||
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.min.js"></script>
|
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.min.js"></script>
|
||||||
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.extension.js"></script>
|
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.extension.js"></script>
|
||||||
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.bootstrap3.js"></script>
|
<script src="/js/plugins/jqTreeGrid/jquery.treegrid.bootstrap3.js"></script>
|
||||||
<script src="/js/plugins/chosen/chosen.jquery.js"></script>
|
<script src="/js/plugins/chosen/chosen.jquery.js"></script>
|
||||||
<script src="/js/plugins/layer/layer.js"></script>
|
<script src="/ajax/libs/layer/layer.min.js"></script>
|
||||||
<script src="/js/content.js?v=1.0.0"></script>
|
<script src="/ruoyi/js/common.js?v=1.0.0"></script>
|
||||||
<!--summernote-->
|
<!--summernote-->
|
||||||
<script src="/js/plugins/summernote/summernote.js"></script>
|
<script src="/js/plugins/summernote/summernote.js"></script>
|
||||||
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
|
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
<meta http-equiv="refresh" content="0;ie.html"/>
|
<meta http-equiv="refresh" content="0;ie.html"/>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
<link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
|
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
||||||
<link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet">
|
<link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet">
|
||||||
<link href="/css/animate.css" rel="stylesheet">
|
<link href="/css/animate.css" rel="stylesheet">
|
||||||
<link href="/css/style.css?v=4.1.0" rel="stylesheet">
|
<link href="/css/style.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden">
|
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden">
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|
@ -123,12 +123,10 @@
|
||||||
<!--右侧部分结束-->
|
<!--右侧部分结束-->
|
||||||
</div>
|
</div>
|
||||||
<!-- 全局js -->
|
<!-- 全局js -->
|
||||||
<script src="/js/jquery.min.js?v=2.1.4"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
<script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
<script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
||||||
<script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
<script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
||||||
<!-- 自定义js -->
|
<script src="/ruoyi/js/common.js?v=1.0.0"></script>
|
||||||
<script src="/js/app.js?v=4.1.0"></script>
|
|
||||||
<script type="text/javascript" src="/js/contabs.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<meta name="keywords" content="若依管理系统">
|
<meta name="keywords" content="若依管理系统">
|
||||||
<meta name="description" content="若依管理系统">
|
<meta name="description" content="若依管理系统">
|
||||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
|
<link href="/css/font-awesome.css" rel="stylesheet">
|
||||||
<link href="/css/animate.css" rel="stylesheet">
|
<link href="/css/animate.css" rel="stylesheet">
|
||||||
<link href="/css/style.css" rel="stylesheet">
|
<link href="/css/style.css" rel="stylesheet">
|
||||||
<link href="/css/login.css" rel="stylesheet">
|
<link href="/css/login.css" rel="stylesheet">
|
||||||
|
|
@ -63,18 +63,17 @@
|
||||||
<span>oschina主页</span>
|
<span>oschina主页</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="outside-login-btn wxoa actived my J-btnSwitchLoginType" target="_Blank"
|
<a class="outside-login-btn wxoa actived my J-btnSwitchLoginType" target="_Blank"
|
||||||
href="https://gitee.com/lcg0124/bootdo">
|
href="https://gitee.com/y_project/RuoYi">
|
||||||
<em><i class="fa fa-git-square"></i></em>
|
<em><i class="fa fa-git-square"></i></em>
|
||||||
<span>码云仓库</span>
|
<span>码云仓库</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="outside-login-btn wxoa actived git J-btnSwitchLoginType" target="_Blank"
|
<a class="outside-login-btn wxoa actived git J-btnSwitchLoginType" target="_Blank"
|
||||||
href="https://github.com/lcg0124/bootdo">
|
href="https://gitee.com/y_project/RuoYi">
|
||||||
<em><i class="fa fa-github"></i></em>
|
<em><i class="fa fa-github"></i></em>
|
||||||
<span>GitHub仓库</span>
|
<span>GitHub仓库</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -85,14 +84,12 @@
|
||||||
</div>
|
</div>
|
||||||
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
|
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
|
||||||
<!-- 全局js -->
|
<!-- 全局js -->
|
||||||
<script src="/js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js?v=3.3.6" th:src="@{/js/bootstrap.min.js?v=3.3.6}"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
<!-- 自定义js -->
|
|
||||||
<script src="/js/content.js?v=1.0.0" th:src="@{/js/content.js?v=1.0.0}"></script>
|
|
||||||
<!-- 验证插件 -->
|
<!-- 验证插件 -->
|
||||||
<script src="/js/plugins/validate/jquery.validate.min.js" th:src="@{/js/plugins/validate/jquery.validate.min.js}"></script>
|
<script src="/ajax/libs/validate/jquery.validate.min.js"></script>
|
||||||
<script src="/js/plugins/validate/messages_zh.min.js" th:src="@{/js/plugins/validate/messages_zh.min.js}"></script>
|
<script src="/ajax/libs/validate/messages_zh.min.js"></script>
|
||||||
<script src="/js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}"></script>
|
<script src="/ajax/libs/layer/layer.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
console.log(ctx);
|
console.log(ctx);
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
<!--360浏览器优先以webkit内核解析-->
|
<!--360浏览器优先以webkit内核解析-->
|
||||||
<title>若依介绍</title>
|
<title>若依介绍</title>
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
<link href="/css/main/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
|
<link href="/css/main/bootstrap.min14ed.css" rel="stylesheet">
|
||||||
<link href="/css/main/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
|
<link href="/css/main/font-awesome.min93e3.css" rel="stylesheet">
|
||||||
<link href="/css/main/animate.min.css" rel="stylesheet">
|
<link href="/css/main/animate.min.css" rel="stylesheet">
|
||||||
<link href="/css/main/style.min862f.css?v=4.1.0" rel="stylesheet">
|
<link href="/css/main/style.min862f.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
|
|
@ -155,7 +155,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/js/jquery.min.js?v=2.1.4"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||