|
|
|
@ -152,8 +152,8 @@ |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<!--通用本地参数设置--> |
|
|
|
<el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false" :append-to-body="true" |
|
|
|
width="800px" height="600px"> |
|
|
|
<el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false" |
|
|
|
:append-to-body="true" width="800px" height="600px"> |
|
|
|
<LocalConfig /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
@ -309,25 +309,28 @@ export default { |
|
|
|
determine() { |
|
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (this.form.oldPassWord != this.password) { |
|
|
|
this.$message.warning("旧密码输入错误"); |
|
|
|
if (!this.form.oldPassWord) { |
|
|
|
this.$message.warning("请输入旧密码"); |
|
|
|
} else if (this.confirmpassword != this.form.newPassWord) { |
|
|
|
this.$message.warning("二次输入的密码不一致"); |
|
|
|
} else { |
|
|
|
postapi("/api/identity/users/updatepassword", this.form).then( |
|
|
|
(res) => { |
|
|
|
postapi("/api/identity/users/updatepassword", this.form) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
console.log("修改成功"); |
|
|
|
this.dialogVisible = false; |
|
|
|
} |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//修改密码 |
|
|
|
editpassword() { |
|
|
|
this.form.oldPassWord = "" |
|
|
|
this.confirmpassword = "" |
|
|
|
this.form.newPassWord = "" |
|
|
|
this.dialogVisible = true; |
|
|
|
console.log(this.password); |
|
|
|
}, |
|
|
|
//退出登录 |
|
|
|
logout() { |
|
|
|
|