Commit 1845cc73 by wufan

feat:上课数据接口联调

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