|
@@ -154,7 +154,8 @@ export default {
|
|
},
|
|
},
|
|
ruleFormObj: {},
|
|
ruleFormObj: {},
|
|
roleId: '',
|
|
roleId: '',
|
|
- msgIndex: null
|
|
|
|
|
|
+ msgIndex: null,
|
|
|
|
+ oldPwd: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -201,7 +202,9 @@ export default {
|
|
// 编辑账号
|
|
// 编辑账号
|
|
async saveEditAccount () {
|
|
async saveEditAccount () {
|
|
try {
|
|
try {
|
|
- this.ruleForm.user_pwd = MD5(this.ruleForm.user_pwd)
|
|
|
|
|
|
+ if (this.oldPwd !== this.ruleForm.user_pwd) {
|
|
|
|
+ this.ruleForm.user_pwd = MD5(this.ruleForm.user_pwd)
|
|
|
|
+ }
|
|
const res = await GeneralDataReception({
|
|
const res = await GeneralDataReception({
|
|
serviceId: SERVICE_ID.accountScId,
|
|
serviceId: SERVICE_ID.accountScId,
|
|
dataContent: JSON.stringify(this.ruleForm)
|
|
dataContent: JSON.stringify(this.ruleForm)
|
|
@@ -246,6 +249,7 @@ export default {
|
|
const { listValues } = res.returnData
|
|
const { listValues } = res.returnData
|
|
const obj = listValues[0]
|
|
const obj = listValues[0]
|
|
this.ruleForm = obj
|
|
this.ruleForm = obj
|
|
|
|
+ this.oldPwd = obj.user_pwd
|
|
this.ruleForm.event = 2
|
|
this.ruleForm.event = 2
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|