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