Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
d57d33ed
Commit
d57d33ed
authored
Aug 14, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:虚拟滚动加载不全
parent
c078731a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
src/modules/course-manage/components/LiveCourseFilter.jsx
+7
-10
No files found.
src/modules/course-manage/components/LiveCourseFilter.jsx
View file @
d57d33ed
...
...
@@ -56,7 +56,10 @@ class LiveCourseFilter extends React.Component {
StoreService
.
getStoreUserBasicPage
(
_query
).
then
((
res
)
=>
{
const
{
result
=
{}
}
=
res
const
{
records
=
[],
total
=
0
,
hasNext
}
=
result
const
list
=
current
>
1
?
teacherList
.
concat
(
records
)
:
records
let
tcl
=
_
.
map
(
records
,(
item
)
=>
{
return
{
value
:
item
.
userId
,
label
:
item
.
nickName
}
})
const
list
=
current
>
1
?
teacherList
.
concat
(
tcl
)
:
tcl
this
.
setState
({
hasNext
,
teacherList
:
list
,
...
...
@@ -209,8 +212,10 @@ class LiveCourseFilter extends React.Component {
style=
{
{
width
:
'calc(100% - 70px)'
}
}
showSearch
allowClear
options=
{
teacherList
}
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollTeacherList
}
virtual=
{
false
}
suffixIcon=
{
<
span
className=
'icon iconfont'
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

...
...
@@ -244,15 +249,7 @@ class LiveCourseFilter extends React.Component {
this
.
getTeacherList
()
}
)
}
}
>
{
_
.
map
(
teacherList
,
(
item
,
index
)
=>
{
return
(
<
Select
.
Option
value=
{
item
.
userId
}
key=
{
item
.
userId
}
>
{
item
.
nickName
}
</
Select
.
Option
>
)
})
}
</
Select
>
}
}
/>
</
div
>
)
}
{
((
expandFilter
&&
User
.
getUserRole
()
!==
'CloudLecturer'
)
||
User
.
getUserRole
()
===
'CloudLecturer'
)
&&
(
...
...
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