feat: 组织搜索逻辑修改
This commit is contained in:
@ -110,10 +110,9 @@ function searchDepart() {
|
||||
async function getList(type = 'default') {
|
||||
if (props.parentNode) {
|
||||
params.value.id = props.parentNode
|
||||
|
||||
}
|
||||
params.value.isQueryIdPath = !(type == 'default')
|
||||
params.value.parentNode = !(type == 'default')
|
||||
params.value.isQueryChildren = type == 'default'
|
||||
let list = resetTreeList(await getQueryDeptTrees(params.value), type, true)
|
||||
treeData.value = list
|
||||
emit('query-completed');
|
||||
|
||||
Reference in New Issue
Block a user