角色管理
This commit is contained in:
@@ -149,15 +149,18 @@ export default {
|
||||
}
|
||||
},
|
||||
username (val) {
|
||||
if (this.type === '1' && this.password !== '' && val !== '') {
|
||||
this.unclick = false
|
||||
}
|
||||
if (this.type === '2' && val !== '') {
|
||||
if (this.type === '1' && (this.password === '' || val === '')) {
|
||||
this.unclick = true
|
||||
} else if (this.type === '2' && val === '') {
|
||||
this.unclick = true
|
||||
} else {
|
||||
this.unclick = false
|
||||
}
|
||||
},
|
||||
password (val) {
|
||||
if (this.type === '1' && this.password !== '' && val !== '') {
|
||||
if (this.type === '1' && (this.password === '' || val === '')) {
|
||||
this.unclick = true
|
||||
} else {
|
||||
this.unclick = false
|
||||
}
|
||||
}
|
||||
@@ -199,7 +202,7 @@ export default {
|
||||
this.value = el.roleId
|
||||
}
|
||||
})
|
||||
if (this.username && this.password) {
|
||||
if (this.username === '') {
|
||||
this.unclick = true
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user