diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
index b4f8ba299..ae11e15db 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
@@ -399,6 +399,13 @@ $(function() {
target.attr('src', url).ready();
}
+ // 页签全屏
+ function fullScreenTab() {
+ var currentId = $('.page-tabs-content').find('.active').attr('data-id');
+ var target = $('.RuoYi_iframe[data-id="' + currentId + '"]');
+ target.fullScreen(true);
+ }
+
// 关闭当前选项卡
function tabCloseCurrent() {
$('.page-tabs-content').find('.active i').trigger("click");
@@ -432,8 +439,11 @@ $(function() {
$(document).toggleFullScreen();
});
- // 刷新按钮
+ // 页签刷新按钮
$('.tabReload').on('click', refreshTab);
+
+ // 页签全屏按钮
+ $('.tabFullScreen').on('click', fullScreenTab);
// 双击选项卡全屏显示
$('.menuTabs').on('dblclick', '.menuTab', activeTabMax);
diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html
index d799bcff8..6d5aa7fde 100644
--- a/ruoyi-admin/src/main/resources/templates/index.html
+++ b/ruoyi-admin/src/main/resources/templates/index.html
@@ -218,7 +218,7 @@
- 刷新
+ 刷新