Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
b974e768
Commit
b974e768
authored
Jan 28, 2019
by
yinxr
Browse files
Signed-off-by: yinxr <2273460044@qq.com>
parent
314f6c50
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/exit-system.ftl
0 → 100644
View file @
b974e768
<!--
退出系统 -->
<
div
id="exit-system" class="exit-system">
<el-dialog title="退出提示" :visible.sync="isShow">
确认退出
<div slot="footer" class="dialog-footer">
<el-button @click="isShow = false">取 消</el-button>
<el-button type="primary" @click="loginOut">确认退出</el-button>
</div>
</el-dialog>
</
div
>
<
script
>
var exitSystemVue = new Vue(
{
el
:
'#
exit-system
'
,
data
:
{
isShow
:
false
,
//
模态框的显示
},
methods
:
{
loginOut
:
function
()
{
var
that
=
this
;
ms
.http.get
(
ms
.manager
+
"/loginOut.do"
)
.then
((
data
)
=>
{
isShow
=
false
;
location
.href
=
ms
.manager
+
"/login.do"
;
},
(
err
)
=>
{
that
.
$message
.error
(
data
.resultMsg
)
;
})
}
}
}
)
</
script
>
\ No newline at end of file
src/main/webapp/WEB-INF/manager/include/head-file.ftl
View file @
b974e768
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
// ms.manager = "$
{
managerPath
}
";
// ms.manager = "$
{
managerPath
}
";
ms.base = "http://192.168.0.54:82";
ms.base = "http://192.168.0.54:82";
ms.manager = "http://192.168.0.54:82/apis";
ms.manager = "http://192.168.0.54:82/apis
/ms
";
//图片懒加载
//图片懒加载
Vue.use(VueLazyload,
{
Vue.use(VueLazyload,
{
error
:
ms
.base
+
'/
images
/
ic_image_deault
.png
'
,
error
:
ms
.base
+
'/
images
/
ic_image_deault
.png
'
,
...
...
src/main/webapp/WEB-INF/manager/index.ftl
View file @
b974e768
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
<title></title>
<title></title>
<!-- <#include "/include/head-file.ftl"/> -->
<!-- <#include "/include/head-file.ftl"/> -->
<!-- <link rel="stylesheet" href="$
{
base
}
/static/ms-admin/4.7.0/css/index.css"> -->
<!-- <link rel="stylesheet" href="$
{
base
}
/static/ms-admin/4.7.0/css/index.css"> -->
<!--#include virtual="include/head-file.ftl" -->
<!--#include virtual="include/head-file.ftl" -->
<!--#include virtual="./reset-password.ftl" -->
<!--#include virtual="./exit-system.ftl" -->
<link rel="stylesheet" href="../../../static/ms-admin/4.7.0/css/index.css">
<link rel="stylesheet" href="../../../static/ms-admin/4.7.0/css/index.css">
</head>
</head>
...
@@ -52,9 +53,9 @@
...
@@ -52,9 +53,9 @@
<el-dropdown trigger="click" class="ms-admin-login" placement="top-start" @visible-change="loginDown = !loginDown">
<el-dropdown trigger="click" class="ms-admin-login" placement="top-start" @visible-change="loginDown = !loginDown">
<span class="el-dropdown-link" :class="
{
'
active
'
:
loginDown
}
">
<span class="el-dropdown-link" :class="
{
'
active
'
:
loginDown
}
">
<img src="http://cdn.mingsoft.net/global/static/ms-admin/4.7.0//msheader.png" />
<img src="http://cdn.mingsoft.net/global/static/ms-admin/4.7.0//msheader.png" />
<span
>管理员
</span>
<span
v-text='peopleInfo.managerName'>
</span>
</span>
</span>
<el-dropdown-menu class="ms-admin-login-down" slot="dropdown">
<el-dropdown-menu class="ms-admin-login-down" slot="dropdown"
@click.native='openModal'
>
<el-dropdown-item>修改密码</el-dropdown-item>
<el-dropdown-item>修改密码</el-dropdown-item>
<el-dropdown-item>退出</el-dropdown-item>
<el-dropdown-item>退出</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
...
@@ -127,9 +128,8 @@
...
@@ -127,9 +128,8 @@
</div>
</div>
</body>
</body>
</
html
>
</
html
>
<
script
>
<
script
>
new Vue(
{
var indexVue =
new Vue(
{
el
:
"#app"
,
el
:
"#app"
,
data
:
{
data
:
{
//
预置菜单图标
//
预置菜单图标
...
@@ -154,6 +154,10 @@
...
@@ -154,6 +154,10 @@
collapseMenu
:
false
,
//菜单折叠,
false
不折叠
collapseMenu
:
false
,
//菜单折叠,
false
不折叠
currentTab
:
''
,
//当前激活
tab
的
name
currentTab
:
''
,
//当前激活
tab
的
name
tabIndex
:
2
,
tabIndex
:
2
,
//登录用户信息
peopleInfo
:{
managerName
:
''//账号
},
},
},
watch
:{
watch
:{
menuList
:
function
(
n
,
o
){
menuList
:
function
(
n
,
o
){
...
@@ -170,11 +174,11 @@
...
@@ -170,11 +174,11 @@
//
菜单列表
//
菜单列表
list
:
function
(){
list
:
function
(){
var
that
=
this
;
var
that
=
this
;
ms
.http.get
(
ms
.
base
+
"/
ms/
model/list.do"
)
ms
.http.get
(
ms
.
manager
+
"/model/list.do"
)
.then
((
data
)
=>
{
.then
((
data
)
=>
{
that
.menuList
=
data
.rows
that
.menuList
=
data
.rows
},
(
err
)
=>
{
},
(
err
)
=>
{
that
.
$message
.error
(
data
.resultMsg
)
;
that
.
$message
.error
(
err
)
;
})
})
},
},
//
菜单打开页面
//
菜单打开页面
...
@@ -232,11 +236,28 @@
...
@@ -232,11 +236,28 @@
setTimeout
(
function
(){
setTimeout
(
function
(){
that
.shortcutMenu
=
false
that
.shortcutMenu
=
false
},
50
)
},
50
)
},
managerGet
:
function
(){
var
that
=
this
;
ms
.http.get
(
ms
.manager
+
"/basic/manager/get.do"
)
.then
((
data
)
=>
{
that
.peopleInfo
=
data
},
(
err
)
=>
{
that
.
$message
.error
(
err
)
;
})
},
//
打开修改密码,退出的模态框
openModal
:
function
(){
console
.log
(
'
event
.target
'
,
event
.target.innerText
)
;
event
.target.innerText.indexOf
(
'修改密码'
)
>
-1
?
resetPasswordVue
.isShow
=
true
:
exitSystemVue
.isShow
=
true
}
}
},
},
mounted
:
function
(){
mounted
:
function
(){
//
菜单列表
//
菜单列表
this
.list
()
;
this
.list
()
;
//获取登录用户信息
this
.managerGet
()
;
},
},
}
)
}
)
</
script
>
</
script
>
\ No newline at end of file
src/main/webapp/WEB-INF/manager/reset-password.ftl
0 → 100644
View file @
b974e768
<!--
修改密码 -->
<
div
id="reset-password" class="reset-password">
<el-dialog title="修改密码" :visible.sync="isShow">
<el-form :model="resetPasswordForm" label-width='80px'>
<el-form-item label="账号">
<el-input v-model="resetPasswordForm.managerName" autocomplete="off" readonly disabled></el-input>
</el-form-item>
<el-form-item label="旧密码">
<el-input v-model="resetPasswordForm.oldManagerPassword" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="新密码">
<el-input v-model="resetPasswordForm.newManagerPassword" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="isShow = false">取 消</el-button>
<el-button type="primary" @click="update">更新密码</el-button>
</div>
</el-dialog>
</
div
>
<
script
>
var resetPasswordVue = new Vue(
{
el
:
'#
reset-password
'
,
data
:
{
//
模态框的显示
isShow
:
false
,
resetPasswordForm
:
{
managerName
:
''
,
oldManagerPassword
:
''
,
newManagerPassword
:
""
,
}
},
methods
:
{
//
更新密码
update
:
function
()
{
isShow
=
false
}
}
}
)
</
script
>
\ No newline at end of file
Write
Preview
Supports
Markdown
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