Commit 1845cc73 by wufan

feat:上课数据接口联调

parent 9ce8980e
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-12-12 11:57:10
* @LastEditors: wufan
* @LastEditTime: 2020-12-15 14:26:47
* @LastEditTime: 2020-12-15 15:00:55
* @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......
......@@ -114,7 +114,6 @@ class DataList extends React.Component {
{
title: "用户姓名",
dataIndex: "userName",
width: 100,
},
{
title: "手机号",
......@@ -127,7 +126,6 @@ class DataList extends React.Component {
{
title: "观看次数",
dataIndex: "entryNum",
align: "right",
render: (text, record) => {
if (text > 0) {
if (
......@@ -160,7 +158,6 @@ class DataList extends React.Component {
{
title: "累计在线时长",
dataIndex: "watchDuration",
width: 150,
sorter: (a, b) => a.watchDuration - b.watchDuration,
sortDirections: ["descend", "ascend"],
render: (text, record) => {
......@@ -174,10 +171,10 @@ class DataList extends React.Component {
}
// 学员导出5.0
handleExportV5 = () => {
const { courseId, storeId } = this.state;
const { liveCourseId, storeId } = this.state;
CourseService.exportStudentCourseData({
liveCourseId: courseId,
liveCourseId: liveCourseId,
exportLiveType: "VISITOR",
storeId
}).then((res) => {
......@@ -242,7 +239,7 @@ class DataList extends React.Component {
className="avatar"
/>
<div className="right">
<div className="name">{teacherData.userName || "王凯凯"}</div>
<div className="name">{teacherData.userName}</div>
<div className="phone">
{teacherData.phone || "13888884388"}
</div>
......@@ -258,14 +255,14 @@ class DataList extends React.Component {
this.handleCheckEnterTimes();
}}
>
{teacherData.entryNum || "47"}
{teacherData.entryNum}
</div>
<div className="text">进入直播间次数</div>
</div>
<div className="online-duration item-block">
<div className="duration">
{dealTimeDuration(teacherData.totalDuration) || "20:30:45"}
{teacherData.totalDuration ? dealTimeDuration(teacherData.totalDuration) : '00:00:00'}
</div>
<div className="text">累计在线时长</div>
</div>
......
......@@ -112,7 +112,6 @@
font-weight: 500;
color: #5289fa;
line-height: 37px;
cursor: pointer;
&.can-click {
cursor: pointer;
}
......
......@@ -8,9 +8,11 @@ import CourseService from "@/domains/course-domain/CourseService";
import User from '@/common/js/user';
const liveTypeMap = {
USER: "学生",
ANCHOR: "老师",
ADMIN: "助教",
USER: "普通用户",
ANCHOR: "主播",
ADMIN: "管理员(助教)",
GUEST: "游客",
WATCH: "直播监课"
};
class PlaybackData extends React.Component {
constructor(props) {
......
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