|
|
@ -187,7 +187,7 @@ |
|
|
|
<el-input v-model="form.passwd" show-password placeholder="请输入密码" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="确认密码" prop="passwd_re"> |
|
|
|
<el-input v-model="form.passwd_re" show-password placeholder="请输入密码" /> |
|
|
|
<el-input v-model="form.passwd_re" show-password placeholder="请再次输入密码" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@ -547,6 +547,9 @@ export default { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.buttonLoading = true; |
|
|
|
if (this.form.passwd != this.form.passwd_re){ |
|
|
|
this.$modal.msgError("修改失败,两次输入的密码不同"); |
|
|
|
}else{ |
|
|
|
if (this.form.id != null) { |
|
|
|
updateUserRegister(this.form).then(response => { |
|
|
|
this.$modal.msgSuccess("修改成功"); |
|
|
@ -565,6 +568,7 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 用户信息-提交按钮-个人 */ |
|
|
@ -597,8 +601,8 @@ export default { |
|
|
|
}, |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|
const ids = row.id || this.ids; |
|
|
|
this.$modal.confirm('是否确认删除用户注册编号为"' + ids + '"的数据项?').then(() => { |
|
|
|
const account = row.account; |
|
|
|
this.$modal.confirm('是否确认删除登录账号为"' + account + '"的数据项?').then(() => { |
|
|
|
this.loading = true; |
|
|
|
return delUserRegister(ids); |
|
|
|
}).then(() => { |
|
|
|