Commit 9aff52ac by chenshu

fix:修复

parent 89dafa66
......@@ -296,6 +296,7 @@ class AddOfflineCourse extends React.Component {
const {
coverUrl,
courseName,
teacherName,
startTime,
endTime,
introduce,
......@@ -319,6 +320,7 @@ class AddOfflineCourse extends React.Component {
const data = {
coverUrl,
courseName,
teacherName,
startTime,
endTime,
categoryName,
......@@ -863,11 +865,11 @@ class AddOfflineCourse extends React.Component {
dropdownClassName="offline-dropdown-box"
onPopupScroll={this.handleScrollTeacherList}
suffixIcon={<span className="icon iconfont" style={{fontSize:'12px',color:'#BFBFBF'}}>&#xe835;</span>}
onChange={(value,option) => {
onChange={(value, option) => {
if (option) {
this.setState({ teacherId: value, teacherType: option.children });
this.setState({ teacherId: value, teacherName: option.children });
}else{
this.setState({ teacherId: value, teacherType: "" });
this.setState({ teacherId: value, teacherName: "" });
}
}}
onSearch={(value) => {
......
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