【修改】修改yonghu重置密码
This commit is contained in:
@@ -299,7 +299,11 @@ export default {
|
|||||||
if (!this.checkUserForm()) return
|
if (!this.checkUserForm()) return
|
||||||
const data = JSON.parse(JSON.stringify(this.form))
|
const data = JSON.parse(JSON.stringify(this.form))
|
||||||
data.account = this.$JSEncrypt(data.account)
|
data.account = this.$JSEncrypt(data.account)
|
||||||
data.password = this.$JSEncrypt(data.password)
|
if(this.dialogTitle=='编辑'){
|
||||||
|
delete data['password']
|
||||||
|
}else{
|
||||||
|
data.password = this.$JSEncrypt(data.password)
|
||||||
|
}
|
||||||
const jsonData = JSON.stringify(data)
|
const jsonData = JSON.stringify(data)
|
||||||
this.$api.user.sysUserAddUser(Base64.encodeURI(jsonData)).then(_ => {
|
this.$api.user.sysUserAddUser(Base64.encodeURI(jsonData)).then(_ => {
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user