|
@@ -264,19 +264,28 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onResetPassword () {
|
|
onResetPassword () {
|
|
|
- this.$confirm(`将${this.user.username}的密码重置为默认密码?`).then(() => {
|
|
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ `将${this.user.username}的密码重置为默认密码?`,
|
|
|
|
|
+ { type: 'warning' }
|
|
|
|
|
+ ).then(() => {
|
|
|
resetPassword(this.user)
|
|
resetPassword(this.user)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onResetOTP () {
|
|
onResetOTP () {
|
|
|
- this.$confirm(`将${this.user.username}当前绑定的OTP重置?`).then(() => {
|
|
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ `将${this.user.username}当前绑定的OTP重置?`,
|
|
|
|
|
+ { type: 'warning' }
|
|
|
|
|
+ ).then(() => {
|
|
|
deleteUserCredentials(this.user.id, this.credentials.otp.id).then(() => {
|
|
deleteUserCredentials(this.user.id, this.credentials.otp.id).then(() => {
|
|
|
this.credentials.otp = null
|
|
this.credentials.otp = null
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onDel () {
|
|
onDel () {
|
|
|
- this.$confirm(`注销账号${this.user.username}?`).then(() => {
|
|
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ `注销账号${this.user.username}?`,
|
|
|
|
|
+ { type: 'warning' }
|
|
|
|
|
+ ).then(() => {
|
|
|
const loading = this.$showLoading()
|
|
const loading = this.$showLoading()
|
|
|
unbindDevices(`${this.group.path}/${this.user.id}`).then(() => {
|
|
unbindDevices(`${this.group.path}/${this.user.id}`).then(() => {
|
|
|
return deleteUser(this.user).then(() => {
|
|
return deleteUser(this.user).then(() => {
|
|
@@ -327,7 +336,10 @@ export default {
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- this.$confirm(`将${this.user.username}移动至${this.$group.label}?`).then(() => {
|
|
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ `将${this.user.username}移动至${this.$group.label}?`,
|
|
|
|
|
+ { type: 'warning' }
|
|
|
|
|
+ ).then(() => {
|
|
|
const loading = this.$showLoading()
|
|
const loading = this.$showLoading()
|
|
|
updateBindDevices(`${this.$group.path}/${this.user.id}`, `${this.group.path}/${this.user.id}`).then(() => {
|
|
updateBindDevices(`${this.$group.path}/${this.user.id}`, `${this.group.path}/${this.user.id}`).then(() => {
|
|
|
moveUserGroup(this.user.id, this.group, this.$group).then(() => {
|
|
moveUserGroup(this.user.id, this.group, this.$group).then(() => {
|