wujj 5 år sedan
förälder
incheckning
0a83e05472
2 ändrade filer med 18 tillägg och 22 borttagningar
  1. 2 6
      src/main/resources/application.yml
  2. 16 16
      src/main/webapp/WEB-INF/manager/index.ftl

+ 2 - 6
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层的上传

+ 16 - 16
src/main/webapp/WEB-INF/manager/index.ftl

@@ -33,15 +33,15 @@
                             5.1
                         </div>
                     </div>
-                    <el-submenu :popper-class="['ms-admin-menu-aside-submenu',theme]" :index="menu.modelId+''"
-                                :data-index="menu.modelId+''" v-for="(menu,i) in asideMenuList" :key='i'>
+                    <el-submenu :popper-class="['ms-admin-menu-aside-submenu',theme]" :index="menu.id+''"
+                                :data-index="menu.id+''" v-for="(menu,i) in asideMenuList" :key='i'>
                         <template slot="title">
                             <i class='ms-admin-icon iconfont' :class="menu.modelIcon"></i>
                             <span>{{menu.modelTitle}}</span>
                         </template>
                         <!-- 子菜单 -->
-                        <el-menu-item :index="sub.modelId+''" :data-index="sub.modelId"
-                                      v-for="(sub,index) in getSubMenu(menu.modelId)"
+                        <el-menu-item :index="sub.id+''" :data-index="sub.id"
+                                      v-for="(sub,index) in getSubMenu(menu.id)"
                                       :key='sub.modelModelId' v-text="sub.modelTitle"
                                       @click.self='open(sub)'></el-menu-item>
                     </el-submenu>
@@ -149,9 +149,9 @@
                          @tab-click='tabClick'>
                     <el-tab-pane v-for="(item, index) in editableTabs" :key="index" :label="item.modelTitle"
                                  :name="item.modelTitle"
-                                 :data-modelId='item.modelId' :data-modelModelId='item.modelModelId'>
+                                 :data-id='item.id' :data-modelModelId='item.modelModelId'>
                         <keep-alive>
-                            <iframe :src='item.isStore?item.modelUrl:ms.manager+"/"+item.modelUrl+(item.modelUrl.indexOf("?")==-1?"?":"&")+"modelId="+item.modelId+"&modelCode="+item.modelCode+"&modelTitle="+encodeURI(item.modelTitle)'
+                            <iframe :src='item.isStore?item.modelUrl:ms.manager+"/"+item.modelUrl+(item.modelUrl.indexOf("?")==-1?"?":"&")+"id="+item.id+"&modelCode="+item.modelCode+"&modelTitle="+encodeURI(item.modelTitle)'
                                     :ref="item.modelTitle"></iframe>
                         </keep-alive>
                     </el-tab-pane>
@@ -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 () {