Commit 525338ab authored by 高宇's avatar 高宇

1.重置密码

parent 56f2dce5
......@@ -729,21 +729,24 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset()
const userId = row.businessId || this.ids
getUser(userId).then(response => {
this.title = '修改用户'
this.open = true
if (response.data.deptId === '0') {
response.data.deptId = null
}
this.form = response.data
const data = response.data.roleIds.split(',')
// TODO: clear this log
console.log(`data`, data)
this.form.roleList = []
data.forEach(item => {
const id = Number(item)
this.form.roleList.push(id)
})
if (response.data.roleIds && response.data.roleIds !== '') {
const data = response.data.roleIds.split(',')
this.form.roleList = []
data.forEach(item => {
const id = Number(item)
this.form.roleList.push(id)
})
}
// this.form.postId = response.data.deptId
this.title = '修改'
})
this.getChildrenDept(userId)
},
......
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