From 1138bf6e478f82b42287500f79eb103f57dd606f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 17 Oct 2019 19:39:56 +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 --- ruoyi-admin/src/main/resources/static/ruoyi/index.js | 12 +++++++++++- ruoyi-admin/src/main/resources/templates/index.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index b4f8ba29..ae11e15d 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 d799bcff..6d5aa7fd 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -218,7 +218,7 @@ - 刷新 + 刷新