From ac57e8908ffea859d8816dc8fddf9cfd6b88fcf2 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 15 Nov 2018 15:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=AD=E5=85=A8?= =?UTF-8?q?=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/css/ry-ui.css | 10 ++++++++++ ruoyi-admin/src/main/resources/static/ruoyi/index.js | 6 ++++++ ruoyi-admin/src/main/resources/templates/index.html | 3 +++ 3 files changed, 19 insertions(+) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css b/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css index 5baaeb5c..73f1b986 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css +++ b/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css @@ -436,3 +436,13 @@ label { .table-bordered td,.table-bordered th { border: 1px solid #ddd!important } + +/** 首页样式 */ +.ax_close_max { + position: fixed; + top: 5px; + left: 5px; + z-index: 9999; + display: none; + color: #ccc; +} diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index 2d2b1e8d..52e96fa3 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js @@ -402,6 +402,12 @@ $(function() { $('.page-tabs-content').find('.active').trigger("dblclick"); }); + // 关闭全屏 + $('#ax_close_max').click(function(){ + $('#content-main').toggleClass('max'); + $('#ax_close_max').hide(); + }) + // 双击选项卡全屏显示 function activeTabMax() { $('#content-main').toggleClass('max'); diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index b8a369b6..97948706 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -121,6 +121,9 @@ 刷新 + + +