diff --git a/src/main/resources/modules/SpringBoot/java/action/screen/Index.java b/src/main/resources/modules/SpringBoot/java/action/screen/Index.java index 0cfe4855..5d71ab17 100644 --- a/src/main/resources/modules/SpringBoot/java/action/screen/Index.java +++ b/src/main/resources/modules/SpringBoot/java/action/screen/Index.java @@ -16,6 +16,7 @@ public class Index extends Screen { prop.put("open", true);//是否保持一个子菜单展开 prop.put("coll", false);//左侧菜单是否收缩 prop.put("tran", false);//是否展示动画 + prop.put("full", false);//是否全屏 model.addAttribute("prop", prop); } } diff --git a/src/main/resources/modules/SpringBoot/resources/static/css/base.css b/src/main/resources/modules/SpringBoot/resources/static/css/base.css index cd2edb12..1c8fd366 100644 --- a/src/main/resources/modules/SpringBoot/resources/static/css/base.css +++ b/src/main/resources/modules/SpringBoot/resources/static/css/base.css @@ -708,7 +708,7 @@ code { .el-form.form .el-form-item__content > div, .el-form.search .el-form-item__content, .el-form.search .el-form-item__content > div { - width: 220px; + width: 200px; } .form-dialog .el-dialog{ diff --git a/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl b/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl index 996ea614..2d4d61dd 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl @@ -547,6 +547,36 @@ } })(); }, + setFullScreen: function () { + var el = document.documentElement; + var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen; + + //typeof rfs != "undefined" && rfs + if (rfs) { + rfs.call(el); + } else if (typeof window.ActiveXObject !== "undefined") { + //for IE,这里其实就是模拟了按下键盘的F11,使浏览器全屏 + var wscript = new ActiveXObject("WScript.Shell"); + if (wscript != null) { + wscript.SendKeys("{F11}"); + } + } + }, + cancelFullScreen: function () { + var el = document; + var cfs = el.cancelFullScreen || el.webkitCancelFullScreen || el.mozCancelFullScreen || el.exitFullScreen; + + //typeof cfs != "undefined" && cfs + if (cfs) { + cfs.call(el); + } else if (typeof window.ActiveXObject !== "undefined") { + //for IE,这里和fullScreen相同,模拟按下F11键退出全屏 + var wscript = new ActiveXObject("WScript.Shell"); + if (wscript != null) { + wscript.SendKeys("{F11}"); + } + } + } } }); //字典组件 diff --git a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl index f7432347..7a6aec8c 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl @@ -61,6 +61,9 @@ +