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

1.重置密码

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