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
fa9020e2
Commit
fa9020e2
authored
Jan 28, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台登录
parent
a16292b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
16 deletions
+28
-16
index.ftl
src/main/webapp/WEB-INF/manager/index.ftl
+7
-4
login.ftl
src/main/webapp/WEB-INF/manager/login.ftl
+9
-8
reset-password.ftl
src/main/webapp/WEB-INF/manager/reset-password.ftl
+12
-4
No files found.
src/main/webapp/WEB-INF/manager/index.ftl
View file @
fa9020e2
...
@@ -2,12 +2,14 @@
...
@@ -2,12 +2,14 @@
<html>
<html>
<head>
<head>
<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"> -->
<
#
include
"/
reset-password
.
ftl
"
/>
<
#
include
"/
exit-system
.
ftl
"
/>
<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="./reset-password.ftl" -->
<!--#include virtual="./exit-system.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>
<body>
<body>
...
@@ -174,7 +176,7 @@
...
@@ -174,7 +176,7 @@
// 菜单列表
// 菜单列表
list
:
function
(){
list
:
function
(){
var
that
=
this
;
var
that
=
this
;
ms
.
http
.
ge
t
(
ms
.
manager
+
"/model/list.do"
)
ms
.
http
.
pos
t
(
ms
.
manager
+
"/model/list.do"
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
that
.
menuList
=
data
.
rows
that
.
menuList
=
data
.
rows
},
(
err
)
=>
{
},
(
err
)
=>
{
...
@@ -242,6 +244,7 @@
...
@@ -242,6 +244,7 @@
ms
.
http
.
get
(
ms
.
manager
+
"/basic/manager/get.do"
)
ms
.
http
.
get
(
ms
.
manager
+
"/basic/manager/get.do"
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
that
.
peopleInfo
=
data
that
.
peopleInfo
=
data
resetPasswordVue
.
resetPasswordForm
.
managerName
=
that
.
peopleInfo
.
managerName
},
(
err
)
=>
{
},
(
err
)
=>
{
that
.
$message
.
error
(
err
);
that
.
$message
.
error
(
err
);
})
})
...
...
src/main/webapp/WEB-INF/manager/login.ftl
View file @
fa9020e2
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
<head>
<head>
<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/login.css"> --
>
<
link
rel=
"stylesheet"
href=
"${base}/static/ms-admin/4.7.0/css/login.css"
>
<!--#include virtual="include/head-file.ftl" -->
<!--#include virtual="include/head-file.ftl" -->
<
link
rel=
"stylesheet"
href=
"../../../static/ms-admin/4.7.0/css/login.css"
>
<
!--<link rel="stylesheet" href="../../../static/ms-admin/4.7.0/css/login.css">--
>
</head>
</head>
<body>
<body>
<div
id=
"login"
class=
"login"
>
<div
id=
"login"
class=
"login"
@
keydown
.
enter=
"checkLogin"
>
<el-container
class=
"ms-admin-login-container"
>
<el-container
class=
"ms-admin-login-container"
>
<el-main
class=
"ms-admin-login-main"
>
<el-main
class=
"ms-admin-login-main"
>
<div
class=
"ms-admin-login-warp"
>
<div
class=
"ms-admin-login-warp"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<el-checkbox
v-model=
"rememberPass"
>
记住密码
</el-checkbox>
<el-checkbox
v-model=
"rememberPass"
>
记住密码
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item
class=
"ms-admin-form-item"
>
<el-form-item
class=
"ms-admin-form-item"
>
<el-button
type=
"primary"
@
click=
"checkLogin"
class=
"ms-admin-login-btn"
>
登录
</el-button>
<el-button
type=
"primary"
@
click=
'checkLogin'
class=
"ms-admin-login-btn"
>
登录
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -52,7 +52,7 @@ var loginVue = new Vue({
...
@@ -52,7 +52,7 @@ var loginVue = new Vue({
managerPassword
:
""
,
managerPassword
:
""
,
rand_code
:
''
,
rand_code
:
''
,
},
},
verifCode
:
ms
.
manager
+
"/code?t="
+
new
Date
().
getTime
(),
verifCode
:
ms
.
base
+
"/code?t="
+
new
Date
().
getTime
(),
rememberPass
:
''
,
rememberPass
:
''
,
loginFormRule
:
{
loginFormRule
:
{
managerName
:
[{
managerName
:
[{
...
@@ -117,12 +117,12 @@ var loginVue = new Vue({
...
@@ -117,12 +117,12 @@ var loginVue = new Vue({
})
})
},
},
code
:
function
()
{
code
:
function
()
{
this
.
verifCode
=
ms
.
manager
+
"/code?t="
+
new
Date
().
getTime
();
this
.
verifCode
=
ms
.
base
+
"/code?t="
+
new
Date
().
getTime
();
},
},
},
},
mounted
:
function
(){
mounted
:
function
(){
this
.
verifCode
=
ms
.
manager
+
"/code?t="
+
new
Date
().
getTime
()
this
.
verifCode
=
ms
.
base
+
"/code?t="
+
new
Date
().
getTime
()
}
}
})
})
</script>
</script>
\ No newline at end of file
src/main/webapp/WEB-INF/manager/reset-password.ftl
View file @
fa9020e2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</el-form>
</el-form>
<div slot="footer" class="dialog-footer">
<div slot="footer" class="dialog-footer">
<el-button @click="isShow = false">取 消</el-button>
<el-button @click="isShow = false">取 消</el-button>
<el-button type="primary" @click="update">更新密码</el-button>
<el-button type="primary" @click="update
Password
">更新密码</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -27,13 +27,21 @@
...
@@ -27,13 +27,21 @@
resetPasswordForm: {
resetPasswordForm: {
managerName: '',
managerName: '',
oldManagerPassword: '',
oldManagerPassword: '',
newManagerPassword:
""
,
newManagerPassword:
''
,
}
}
},
},
methods: {
methods: {
// 更新密码
// 更新密码
update: function () {
updatePassword: function () {
isShow = false
var that = this;
ms.http.post(ms.manager + "/updatePassword.do",that.resetPasswordForm)
.then((data)=>{
that.resetPasswordForm.oldManagerPassword = '';
that.resetPasswordForm.newManagerPassword = '';
that.isShow = false;
}, (err) => {
that.$message.error(err);
})
}
}
}
}
})
})
...
...
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