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