Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ferry_web
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
jianan
ferry_web
Commits
ec52f4f2
Commit
ec52f4f2
authored
Nov 10, 2021
by
lanyulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复ldap切换的问题。
parent
9898a493
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/views/login/index.vue
+9
-7
No files found.
src/views/login/index.vue
View file @
ec52f4f2
...
...
@@ -89,7 +89,7 @@
<img
style=
"height: 48px;width: 100%;border: 1px solid rgba(0,0,0, 0.1);border-radius:5px;"
:src=
"codeUrl"
@
click=
"getCode"
>
</div>
<div
prop=
"code"
style=
"width: 100%;float: left;margin-bottom: 13px"
>
<el-checkbox
v-model=
"isLdap"
>
LDAP登陆
</el-checkbox>
<el-checkbox
v-model=
"isLdap
Tmp
"
>
LDAP登陆
</el-checkbox>
</div>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;padding:12px 20px;margin-bottom:30px;"
@
click
.
native
.
prevent=
"handleLogin"
>
<span
v-if=
"!loading"
>
登 录
</span>
...
...
@@ -113,6 +113,7 @@ export default {
name
:
'Login'
,
data
()
{
return
{
isLdapTmp
:
false
,
codeUrl
:
''
,
cookiePassword
:
''
,
loginForm
:
{
...
...
@@ -153,6 +154,11 @@ export default {
}
},
immediate
:
true
},
isLdap
:
{
handler
:
function
(
val
)
{
this
.
isLdapTmp
=
val
}
}
},
created
()
{
...
...
@@ -187,11 +193,7 @@ export default {
},
checkCapslock
({
shiftKey
,
key
}
=
{})
{
if
(
key
&&
key
.
length
===
1
)
{
if
(
shiftKey
&&
(
key
>=
'a'
&&
key
<=
'z'
)
||
!
shiftKey
&&
(
key
>=
'A'
&&
key
<=
'Z'
))
{
this
.
capsTooltip
=
true
}
else
{
this
.
capsTooltip
=
false
}
this
.
capsTooltip
=
shiftKey
&&
(
key
>=
'a'
&&
key
<=
'z'
)
||
!
shiftKey
&&
(
key
>=
'A'
&&
key
<=
'Z'
)
}
if
(
key
===
'CapsLock'
&&
this
.
capsTooltip
===
true
)
{
this
.
capsTooltip
=
false
...
...
@@ -210,7 +212,7 @@ export default {
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
isLdap
)
{
if
(
this
.
isLdap
Tmp
)
{
this
.
loginForm
.
loginType
=
1
}
else
{
this
.
loginForm
.
loginType
=
0
...
...
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