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