bug
This commit is contained in:
parent
4328a0dd4b
commit
cc133579b4
@ -873,7 +873,6 @@ export default {
|
||||
console.log(value);
|
||||
},
|
||||
handleChanges(value) {
|
||||
// console.log('层级',value,this.cascader);
|
||||
let arr = value
|
||||
this.ruleForm.parentId = arr[arr.length - 1]
|
||||
},
|
||||
@ -988,16 +987,18 @@ export default {
|
||||
// 点击树获取部门信息
|
||||
await Userlist(id).then(res=>{
|
||||
console.log("新增树的返回",res)
|
||||
|
||||
this.cascader = []
|
||||
this.deptType = res.data.deptType
|
||||
if (res.data.deptType === "3") {
|
||||
this.parentName = res.data.parentName
|
||||
// this.cascader
|
||||
this.ruleForm.parentId = res.data.parentId
|
||||
} else {
|
||||
this.parentName = res.data.deptName
|
||||
this.ruleForm.parentId = res.data.deptId
|
||||
}
|
||||
|
||||
this.cascader.push(this.ruleForm.parentId)
|
||||
})
|
||||
this.isTopDept = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user