Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
0a83e054
Commit
0a83e054
authored
Nov 16, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主页
parent
48603722
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
22 deletions
+18
-22
application.yml
src/main/resources/application.yml
+2
-6
index.ftl
src/main/webapp/WEB-INF/manager/index.ftl
+16
-16
No files found.
src/main/resources/application.yml
View file @
0a83e054
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
#后台视图层路径配置
ch
ce
k-code
:
true
#默认开启验证码验证,false验证码不验证
ch
ec
k-code
:
true
#默认开启验证码验证,false验证码不验证
upload
:
enable-web
:
true
#启用web层的上传
...
...
src/main/webapp/WEB-INF/manager/index.ftl
View file @
0a83e054
...
...
@@ -33,15 +33,15 @@
5.1
</div>
</div>
<el-submenu
:popper-class=
"['ms-admin-menu-aside-submenu',theme]"
:index=
"menu.
modelI
d+''"
:data-index=
"menu.
modelI
d+''"
v-for=
"(menu,i) in asideMenuList"
:key=
'i'
>
<el-submenu
:popper-class=
"['ms-admin-menu-aside-submenu',theme]"
:index=
"menu.
i
d+''"
:data-index=
"menu.
i
d+''"
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.modelI
d"
v-for=
"(sub,index) in getSubMenu(menu.
modelI
d)"
<el-menu-item
:index=
"sub.
id+''"
:data-index=
"sub.i
d"
v-for=
"(sub,index) in getSubMenu(menu.
i
d)"
: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.modelI
d'
:data-modelModelId=
'item.modelModelId'
>
:data-
id=
'item.i
d'
:data-modelModelId=
'item.modelModelId'
>
<keep-alive>
<iframe
:src=
'item.isStore?item.modelUrl:ms.manager+"/"+item.modelUrl+(item.modelUrl.indexOf("?")==-1?"?":"&")+"
modelId="+item.modelI
d+"&modelCode="+item.modelCode+"&modelTitle="+encodeURI(item.modelTitle)'
<iframe
:src=
'item.isStore?item.modelUrl:ms.manager+"/"+item.modelUrl+(item.modelUrl.indexOf("?")==-1?"?":"&")+"
id="+item.i
d+"&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
.
modelI
d
;
that
.
asideMenuActive
=
sub
.
i
d
;
})
// 处理其他逻辑
setTimeout
(
function
()
{
...
...
@@ -351,16 +351,16 @@
},
16
)
},
tabClick
:
function
(
tab
)
{
this
.
asideMenuActive
=
tab
.
$el
.
dataset
.
model
id
this
.
asideMenuActive
=
tab
.
$el
.
dataset
.
id
this
.
headMenuActive
=
tab
.
$el
.
dataset
.
modelmodelid
console
.
log
(
this
.
editableTabs
)
},
// 获取当前菜单的子菜单
getSubMenu
:
function
(
modelI
d
)
{
getSubMenu
:
function
(
i
d
)
{
var
result
=
[];
var
that
=
this
;
that
.
subMenuList
&&
that
.
subMenuList
.
forEach
(
function
(
item
)
{
item
.
modelModelId
==
modelI
d
?
result
.
push
(
item
)
:
''
item
.
modelModelId
==
i
d
?
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
.
modelI
d
that
.
asideMenuActive
=
nextTab
.
i
d
that
.
headMenuActive
=
nextTab
.
modelModelId
}
}
...
...
@@ -394,7 +394,7 @@
})
if
(
result
)
{
that
.
asideMenuList
.
forEach
(
function
(
menu
,
index
,
arr
)
{
if
(
menu
.
modelI
d
==
modelModelId
)
{
if
(
menu
.
i
d
==
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
.
modelI
d
return
item
.
id
==
menu
.
i
d
})
||
this
.
asideMenuList
.
push
(
menu
)
// this.getSubMenu(menu.
modelId)[0] && this.$refs.menu.open(this.getSubMenu(menu.modelI
d)[0].modelTitle);
// this.getSubMenu(menu.
id)[0] && this.$refs.menu.open(this.getSubMenu(menu.i
d)[0].modelTitle);
var
children
=
[];
this
.
menuList
.
forEach
(
function
(
tab
)
{
if
(
tab
.
modelModelId
==
menu
.
modelI
d
)
{
if
(
tab
.
modelModelId
==
menu
.
i
d
)
{
children
.
push
(
tab
)
}
})
...
...
@@ -445,7 +445,7 @@
that
.
shortcutMenu
=
false
},
50
)
that
.
$nextTick
(
function
()
{
that
.
$refs
.
menu
.
open
(
String
(
menu
.
modelI
d
))
that
.
$refs
.
menu
.
open
(
String
(
menu
.
i
d
))
})
},
managerGet
:
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment