From d97186274c73c8f02bb613c294ad6bd20b15d3fe Mon Sep 17 00:00:00 2001 From: sxile <3440626@qq.com> Date: Tue, 12 Nov 2019 13:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E7=AD=BE=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/index.js | 16 +++++++++++++--- .../src/main/resources/templates/index.html | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index 93d4883..f5bdb79 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js @@ -398,7 +398,14 @@ $(function() { var url = target.attr('src'); 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"); @@ -431,10 +438,13 @@ $(function() { $('#fullScreen').on('click', 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 3b19cfb..5be7667 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -218,7 +218,7 @@ - 刷新 + 刷新