This commit is contained in:
cun-nan 2024-03-15 11:03:37 +08:00
parent 4328a0dd4b
commit cc133579b4

View File

@ -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