From cc133579b44e78afa4d0c53683bd36d85421e885 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Fri, 15 Mar 2024 11:03:37 +0800 Subject: [PATCH] bug --- fuintAdmin_zt/src/views/Site/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fuintAdmin_zt/src/views/Site/index.vue b/fuintAdmin_zt/src/views/Site/index.vue index 29c337674..37e2edbac 100644 --- a/fuintAdmin_zt/src/views/Site/index.vue +++ b/fuintAdmin_zt/src/views/Site/index.vue @@ -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