Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
9f811ddd
Commit
9f811ddd
authored
May 03, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
1c7c6fd2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
iview-admin/src/view/components/tables/forms/forms.vue
+1
-1
iview-admin/src/view/userinfo/accountinfo_page.vue
+9
-5
No files found.
iview-admin/src/view/components/tables/forms/forms.vue
View file @
9f811ddd
...
...
@@ -295,7 +295,7 @@ export default {
if
(
ctl
.
rules
)
{
ctl
.
rules
.
forEach
(
r
=>
{
if
(
r
.
validator
)
{
r
.
validator
=
self
[
r
.
validator
];
r
.
validator
=
this
[
r
.
validator
];
}
});
this
.
metaRules
[
ctl
.
prop
]
=
ctl
.
rules
;
...
...
iview-admin/src/view/userinfo/accountinfo_page.vue
View file @
9f811ddd
...
...
@@ -86,7 +86,7 @@ export default {
prop
:
"onepassword"
,
placeHolder
:
"请输入新密码"
,
style
:
""
,
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
},{
validator
:
"validatex"
,
message
:
" "
,
trigger
:
"blur"
}]
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
},{
validator
:
"validatex"
,
trigger
:
'blur'
}]
},
{
type
:
"password"
,
...
...
@@ -94,7 +94,7 @@ export default {
prop
:
"repeatpassword"
,
placeHolder
:
"请重新输入新密码"
,
style
:
""
,
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
},{
validator
:
"validatex"
,
message
:
" "
,
trigger
:
"blur"
}]
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
},{
validator
:
"validatex"
,
trigger
:
'blur'
}]
}
]
}
...
...
@@ -139,7 +139,7 @@ export default {
prop
:
"mail"
,
placeHolder
:
"请输入邮件"
,
style
:
""
,
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
}]
rules
:
[{
required
:
true
,
message
:
" "
,
trigger
:
"blur"
}
,
{
type
:
'email'
,
message
:
'Incorrect email format'
,
trigger
:
'blur'
}
]
},
{
type
:
"input"
,
...
...
@@ -182,8 +182,12 @@ export default {
},
methods
:
{
validmethod
(
rule
,
value
,
callback
){
console
.
log
(
rule
)
console
.
log
(
value
)
let
rp
=
this
.
$refs
.
pwdinfo
.
formModel
[
"repeatpassword"
]
let
op
=
this
.
$refs
.
pwdinfo
.
formModel
[
"onepassword"
]
console
.
log
(
rp
,
op
)
if
(
rp
!=
op
){
return
callback
(
new
Error
(
"两次输入的密码不一致"
))
}
return
callback
();
},
deepclone
(
objin
)
{
...
...
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