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
f947fee5
Commit
f947fee5
authored
Feb 23, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理讲师清除问题
parent
ef7e7e47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
src/modules/course-manage/components/AddLiveClass.jsx
+32
-3
No files found.
src/modules/course-manage/components/AddLiveClass.jsx
View file @
f947fee5
...
...
@@ -279,14 +279,17 @@ class AddLiveClass extends React.Component {
style=
{
{
width
:
240
,
marginTop
:
6
}
}
disabled=
{
!
isEdit
?
true
:
false
}
showSearch
allowClear
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollTeacherList
}
suffixIcon=
{
<
span
className=
"icon iconfont"
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

</
span
>
}
onChange=
{
(
value
,
option
)
=>
{
console
.
log
(
"value"
,
value
);
if
(
option
){
this
.
props
.
onChange
(
'teacherId'
,
value
,
'teacherType'
,
option
.
children
)
}
else
{
this
.
props
.
onChange
(
'teacherId'
,
value
,
'teacherType'
,
""
)
}
}
}
onSearch=
{
(
value
)
=>
{
teacherQuery
.
nickName
=
value
this
.
setState
({
...
...
@@ -295,6 +298,18 @@ class AddLiveClass extends React.Component {
this
.
getTeacherList
()
})
}
}
onClear
={(
value
)=
>
{
this
.
setState
({
teacherQuery
:{
size
:
15
,
current
:
1
,
nickName
:
null
}
},
()
=>
{
this
.
getTeacherList
()
})
}
}
getPopupContainer=
{
()
=>
document
.
getElementById
(
"teacher"
)
}
...
...
@@ -325,8 +340,14 @@ class AddLiveClass extends React.Component {
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollAssistantList
}
onChange=
{
(
value
,
option
)
=>
{
console
.
log
(
'option'
,
option
);
if
(
!
option
.
length
){
assistantQuery
.
nickName
=
""
this
.
setState
({
assistantQuery
},()
=>
this
.
props
.
onChange
(
'assistant'
,
value
,
'assistantType'
,
option
)
)
}
else
{
this
.
props
.
onChange
(
'assistant'
,
value
,
'assistantType'
,
option
)
}
}
}
onSearch=
{
(
value
)
=>
{
assistantQuery
.
nickName
=
value
...
...
@@ -336,6 +357,14 @@ class AddLiveClass extends React.Component {
this
.
getAssistantList
()
})
}
}
onClear
={(
value
)=
>
{
assistantQuery
.
nickName
=
""
this
.
setState
({
assistantQuery
},
()
=>
{
this
.
getAssistantList
()
})
}
}
getPopupContainer=
{
()
=>
document
.
getElementById
(
"assistant-teacher"
)
}
...
...
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