Browse Source

增加关闭全屏

pull/36/head
RuoYi 6 years ago
parent
commit
c1be1659ea
  1. 10
      ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
  2. 6
      ruoyi-admin/src/main/resources/static/ruoyi/index.js
  3. 3
      ruoyi-admin/src/main/resources/templates/index.html

10
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;
}

6
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');

3
ruoyi-admin/src/main/resources/templates/index.html

@ -121,6 +121,9 @@
</div>
<a href="#" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> 刷新</a>
</div>
<a id="ax_close_max" class="ax_close_max" href="#" title="关闭全屏"> <i class="fa fa-times-circle-o"></i> </a>
<div class="row mainContent" id="content-main">
<iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" data-id="/system/main"
th:src="@{/system/main}" frameborder="0" seamless></iframe>

Loading…
Cancel
Save