Commit 8c7d3a25 by zhangleyuan

feat:处理查看回放在上课中显示出来

parent 2644de69
...@@ -82,6 +82,7 @@ class AddLive extends React.Component { ...@@ -82,6 +82,7 @@ class AddLive extends React.Component {
teacherId: null, teacherId: null,
teacherName: null, teacherName: null,
assistant:[], assistant:[],
assistantNames:[],
liveDate: null, liveDate: null,
timeHorizonStart: null, timeHorizonStart: null,
timeHorizonEnd: null, timeHorizonEnd: null,
...@@ -169,6 +170,7 @@ class AddLive extends React.Component { ...@@ -169,6 +170,7 @@ class AddLive extends React.Component {
const timeHorizonStart = startTime; const timeHorizonStart = startTime;
const timeHorizonEnd = endTime; const timeHorizonEnd = endTime;
const assistant = _.pluck(admins, "adminId"); const assistant = _.pluck(admins, "adminId");
const assistantNames = _.pluck(admins, "adminName");
const addLiveClassInfo = { const addLiveClassInfo = {
assistant, assistant,
liveDate, liveDate,
...@@ -179,6 +181,7 @@ class AddLive extends React.Component { ...@@ -179,6 +181,7 @@ class AddLive extends React.Component {
timeHorizonEnd, timeHorizonEnd,
startTime, startTime,
endTime, endTime,
assistantNames
} }
// liveCourseMediaRequests = liveCourseMediaRequests.length // liveCourseMediaRequests = liveCourseMediaRequests.length
......
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
&.avatar-name-phone { &.avatar-name-phone {
justify-content: flex-start; justify-content: flex-start;
padding-left: 26px; padding-left: 26px;
.avatar{
border-radius:50%;
}
.name { .name {
height: 22px; height: 22px;
font-size: 16px; font-size: 16px;
......
...@@ -48,6 +48,7 @@ class AddLiveClass extends React.Component { ...@@ -48,6 +48,7 @@ class AddLiveClass extends React.Component {
this.getTeacherList(); this.getTeacherList();
this.getAssistantList(); this.getAssistantList();
} }
getTeacherList(current = 1, selectList){ getTeacherList(current = 1, selectList){
const { teacherQuery,teacherList} = this.state; const { teacherQuery,teacherList} = this.state;
const _query = { const _query = {
...@@ -68,6 +69,7 @@ class AddLiveClass extends React.Component { ...@@ -68,6 +69,7 @@ class AddLiveClass extends React.Component {
// 获取助教老师列表 // 获取助教老师列表
getAssistantList = (current = 1, selectList) => { getAssistantList = (current = 1, selectList) => {
const { assistantQuery,assistantList} = this.state; const { assistantQuery,assistantList} = this.state;
const _query = { const _query = {
...assistantQuery, ...assistantQuery,
current, current,
...@@ -134,7 +136,9 @@ class AddLiveClass extends React.Component { ...@@ -134,7 +136,9 @@ class AddLiveClass extends React.Component {
liveDate, liveDate,
timeHorizonStart, timeHorizonStart,
timeHorizonEnd, timeHorizonEnd,
assistant assistant,
assistantNames,
teacherName
} = data; } = data;
console.log("teacherId",teacherId); console.log("teacherId",teacherId);
return ( return (
...@@ -245,14 +249,17 @@ class AddLiveClass extends React.Component { ...@@ -245,14 +249,17 @@ class AddLiveClass extends React.Component {
<span className="label"><span className="require">* </span>讲师:</span> <span className="label"><span className="require">* </span>讲师:</span>
<Select <Select
placeholder="请选择讲师" placeholder="请选择讲师"
// key={teacherName}
// defaultValue={teacherName}
value={teacherId}
style={{ width: 240, marginTop: 6 }} style={{ width: 240, marginTop: 6 }}
disabled={!isEdit ? true: false} disabled={!isEdit ? true: false}
showSearch showSearch
value={teacherId}
filterOption={(input, option) => option} filterOption={(input, option) => option}
onPopupScroll={this.handleScrollTeacherList} onPopupScroll={this.handleScrollTeacherList}
onChange={(value,option) => { onChange={(value,option) => {
this.props.onChange('teacherId', value,option.children) console.log("value",value);
this.props.onChange('teacherId',value,option.children)
}} }}
onSearch={(value) => { onSearch={(value) => {
teacherQuery.nickName = value teacherQuery.nickName = value
...@@ -271,12 +278,15 @@ class AddLiveClass extends React.Component { ...@@ -271,12 +278,15 @@ class AddLiveClass extends React.Component {
} }
})} })}
</Select> </Select>
</div> </div>
<div className="assistant-teacher"> <div className="assistant-teacher">
<span className="label">助教:</span> <span className="label">助教:</span>
<Select <Select
id="assistant" id="assistant"
placeholder="请选择助教老师" placeholder="请选择助教老师"
// key={assistantNames}
// defaultValue={assistantNames}
value={assistant} value={assistant}
disabled={!isEdit ? true: false} disabled={!isEdit ? true: false}
mode={'multiple'} mode={'multiple'}
...@@ -285,8 +295,9 @@ class AddLiveClass extends React.Component { ...@@ -285,8 +295,9 @@ class AddLiveClass extends React.Component {
style={{ width: 240, marginTop: 6 }} style={{ width: 240, marginTop: 6 }}
filterOption={(input, option) => option} filterOption={(input, option) => option}
onPopupScroll={this.handleScrollAssistantList} onPopupScroll={this.handleScrollAssistantList}
onChange={(value) => { onChange={(value,option) => {
this.props.onChange('assistant', value) console.log('option',option);
this.props.onChange('assistant',value)
}} }}
onSearch={(value) => { onSearch={(value) => {
assistantQuery.nickName = value assistantQuery.nickName = value
...@@ -297,6 +308,7 @@ class AddLiveClass extends React.Component { ...@@ -297,6 +308,7 @@ class AddLiveClass extends React.Component {
}) })
}} }}
> >
{_.map(assistantList, (item, index) => { {_.map(assistantList, (item, index) => {
if(item.userId !== teacherId){ if(item.userId !== teacherId){
return ( return (
......
...@@ -126,7 +126,6 @@ class LiveCourseFilter extends React.Component { ...@@ -126,7 +126,6 @@ class LiveCourseFilter extends React.Component {
handleReset = () => { handleReset = () => {
this.setState({ this.setState({
query: { query: {
...this.state.query,
courseName: null, courseName: null,
startTime: null, startTime: null,
endTime: null, endTime: null,
...@@ -134,6 +133,7 @@ class LiveCourseFilter extends React.Component { ...@@ -134,6 +133,7 @@ class LiveCourseFilter extends React.Component {
teacherName: null, teacherName: null,
courseState: undefined, courseState: undefined,
current: 1, current: 1,
shelfState:null,
}, },
}, () => { }, () => {
this.props.onChange(this.state.query); this.props.onChange(this.state.query);
...@@ -187,7 +187,7 @@ class LiveCourseFilter extends React.Component { ...@@ -187,7 +187,7 @@ class LiveCourseFilter extends React.Component {
onPopupScroll={this.handleScrollTeacherList} onPopupScroll={this.handleScrollTeacherList}
value={teacherId} value={teacherId}
onChange={(value) => { onChange={(value) => {
this.handleChangeQuery('teacherId', value) this.handleChangeQuery('teacherId', value);
}} }}
onSearch={(value) => { onSearch={(value) => {
teacherQuery.nickName = value teacherQuery.nickName = value
...@@ -197,6 +197,18 @@ class LiveCourseFilter extends React.Component { ...@@ -197,6 +197,18 @@ class LiveCourseFilter extends React.Component {
this.getTeacherList() this.getTeacherList()
}) })
}} }}
onClear ={(value)=>{
this.setState({
teacherQuery:{
size: 10,
current: 1,
nickName:null
}
}, () => {
this.getTeacherList()
})
}
}
> >
{_.map(teacherList, (item, index) => { {_.map(teacherList, (item, index) => {
return ( return (
......
...@@ -236,7 +236,7 @@ class LiveCourseList extends React.Component { ...@@ -236,7 +236,7 @@ class LiveCourseList extends React.Component {
{ {
title: <span> title: <span>
<span>店铺展示</span> <span>店铺展示</span>
<Tooltip title="开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。"><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf'}}>&#xe61d;</i></Tooltip> <Tooltip title={<div>开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。<br/>关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf'}}>&#xe61d;</i></Tooltip>
</span>, </span>,
width: "7%", width: "7%",
dataIndex: "courseware", dataIndex: "courseware",
...@@ -266,7 +266,7 @@ class LiveCourseList extends React.Component { ...@@ -266,7 +266,7 @@ class LiveCourseList extends React.Component {
<span className="operate__item split" key="view_play_back_split"> | </span> <span className="operate__item split" key="view_play_back_split"> | </span>
</> </>
} }
{ (item.courseState==="FINISH" || item.haveRecord==="YES") && { (item.courseState==="FINISH" && item.haveRecord==="YES") &&
<> <>
<div <div
......
...@@ -126,8 +126,14 @@ ...@@ -126,8 +126,14 @@
font-size: 12px; font-size: 12px;
} }
} }
}
}
.ant-tooltip{
max-width:700px !important;
}
.ant-tooltip-inner{
max-width:700px !important;
}
.live-course-more-menu { .live-course-more-menu {
background: white; background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-05 10:11:57 * @Date: 2020-08-05 10:11:57
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-09 11:50:00 * @LastEditTime: 2021-01-15 13:52:10
* @Description: 视频课-搜索模块 * @Description: 视频课-搜索模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -166,6 +166,18 @@ class VideoCourseFilter extends React.Component { ...@@ -166,6 +166,18 @@ class VideoCourseFilter extends React.Component {
this.getTeacherList() this.getTeacherList()
}) })
}} }}
onClear ={(value)=>{
this.setState({
teacherQuery:{
size: 10,
current: 1,
nickName:null
}
}, () => {
this.getTeacherList()
})
}
}
> >
{_.map(teacherList, (item, index) => { {_.map(teacherList, (item, index) => {
return ( return (
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-05 10:12:45 * @Date: 2020-08-05 10:12:45
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-14 19:34:09 * @LastEditTime: 2021-01-15 11:22:50
* @Description: 视频课-列表模块 * @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -115,7 +115,7 @@ class VideoCourseList extends React.Component { ...@@ -115,7 +115,7 @@ class VideoCourseList extends React.Component {
{ {
title: <span> title: <span>
<span>店铺展示</span> <span>店铺展示</span>
<Tooltip title="开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。"><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf'}}>&#xe61d;</i></Tooltip> <Tooltip title={<div>开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。<br/>关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf'}}>&#xe61d;</i></Tooltip>
</span>, </span>,
width: "7%", width: "7%",
dataIndex: "courseware", dataIndex: "courseware",
......
...@@ -51,3 +51,9 @@ ...@@ -51,3 +51,9 @@
} }
} }
} }
.ant-tooltip{
max-width:700px !important;
}
.ant-tooltip-inner{
max-width:700px !important;
}
\ No newline at end of file
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