feat: 组织搜索去除无用参数
This commit is contained in:
@ -65,7 +65,6 @@ const params = ref({
|
||||
id: '',
|
||||
code: '',
|
||||
name: '',
|
||||
isQueryIdPath: false,
|
||||
parentNode: false,
|
||||
excludeDeptTypes: props.justCompany ? '0' : '',
|
||||
ids: props.defaultDepts
|
||||
@ -111,8 +110,6 @@ async function getList(type = 'default') {
|
||||
if (props.parentNode) {
|
||||
params.value.id = props.parentNode
|
||||
}
|
||||
params.value.isQueryIdPath = !(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