Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
29ec7f8a
Commit
29ec7f8a
authored
Nov 24, 2017
by
Pan
Committed by
花裤衩
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:add showPwd
parent
890cfe58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
favicon.ico
favicon.ico
+0
-0
index.vue
src/views/login/index.vue
+12
-2
No files found.
favicon.ico
View replaced file @
890cfe58
View file @
29ec7f8a
66.1 KB
|
W:
|
H:
66.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/login/index.vue
View file @
29ec7f8a
...
...
@@ -13,8 +13,9 @@
<span
class=
"svg-container"
>
<svg-icon
icon-class=
"password"
></svg-icon>
</span>
<el-input
name=
"password"
type=
"password
"
@
keyup
.
enter
.
native=
"handleLogin"
v-model=
"loginForm.password"
autoComplete=
"on"
<el-input
name=
"password"
:type=
"pwdType
"
@
keyup
.
enter
.
native=
"handleLogin"
v-model=
"loginForm.password"
autoComplete=
"on"
placeholder=
"password"
></el-input>
<span
class=
"show-pwd"
@
click=
"showPwd"
><svg-icon
icon-class=
"eye"
/></span>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"width:100%;"
:loading=
"loading"
@
click
.
native
.
prevent=
"handleLogin"
>
...
...
@@ -58,10 +59,18 @@ export default {
username
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validateUsername
}],
password
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validatePass
}]
},
loading
:
false
loading
:
false
,
pwdType
:
'password'
}
},
methods
:
{
showPwd
()
{
if
(
this
.
pwdType
===
'password'
)
{
this
.
pwdType
=
''
}
else
{
this
.
pwdType
=
'password'
}
},
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -154,6 +163,7 @@ export default {
font-size
:
16px
;
color
:
$dark_gray
;
cursor
:
pointer
;
user-select
:none
;
}
.thirdparty-button
{
position
:
absolute
;
...
...
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