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
2ab2974c
Commit
2ab2974c
authored
Aug 09, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/zhujian/0726/qwLiving' into dev
parents
8acb82ed
3e261a5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
15 deletions
+43
-15
src/common/js/wechatApi.js
+2
-1
src/data-source/course/request-api.ts
+4
-0
src/domains/course-domain/CourseService.ts
+5
-1
src/modules/course-manage/DataList/CourseData.jsx
+32
-13
No files found.
src/common/js/wechatApi.js
View file @
2ab2974c
...
...
@@ -179,7 +179,8 @@ export default class WechatApi {
}
else
if
(
res
.
err_msg
===
"replayLiving:fail_not allow to cross app"
)
{
err
=
"不可跨应用使用直播ID"
}
else
if
(
res
.
err_msg
===
"replayLiving:fail_living has no replay"
)
{
err
=
"直播回放已失效或不存在"
// err = "直播回放已失效或不存在"
err
=
"该直播课未录制回放"
}
else
if
(
res
.
err_msg
===
"replayLiving:fail_replay is beging creating"
)
{
err
=
"回放生成中,请耐心等待"
}
else
if
(
res
.
err_msg
===
"replayLiving:fail_create replay failed"
)
{
...
...
src/data-source/course/request-api.ts
View file @
2ab2974c
...
...
@@ -42,6 +42,10 @@ export function exportStudentCourseData(params: object) {
return
Service
.
Hades
(
"public/courseCloud/exportCourseCloudVisitorAsync"
,
params
);
}
export
function
exportWorkWXStudentCourseData
(
params
:
object
)
{
return
Service
.
Hades
(
"public/courseCloud/exportWechatLiveStudentData"
,
params
);
}
export
function
exportPlayBackCourseData
(
params
:
object
)
{
return
Service
.
Hades
(
"public/courseCloud/exportCourseCloudPlayBackSync"
,
params
);
}
...
...
src/domains/course-domain/CourseService.ts
View file @
2ab2974c
...
...
@@ -10,7 +10,7 @@ import {
fetchLecturerData
,
getCategoryTree
,
knowledgeMediaCoursePage
,
fetchUserData
,
exportStudentCourseData
,
exportPlayBackCourseData
,
fetchPlaybackList
,
createLiveCloudCourse
,
getLiveCloudCoursePage
,
getLiveCloudCourseDetail
,
updateLiveCloudCourse
,
turnOnOrOffLiveCloudCourse
,
delLiveCloudCourse
,
changeVideoShelfState
,
createVideoSchedule
,
delVideoSchedule
,
editVideoSchedule
,
userWatchInfo
,
videoSchedulePage
,
videoScheduleDetail
,
videoWatchInfo
,
getQrcode
,
getLiveCloudCourseBasePage
,
videoScheduleBasePage
,
relatedCourseToPlan
,
lineDetailWatchInfo
,
createWorkWXLiveCourse
,
fetchWorkWXLecturerData
,
fetchWorkWXUserData
,
getWorkWXLiveCourseDetail
,
updateWorkWXLiveCourse
,
delWorkWXLiveCourse
lineDetailWatchInfo
,
createWorkWXLiveCourse
,
fetchWorkWXLecturerData
,
fetchWorkWXUserData
,
getWorkWXLiveCourseDetail
,
updateWorkWXLiveCourse
,
delWorkWXLiveCourse
,
exportWorkWXStudentCourseData
}
from
'@/data-source/course/request-api'
;
export
default
class
courseService
{
...
...
@@ -51,6 +51,10 @@ export default class courseService {
static
exportStudentCourseData
(
params
:
any
)
{
return
exportStudentCourseData
(
params
);
}
// 导出企微学生上课数据
static
exportWorkWXStudentCourseData
(
params
:
any
)
{
return
exportWorkWXStudentCourseData
(
params
);
}
// 导出回放数据
static
exportPlayBackCourseData
(
params
:
any
)
{
...
...
src/modules/course-manage/DataList/CourseData.jsx
View file @
2ab2974c
...
...
@@ -252,21 +252,40 @@ class DataList extends React.Component {
handleExportV5
=
()
=>
{
const
{
liveCourseId
,
storeId
}
=
this
.
state
;
CourseService
.
exportStudentCourseData
({
liveCourseId
:
liveCourseId
,
exportLiveType
:
'VISITOR'
,
storeId
,
}).
then
((
res
)
=>
{
const
link
=
res
.
result
;
this
.
setState
({
link
,
if
(
this
.
state
.
type
===
"qiwei"
)
{
CourseService
.
exportWorkWXStudentCourseData
({
liveCourseId
:
liveCourseId
,
exportLiveType
:
'VISITOR'
,
storeId
,
}).
then
((
res
)
=>
{
const
link
=
res
.
result
;
this
.
setState
({
link
,
});
document
.
getElementById
(
'loadExcel'
).
click
();
if
(
res
.
success
)
{
message
.
success
(
'导出成功!'
);
}
});
document
.
getElementById
(
'loadExcel'
).
click
();
}
else
{
CourseService
.
exportStudentCourseData
({
liveCourseId
:
liveCourseId
,
exportLiveType
:
'VISITOR'
,
storeId
,
}).
then
((
res
)
=>
{
const
link
=
res
.
result
;
this
.
setState
({
link
,
});
document
.
getElementById
(
'loadExcel'
).
click
();
if
(
res
.
success
)
{
message
.
success
(
'导出成功!'
);
}
});
}
if
(
res
.
success
)
{
message
.
success
(
'导出成功!'
);
}
});
};
handleCheckEnterTimes
=
()
=>
{
...
...
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