角色管理

This commit is contained in:
2023-05-24 14:43:07 +08:00
parent bed7c65a70
commit 1c83c365e1
5 changed files with 178 additions and 221 deletions

View File

@@ -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