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
5d8ae170
Commit
5d8ae170
authored
Dec 31, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理观看数据相关
parent
542a3ab6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
54 deletions
+70
-54
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+20
-33
src/modules/course-manage/video-course/modal/StudentListModal.jsx
+0
-0
src/modules/course-manage/video-course/modal/StudentListModal.less
+0
-21
src/modules/course-manage/video-course/modal/WatchDataModal.jsx
+50
-0
src/modules/course-manage/video-course/modal/WatchDataModal.less
+0
-0
No files found.
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
5d8ae170
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-05 10:12:45
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-3
0 17:44:18
* @LastEditTime: 2020-12-3
1 10:31:07
* @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -12,11 +12,13 @@ import { Table, Modal, message , Tooltip,Switch,Dropdown} from 'antd';
import
{
PageControl
}
from
"@/components"
;
import
{
LIVE_SHARE_MAP
}
from
'@/common/constants/academic/cloudClass'
;
import
StudentListModal
from
'../modal/StudentListModal'
;
import
ShareLiveModal
from
'@/modules/course-manage/modal/ShareLiveModal'
;
import
WatchDataModal
from
'../modal/WatchDataModal'
import
CourseService
from
"@/domains/course-domain/CourseService"
;
import
User
from
'@/common/js/user'
import
'./VideoCourseList.less'
;
const
ENV
=
process
.
env
.
DEPLOY_ENV
||
'dev'
;
...
...
@@ -38,6 +40,18 @@ class VideoCourseList extends React.Component {
this
.
handleShowShareModal
(
_videoCourseItem
,
true
);
}
}
// 学员人数弹窗
handleShowWatchDataModal
=
(
record
)
=>
{
const
WatchDataModal
=
(
<
WatchDataModal
type=
'videoCourseList'
data=
{
record
}
/>
);
this
.
setState
({
WatchDataModal
});
}
// 请求表头
parseColumns
=
()
=>
{
...
...
@@ -95,7 +109,7 @@ class VideoCourseList extends React.Component {
dataIndex
:
"watchUserCount"
,
render
:
(
val
,
item
)
=>
{
return
(
<
div
className=
"watchUserCount"
>
{
val
}
</
div
>
<
div
className=
"watchUserCount"
onclick=
{
this
.
handleShowWatchDataModal
}
>
{
val
}
</
div
>
)
},
},
...
...
@@ -208,33 +222,7 @@ class VideoCourseList extends React.Component {
});
}
// 学员人数弹窗
handleShowStudentListModal
=
(
record
)
=>
{
const
{
studentIds
=
[],
id
}
=
this
.
state
;
if
(
id
!==
record
.
id
)
{
this
.
setState
({
id
:
record
.
id
})
}
const
studentListModal
=
(
<
StudentListModal
type=
'videoCourseList'
close=
{
(
studentIds
)
=>
this
.
setState
({
studentListModal
:
null
,
studentIds
})
}
studentIds=
{
studentIds
}
data=
{
record
}
refresh=
{
()
=>
{
this
.
props
.
onChange
();
}
}
/>
);
this
.
setState
({
studentListModal
});
}
// 显示分享弹窗
handleShowShareModal
=
(
record
,
needStr
=
false
)
=>
{
...
...
@@ -316,10 +304,9 @@ class VideoCourseList extends React.Component {
this
.
props
.
onChange
(
_query
)
}
}
/>
</
div
>
</
div
>
{
this
.
state
.
shareLiveModal
}
{
this
.
state
.
studentList
Modal
}
{
this
.
state
.
WatchData
Modal
}
</
div
>
)
}
...
...
src/modules/course-manage/video-course/modal/StudentListModal.jsx
deleted
100644 → 0
View file @
542a3ab6
This diff is collapsed.
Click to expand it.
src/modules/course-manage/video-course/modal/StudentListModal.less
deleted
100644 → 0
View file @
542a3ab6
.video-course-student-list-modal {
&__operate {
position: relative;
margin-bottom: 16px;
.export-btn {
margin-left: 8px;
}
.search {
position: absolute;
right: 0;
}
}
.operate__item {
color: #FF8534;
cursor: pointer;
}
}
\ No newline at end of file
src/modules/course-manage/video-course/modal/WatchDataModal.jsx
0 → 100644
View file @
5d8ae170
/*
* @Author: 吴文洁
* @Date: 2020-05-19 11:01:31
* @Last Modified by: 吴文洁
* @Last Modified time: 2020-05-25 16:50:47
* @Description 余额异常弹窗
*/
import
React
from
'react'
;
import
{
Modal
,
Input
}
from
'antd'
;
import
'./WatchDataModal.less'
;
const
{
Search
}
=
Input
;
class
WatchDataModal
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
visible
:
true
};
}
onClose
=
()
=>
{
this
.
setState
({
visible
:
false
})
}
render
()
{
return
(
<
Modal
title=
"视频课观看数据"
visible=
{
visible
}
footer=
{
null
}
onCancel=
{
this
.
onClose
}
maskClosable=
{
false
}
className=
"watch-data-modal"
closable=
{
true
}
>
<
div
>
<
Search
placeholder=
"搜索用户姓名/手机号"
style=
{
{
width
:
200
}
}
/>
</
div
>
<
div
>
</
div
>
</
Modal
>
)
}
}
export
default
WatchDataModal
;
\ No newline at end of file
src/modules/course-manage/video-course/modal/WatchDataModal.less
0 → 100644
View file @
5d8ae170
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