用户列表部分分配
This commit is contained in:
@@ -509,7 +509,12 @@ export default {
|
||||
// 获取左侧部门数据
|
||||
getDeptDatas(node, resolve) {
|
||||
setTimeout(() => {
|
||||
crudDept.getDeptTree({ name: node }).then(res => {
|
||||
var q = {}
|
||||
// eslint-disable-next-line eqeqeq
|
||||
if (node != '') {
|
||||
q = { name: node }
|
||||
}
|
||||
crudDept.getDeptTree(q).then(res => {
|
||||
console.log('res', res)
|
||||
if (resolve) {
|
||||
resolve(res.content)
|
||||
@@ -584,6 +589,7 @@ export default {
|
||||
this.query.deptId = data.deptId
|
||||
this.query.needAll = true
|
||||
this.crud.toQuery()
|
||||
this.query.deptId = null
|
||||
},
|
||||
// 改变状态
|
||||
changeEnabled(row) {
|
||||
@@ -803,7 +809,6 @@ export default {
|
||||
} else {
|
||||
user.rolesIds = this.crud.selections.map(item => (item.roleId))
|
||||
}
|
||||
debugger
|
||||
crudUser.edit(user).then(res => {
|
||||
this.cancelForm()
|
||||
this.crud.notify('保存成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user