Commit 66d130e0 authored by jingnan's avatar jingnan 👀

合并产品【10486】编辑用户的组织,在选择组织界面点击【加载更多】没有反应。增加模糊查询功能

parent f6c322cf
......@@ -65,7 +65,49 @@ export default {
this.$emit('nodeClick', { data })
},
loadMoreNode() {
this.pageFrom++
if (this.selectScope === 'specified') {
const params = {
'searchItems': {
'items': [
{
'fieldName': 'id',
'operator': 'IN',
'value': this.specifiedOrg
}] },
'pageFrom': this.pageFrom,
'pageSize': 20
}
this.$api.searchApi('DxOrganization', params).then(res => {
if (res.items.last) {
this.isLoadMore = false
}
res.items.content.forEach(el => {
this.$refs.tree.append(el, this.$refs.tree.root)
})
})
} else {
const params = {
'searchItems': {
'items': [
{
'fieldName': 'parentId',
'operator': 'EQ',
'value': this.parentId || 1
}]
},
'pageFrom': this.pageFrom,
'pageSize': 20
}
this.$api.searchApi('DxOrganization', params).then(res => {
if (res.items.last) {
this.isLoadMore = false
}
res.items.content.forEach(el => {
this.$refs.tree.append(el, this.$refs.tree.root)
})
})
}
},
loadTreeData(node, resolve) {
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment