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
1
Merge Requests
1
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
718babd9
Commit
718babd9
authored
Jul 28, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:上课记录区分企微直播
parent
bc884b52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
15 deletions
+82
-15
package-lock.json
+0
-0
src/modules/course-manage/DataList/CourseData.jsx
+74
-12
src/modules/course-manage/DataList/DataList.jsx
+8
-3
No files found.
package-lock.json
View file @
718babd9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/modules/course-manage/DataList/CourseData.jsx
View file @
718babd9
...
@@ -159,6 +159,64 @@ class DataList extends React.Component {
...
@@ -159,6 +159,64 @@ class DataList extends React.Component {
},
},
];
];
const
columnsWorkWX
=
[
{
title
:
'学员姓名'
,
dataIndex
:
'userName'
,
},
{
title
:
'学员类型'
,
dataIndex
:
'phone'
,
render
:
(
text
,
record
)
=>
{
const
{
phone
=
''
,
bindingWeChat
}
=
record
;
return
<
div
>
{
phone
}
</
div
>;
},
},
{
title
:
'账号类型'
,
dataIndex
:
'entryNum'
,
render
:
(
text
,
record
)
=>
{
if
(
text
>
0
)
{
if
(
record
.
visitorInfoVOList
&&
record
.
visitorInfoVOList
.
length
>
0
)
{
const
table
=
(
<
XMTable
renderEmpty=
{
{
image
:
college
,
description
:
'暂无数据'
,
}
}
columns=
{
this
.
getVisiterColumns
()
}
dataSource=
{
record
.
visitorInfoVOList
}
scroll=
{
{
y
:
75
}
}
size=
{
'small'
}
style=
{
{
width
:
450
}
}
pagination=
{
false
}
/>
);
return
(
<
Popover
content=
{
table
}
trigger=
'click'
>
<
span
className=
'handel-btn'
>
{
text
}
</
span
>
</
Popover
>
);
}
else
{
return
<
div
className=
'live-table--empty'
>
暂无观看数据
</
div
>;
}
}
else
{
return
<
span
>
{
text
}
</
span
>;
}
},
},
{
title
:
'累计在线时长'
,
dataIndex
:
'totalDuration'
,
sorter
:
(
a
,
b
)
=>
a
.
totalDuration
-
b
.
totalDuration
,
sortDirections
:
[
'descend'
,
'ascend'
],
render
:
(
text
,
record
)
=>
{
//如无离开时间,就置空
return
<
span
>
{
text
?
dealTimeDuration
(
text
)
:
'00:00:00'
}
</
span
>;
},
},
];
return
columns
;
return
columns
;
}
}
// 学员导出5.0
// 学员导出5.0
...
@@ -239,7 +297,7 @@ class DataList extends React.Component {
...
@@ -239,7 +297,7 @@ class DataList extends React.Component {
};
};
render
()
{
render
()
{
const
{
teacherData
,
studentData
,
current
,
size
,
total
,
loading
,
link
}
=
this
.
state
;
const
{
teacherData
,
studentData
,
current
,
size
,
total
,
loading
,
link
,
type
}
=
this
.
state
;
return
(
return
(
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
a
href=
{
link
}
target=
'_blank'
download
id=
'loadExcel'
style=
{
{
position
:
'absolute'
,
left
:
'-10000px'
}
}
>
<
a
href=
{
link
}
target=
'_blank'
download
id=
'loadExcel'
style=
{
{
position
:
'absolute'
,
left
:
'-10000px'
}
}
>
...
@@ -257,18 +315,22 @@ class DataList extends React.Component {
...
@@ -257,18 +315,22 @@ class DataList extends React.Component {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'times item-block'
>
{
<
div
className=
{
`times-num ${Number(teacherData.entryNum) > 0 ? 'can-click' : ''}`
}
>
type
!==
"qiwei"
&&
{
Number
(
teacherData
.
entryNum
)
>
0
?
(
<
div
className=
'times item-block'
>
<
Popover
content=
{
this
.
showTable
()
}
trigger=
'click'
>
<
div
className=
{
`times-num ${Number(teacherData.entryNum) > 0 ? 'can-click' : ''}`
}
>
<
span
className=
'times-num'
>
{
teacherData
.
entryNum
||
0
}
</
span
>
{
Number
(
teacherData
.
entryNum
)
>
0
?
(
</
Popover
>
<
Popover
content=
{
this
.
showTable
()
}
trigger=
'click'
>
)
:
(
<
span
className=
'times-num'
>
{
teacherData
.
entryNum
||
0
}
</
span
>
<
span
className=
'times-num'
>
{
0
}
</
span
>
</
Popover
>
)
}
)
:
(
<
span
className=
'times-num'
>
{
0
}
</
span
>
)
}
</
div
>
<
div
className=
'text'
>
进入直播间次数
</
div
>
</
div
>
</
div
>
<
div
className=
'text'
>
进入直播间次数
</
div
>
}
</
div
>
<
div
className=
'online-duration item-block'
>
<
div
className=
'online-duration item-block'
>
<
div
className=
'duration'
>
{
teacherData
.
totalDuration
?
dealTimeDuration
(
teacherData
.
totalDuration
)
:
'00:00:00'
}
</
div
>
<
div
className=
'duration'
>
{
teacherData
.
totalDuration
?
dealTimeDuration
(
teacherData
.
totalDuration
)
:
'00:00:00'
}
</
div
>
...
...
src/modules/course-manage/DataList/DataList.jsx
View file @
718babd9
...
@@ -21,6 +21,7 @@ class DataList extends React.Component {
...
@@ -21,6 +21,7 @@ class DataList extends React.Component {
}
}
render
()
{
render
()
{
const
type
=
window
.
getParameterByName
(
"type"
)
return
(
return
(
<
div
className=
"page data-list"
>
<
div
className=
"page data-list"
>
<
Breadcrumbs
<
Breadcrumbs
...
@@ -35,9 +36,13 @@ class DataList extends React.Component {
...
@@ -35,9 +36,13 @@ class DataList extends React.Component {
<
CourseData
></
CourseData
>
<
CourseData
></
CourseData
>
</
Tabs
.
TabPane
>
</
Tabs
.
TabPane
>
<
Tabs
.
TabPane
tab=
"回放记录"
key=
"playbackData"
>
{
<
PlaybackData
></
PlaybackData
>
type
!==
"qiwei"
&&
</
Tabs
.
TabPane
>
<
Tabs
.
TabPane
tab=
"回放记录"
key=
"playbackData"
>
<
PlaybackData
></
PlaybackData
>
</
Tabs
.
TabPane
>
}
</
Tabs
>
</
Tabs
>
</
div
>
</
div
>
...
...
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