Commit 1c9371d5 authored by houjn@hikoon.cn's avatar houjn@hikoon.cn

业务密码修改错误

parent 6c456cef
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="密码" prop="pwd"> <el-form-item label="密码" prop="pwd">
<el-input v-model="form.pwd" placeholder="请输入密码" type="password"/> <el-input v-model="pwd1" placeholder="请输入密码" type="password"/>
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="pwd"> <el-form-item label="确认密码" prop="pwd">
<el-input v-model="pwd2" placeholder="请再次输入密码" type="password"/> <el-input v-model="pwd2" placeholder="请再次输入密码" type="password"/>
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
// 表单参数 // 表单参数
form: {}, form: {},
pwd2:null, pwd2:null,
pwd1:null,
// 表单校验 // 表单校验
rules: { rules: {
} }
...@@ -191,12 +192,13 @@ export default { ...@@ -191,12 +192,13 @@ export default {
if (!valid) { if (!valid) {
return; return;
} }
if(this.pwd2!==this.form.pwd){ if(this.pwd2!==this.pwd1){
this.$modal.alertError("两次密码输入不一致"); this.$modal.alertError("两次密码输入不一致");
return; return;
} }
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
this.form.pwd = this.pwd1;
updateBusiPwd(this.form).then(response => { updateBusiPwd(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment