From 0a83e054723a0fad3be028515be72b8da0b03135 Mon Sep 17 00:00:00 2001 From: wujj <1027418825@qq.com> Date: Mon, 16 Nov 2020 17:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 8 ++---- src/main/webapp/WEB-INF/manager/index.ftl | 32 +++++++++++------------ 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 1ec0c6e1..162cc0ec 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 5108 + port: 8080 servlet.session.timeout: P0DT60M0S #D天H小时M分钟S秒,字符T是紧跟在时分秒之前的,每个单位都必须由数字开始,且时分秒顺序不能乱 # ssl: #https证书配置 配置了之后只能通过https访问应用 # key-store: ms.pfx 证书文件 @@ -13,17 +13,13 @@ logging: path: log #会在项目的根目录下生成log目录,里面会生成对应的日期目录,日期目录下面生成日志压缩包备份文件,默认按每10M分割一个日志文件,例如:log/2020-01/app-2020-01-03-18.1.log.gz(表示2020年1月3号下午六点的第一个备份),也可以根据实际情况写绝对路径,例如:d:/log ms: - mstore: - http: http://store.i.mingsoft.net/ - host: store.i.mingsoft.net - login: http://ms.i.mingsoft.net/sso/login.do # scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题 swagger: enable: true #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html manager: path: /ms #后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改 view-path: /WEB-INF/manager #后台视图层路径配置 - chcek-code: true #默认开启验证码验证,false验证码不验证 + check-code: true #默认开启验证码验证,false验证码不验证 upload: enable-web: true #启用web层的上传 diff --git a/src/main/webapp/WEB-INF/manager/index.ftl b/src/main/webapp/WEB-INF/manager/index.ftl index b7946f69..dd786205 100644 --- a/src/main/webapp/WEB-INF/manager/index.ftl +++ b/src/main/webapp/WEB-INF/manager/index.ftl @@ -33,15 +33,15 @@ 5.1 - + - @@ -149,9 +149,9 @@ @tab-click='tabClick'> + :data-id='item.id' :data-modelModelId='item.modelModelId'> - @@ -339,7 +339,7 @@ this.currentTab = sub.modelTitle; this.headMenuActive = sub.modelModelId this.$nextTick(function () { - that.asideMenuActive = sub.modelId; + that.asideMenuActive = sub.id; }) // 处理其他逻辑 setTimeout(function () { @@ -351,16 +351,16 @@ }, 16) }, tabClick: function (tab) { - this.asideMenuActive = tab.$el.dataset.modelid + this.asideMenuActive = tab.$el.dataset.id this.headMenuActive = tab.$el.dataset.modelmodelid console.log(this.editableTabs) }, // 获取当前菜单的子菜单 - getSubMenu: function (modelId) { + getSubMenu: function (id) { var result = []; var that = this; that.subMenuList && that.subMenuList.forEach(function (item) { - item.modelModelId == modelId ? result.push(item) : '' + item.modelModelId == id ? result.push(item) : '' }) return result; }, @@ -376,7 +376,7 @@ var nextTab = arr[index + 1] || arr[index - 1]; if (nextTab) { that.currentTab = nextTab.modelTitle - that.asideMenuActive = nextTab.modelId + that.asideMenuActive = nextTab.id that.headMenuActive = nextTab.modelModelId } } @@ -394,7 +394,7 @@ }) if (result) { that.asideMenuList.forEach(function (menu, index, arr) { - if (menu.modelId == modelModelId) { + if (menu.id == modelModelId) { var flag = false; that.markList.forEach(function (item, index, array) { if (item.title == menu.modelTitle) { @@ -429,12 +429,12 @@ // 头部导航打开菜单 openMenu: function (menu, index) { this.asideMenuList.some(function (item, index) { - return item.modelId == menu.modelId + return item.id == menu.id }) || this.asideMenuList.push(menu) - // this.getSubMenu(menu.modelId)[0] && this.$refs.menu.open(this.getSubMenu(menu.modelId)[0].modelTitle); + // this.getSubMenu(menu.id)[0] && this.$refs.menu.open(this.getSubMenu(menu.id)[0].modelTitle); var children = []; this.menuList.forEach(function (tab) { - if (tab.modelModelId == menu.modelId) { + if (tab.modelModelId == menu.id) { children.push(tab) } }) @@ -445,7 +445,7 @@ that.shortcutMenu = false }, 50) that.$nextTick(function () { - that.$refs.menu.open(String(menu.modelId)) + that.$refs.menu.open(String(menu.id)) }) }, managerGet: function () {