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
8c7d3a25
Commit
8c7d3a25
authored
Jan 15, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理查看回放在上课中显示出来
parent
2644de69
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
13 deletions
+68
-13
src/modules/course-manage/AddLive.jsx
+3
-0
src/modules/course-manage/DataList/DataList.less
+3
-0
src/modules/course-manage/components/AddLiveClass.jsx
+17
-5
src/modules/course-manage/components/LiveCourseFilter.jsx
+14
-2
src/modules/course-manage/components/LiveCourseList.jsx
+2
-2
src/modules/course-manage/components/LiveCourseList.less
+7
-1
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
+13
-1
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+2
-2
src/modules/course-manage/video-course/components/VideoCourseList.less
+7
-0
No files found.
src/modules/course-manage/AddLive.jsx
View file @
8c7d3a25
...
@@ -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
...
...
src/modules/course-manage/DataList/DataList.less
View file @
8c7d3a25
...
@@ -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;
...
...
src/modules/course-manage/components/AddLiveClass.jsx
View file @
8c7d3a25
...
@@ -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
(
...
...
src/modules/course-manage/components/LiveCourseFilter.jsx
View file @
8c7d3a25
...
@@ -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
(
...
...
src/modules/course-manage/components/LiveCourseList.jsx
View file @
8c7d3a25
...
@@ -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'
}
}
>

</
i
></
Tooltip
>
<
Tooltip
title=
{
<
div
>
开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。
<
br
/>
关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。
</
div
>
}
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
}
}
>

</
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
...
...
src/modules/course-manage/components/LiveCourseList.less
View file @
8c7d3a25
...
@@ -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);
...
...
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
View file @
8c7d3a25
...
@@ -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:0
0
* @LastEditTime: 2021-01-
15 13:52:1
0
* @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
(
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
8c7d3a25
...
@@ -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-1
4 19:34:09
* @LastEditTime: 2021-01-1
5 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'
}
}
>

</
i
></
Tooltip
>
<
Tooltip
title=
{
<
div
>
开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。
<
br
/>
关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。
</
div
>
}
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
}
}
>

</
i
></
Tooltip
>
</
span
>,
</
span
>,
width
:
"7%"
,
width
:
"7%"
,
dataIndex
:
"courseware"
,
dataIndex
:
"courseware"
,
...
...
src/modules/course-manage/video-course/components/VideoCourseList.less
View file @
8c7d3a25
...
@@ -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
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