Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
dsk-cr20g
Commits
7381fd08
Commit
7381fd08
authored
Sep 15, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
3f8f3d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
login.vue
dsk-operate-ui/src/views/login.vue
+13
-10
No files found.
dsk-operate-ui/src/views/login.vue
View file @
7381fd08
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled"
>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled"
>
<el-input
<el-input
v-model=
"dxform.captchaCode"
v-model=
"dxform.captchaCode"
@
focus=
"getCode"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"请输入图形验证码"
placeholder=
"请输入图形验证码"
style=
"width: 196px;float: left;"
style=
"width: 196px;float: left;"
...
@@ -92,6 +93,7 @@
...
@@ -92,6 +93,7 @@
v-model=
"loginForm.code"
v-model=
"loginForm.code"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"请输入图形验证码"
placeholder=
"请输入图形验证码"
@
focus=
"getCode"
style=
"width: 196px;float: left;"
style=
"width: 196px;float: left;"
@
keyup
.
enter
.
native=
"handleLogin"
@
keyup
.
enter
.
native=
"handleLogin"
>
>
...
@@ -130,6 +132,7 @@
...
@@ -130,6 +132,7 @@
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled && showcode"
>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled && showcode"
>
<el-input
<el-input
v-model=
"dxform.captchaCode"
v-model=
"dxform.captchaCode"
@
focus=
"getCode"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"请输入验证码"
placeholder=
"请输入验证码"
style=
"width: 196px;float: left;"
style=
"width: 196px;float: left;"
...
@@ -272,8 +275,8 @@
...
@@ -272,8 +275,8 @@
if
(
this
.
nosend
==
true
){
if
(
this
.
nosend
==
true
){
return
false
return
false
}
}
//
logincaptchaSms(this.dxform).then(res=>{
logincaptchaSms
(
this
.
dxform
).
then
(
res
=>
{
//
if(res.code == 200){
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'已发送短信!'
)
this
.
$message
.
success
(
'已发送短信!'
)
let
_this
=
this
let
_this
=
this
...
@@ -288,14 +291,14 @@
...
@@ -288,14 +291,14 @@
_this
.
smstime
=
60
_this
.
smstime
=
60
}
}
},
1000
)
},
1000
)
//
}else{
}
else
{
//
this.$message.error(res.msg)
this
.
$message
.
error
(
res
.
msg
)
//
this.getCode()
this
.
getCode
()
//
this.showcode = true
this
.
showcode
=
true
//
}
}
//
}).catch(res=>{
}).
catch
(
res
=>
{
//
this.$message.error(res.msg)
this
.
$message
.
error
(
res
.
msg
)
//
})
})
},
},
handleLogin
()
{
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
...
...
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