Commit 72c9c86e by zhangleyuan

feat:处理讲师和助教不是同一个人

parent 1673e606
......@@ -253,7 +253,6 @@ class AddLiveClass extends React.Component {
style={{ width: 240, marginTop: 6 }}
disabled={!isEdit ? true: false}
showSearch
allowClear
value={teacherId}
filterOption={(input, option) => option}
onPopupScroll={this.handleScrollTeacherList}
......@@ -270,9 +269,11 @@ class AddLiveClass extends React.Component {
}}
>
{_.map(teacherList, (item, index) => {
return (
<Select.Option value={item.userId} key={item.userId}>{item.nickName}</Select.Option>
);
if( !assistant.includes(item.userId) ){
return (
<Select.Option value={item.userId} key={item.userId}>{item.nickName}</Select.Option>
);
}
})}
</Select>
</div>
......
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