Commit 73a59c0f authored by jingnan's avatar jingnan 👀

合并产品【9970】系统缺少账号修改功能

parent 47990d7b
......@@ -400,7 +400,9 @@ export default {
})
}
params.targetDxPostMemberLink = params.targetDxPostMemberLink.concat(deleteTargetDxPostMemberLink)
this.modifyUserAccount(params).then(() => {
this.saveUser(params, 'DxUserInfo')
})
} else {
// 新增
const params = {
......@@ -432,13 +434,23 @@ export default {
})
},
saveUser(dxUserInfo, modelName) {
this.$api.recursion(modelName, dxUserInfo).then(res => {
this.$api.recursion(modelName, dxUserInfo)
.then(res => {
this.$emit('completeEven', {})
this.$utils.showMessageSuccess(res.message)
})
},
handleClose() {
this.$emit('cancel', {})
},
// 编辑的时候变更账号执行
modifyUserAccount(params) {
const userAccount_old = this.basicData.userAccount
const userAccount_new = params.userAccount
if (userAccount_old && userAccount_new && userAccount_old !== userAccount_new) {
return post(`/DxUserAccount/modifyUserAccount?currentUserAccount=${userAccount_old}&newUserAccount=${userAccount_new}`)
}
return Promise.resolve(params)
}
}
}
......
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