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
5ae2e61a
Commit
5ae2e61a
authored
Jul 14, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Plain Diff
feat:处理重命名
parents
82231c41
f252263a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/modules/course-manage/modal/PreviewCourseModal.jsx
+2
-2
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
+1
-7
src/modules/course-manage/video-course/AddVideoCourse.jsx
+8
-2
No files found.
src/modules/course-manage/modal/PreviewCourseModal.jsx
View file @
5ae2e61a
/*
/*
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-07-23 14:54:16
* @Date: 2020-07-23 14:54:16
* @LastEditors:
yuananting
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-07-1
2 11:39:35
* @LastEditTime: 2021-07-1
4 11:43:49
* @Description: 大班直播课预览弹窗
* @Description: 大班直播课预览弹窗
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
...
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
View file @
5ae2e61a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:07:47
* @Date: 2020-08-05 10:07:47
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-
06 14:47:23
* @LastEditTime: 2021-07-
14 11:44:14
* @Description: 线下课新增/编辑页
* @Description: 线下课新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -340,16 +340,10 @@ class AddOfflineCourse extends React.Component {
...
@@ -340,16 +340,10 @@ class AddOfflineCourse extends React.Component {
handleSelectCover
=
(
file
)
=>
{
handleSelectCover
=
(
file
)
=>
{
this
.
setState
({
this
.
setState
({
visible
:
true
,
visible
:
true
,
<
<<<<<<
HEAD
imageFile
:
file
,
});
};
=======
imageFile
:
file
imageFile
:
file
});
});
}
}
>
>>>>>>
feature/wufan/20210701/course-B-reform
//获取resourceId
//获取resourceId
getSignature
=
(
blob
,
fileName
)
=>
{
getSignature
=
(
blob
,
fileName
)
=>
{
...
...
src/modules/course-manage/video-course/AddVideoCourse.jsx
View file @
5ae2e61a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:07:47
* @Date: 2020-08-05 10:07:47
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-14 1
0:00:59
* @LastEditTime: 2021-07-14 1
1:39:18
* @Description: 线上课新增/编辑页
* @Description: 线上课新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -343,12 +343,18 @@ class AddVideoCourse extends React.Component {
...
@@ -343,12 +343,18 @@ class AddVideoCourse extends React.Component {
})
})
}
}
}
else
{
}
else
{
let
_mediaName
=
folderName
;
if
(
folderFormat
===
'PDF'
){
_mediaName
=
folderName
.
replace
(
'.pdf'
,
''
)
}
else
{
_mediaName
=
folderName
.
replace
(
'.doc'
,
''
)
&&
folderName
.
replace
(
'.docx'
,
''
)
}
const
suffix
=
_
.
last
(
folderName
.
split
(
'.'
)).
toUpperCase
();
const
suffix
=
_
.
last
(
folderName
.
split
(
'.'
)).
toUpperCase
();
_courseChapterList
.
push
({
_courseChapterList
.
push
({
mediaContent
:
resourceId
,
mediaContent
:
resourceId
,
contentType
:
'SCHEDULE'
,
contentType
:
'SCHEDULE'
,
mediaType
:
suffix
,
mediaType
:
suffix
,
mediaName
:
folder
Name
,
mediaName
:
_media
Name
,
resourceId
,
resourceId
,
mediaUrl
:
ossUrl
,
mediaUrl
:
ossUrl
,
sort
:
_courseChapterList
.
length
sort
:
_courseChapterList
.
length
...
...
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