Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
66d130e0
Commit
66d130e0
authored
Feb 01, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【10486】编辑用户的组织,在选择组织界面点击【加载更多】没有反应。增加模糊查询功能
parent
f6c322cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
OrgSelectTree.vue
...Components/components/orgLazyLoadSelect/OrgSelectTree.vue
+43
-1
No files found.
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/OrgSelectTree.vue
View file @
66d130e0
...
@@ -65,7 +65,49 @@ export default {
...
@@ -65,7 +65,49 @@ export default {
this
.
$emit
(
'nodeClick'
,
{
data
})
this
.
$emit
(
'nodeClick'
,
{
data
})
},
},
loadMoreNode
()
{
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
)
{
loadTreeData
(
node
,
resolve
)
{
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment