Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
17a9a3dd
Commit
17a9a3dd
authored
Nov 24, 2022
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修改
parent
0239e519
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
src/views/LoginPage.vue
+26
-11
No files found.
src/views/LoginPage.vue
View file @
17a9a3dd
...
@@ -3,21 +3,33 @@
...
@@ -3,21 +3,33 @@
<div
class=
"system-name"
>
SAAS 管理平台
</div>
<div
class=
"system-name"
>
SAAS 管理平台
</div>
<div
class=
"login-view"
>
<div
class=
"login-view"
>
<h2>
登录
</h2>
<h2>
登录
</h2>
<el-form
:model=
"loginForm"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
class=
"login-form"
>
<el-form-item
prop=
"userName"
>
<el-form-item
prop=
"userName"
:rules=
"[
{ required: true, message: '请输入用户名' },
]"
>
<el-input
<el-input
prefix-icon=
"el-icon-user"
prefix-icon=
"el-icon-user"
v-model=
"loginForm.userName"
v-model=
"loginForm.userName"
placeholder=
"User Name"
placeholder=
"User Name"
clearable
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
:rules=
"[
{ required: true, message: '请输入密码' },
]"
>
<el-input
<el-input
:type=
"showPwd ? 'text' : 'password'"
:type=
"showPwd ? 'text' : 'password'"
prefix-icon=
"el-icon-lock"
prefix-icon=
"el-icon-lock"
v-model=
"loginForm.password"
v-model=
"loginForm.password"
placeholder=
"Password"
placeholder=
"Password"
@
keyup
.
enter
.
native=
"login"
@
keyup
.
enter
.
native=
"login"
clearable
>
>
<i
<i
@
click=
"showPwd = !showPwd"
@
click=
"showPwd = !showPwd"
...
@@ -31,7 +43,9 @@
...
@@ -31,7 +43,9 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
"operate"
>
<el-form-item
class=
"operate"
>
<el-button
type=
"primary"
@
click=
"login"
>
登录
</el-button>
<el-button
type=
"primary"
@
click=
"login"
>
登录
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -54,13 +68,14 @@ export default {
...
@@ -54,13 +68,14 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
loginForm
=
{}
//
this.loginForm = {}
},
},
methods
:
{
methods
:
{
...
mapMutations
([
'setUserInfo'
]),
...
mapMutations
([
'setUserInfo'
]),
async
login
()
{
async
login
()
{
if
(
!
this
.
loginForm
.
userName
||
!
this
.
loginForm
.
password
)
{
try
{
this
.
$message
.
error
(
'请输入用户名或密码'
)
await
this
.
$refs
.
loginForm
.
validate
()
}
catch
{
return
return
}
}
const
l
=
this
.
$loading
({
const
l
=
this
.
$loading
({
...
@@ -142,12 +157,12 @@ h2 {
...
@@ -142,12 +157,12 @@ h2 {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.eyes.open
{
.eyes.open
{
background
:
url('../assets/login/eyes-open.png')
no-repeat
center
/
background
:
url('../assets/login/eyes-open.png')
no-repeat
cover
;
c
enter
/
c
over
;
}
}
.eyes.close
{
.eyes.close
{
background
:
url('../assets/login/eyes-closed.png')
no-repeat
center
/
background
:
url('../assets/login/eyes-closed.png')
cover
;
no-repeat
center
/
cover
;
}
}
.el-button--primary
{
.el-button--primary
{
...
...
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