|
@@ -36,18 +36,18 @@ function formatData(arr){
|
|
item.disabled=!item.SysUserId&&!item.ChildrenList?true:false
|
|
item.disabled=!item.SysUserId&&!item.ChildrenList?true:false
|
|
}
|
|
}
|
|
|
|
|
|
- if(item.ChildrenList){
|
|
|
|
- formatData(item.ChildrenList)
|
|
|
|
|
|
+ if(item.Children){
|
|
|
|
+ formatData(item.Children)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
|
|
|
|
async function getData(){
|
|
async function getData(){
|
|
- const res=await apiSystemUser.allUserForDepart({AllEnabled:false})//true显示所有销售(包含被禁用的)false表示仅显示启用的用户,默认false
|
|
|
|
|
|
+ const res=await apiSystemUser.sellerUserTree()//true显示所有销售(包含被禁用的)false表示仅显示启用的用户,默认false
|
|
if(res.Ret!=200) return
|
|
if(res.Ret!=200) return
|
|
- const arr=res.Data.List||[]
|
|
|
|
- options.value=formatData(arr)
|
|
|
|
|
|
+ const arr=res.Data||[]
|
|
|
|
+ options.value = arr
|
|
}
|
|
}
|
|
getData()
|
|
getData()
|
|
|
|
|
|
@@ -60,9 +60,9 @@ function handleChange(){
|
|
<el-cascader
|
|
<el-cascader
|
|
:options="options"
|
|
:options="options"
|
|
:props="{
|
|
:props="{
|
|
- value: 'value',
|
|
|
|
- label: 'label',
|
|
|
|
- children: 'ChildrenList',
|
|
|
|
|
|
+ value: 'NodeId',
|
|
|
|
+ label: 'NodeName',
|
|
|
|
+ children: 'Children',
|
|
...props.props
|
|
...props.props
|
|
}"
|
|
}"
|
|
v-model="model"
|
|
v-model="model"
|